-
Notifications
You must be signed in to change notification settings - Fork 0
/
molly_usb.nix
64 lines (55 loc) · 1.26 KB
/
molly_usb.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{ config, pkgs, ... }:
{
imports = [
./common.nix
];
# Filesystem Configuration
fileSystems."/" =
{ device = "/dev/disk/by-label/nixos_usb";
fsType = "ext4";
label = "nixos_usb";
options = "defaults,relatime,noatime,discard";
};
fileSystems."/tmp" = {
device = "tmpfs";
fsType = "tmpfs";
options = "nosuid,nodev,relatime,mode=1777";
};
# No swap devices
swapDevices = [ ];
# Boot Options
boot = {
extraModulePackages = [ pkgs.linuxPackages.broadcom_sta ];
initrd.availableKernelModules = [
"ata_piix"
"ahci"
"ohci_pci"
"ehci_pci"
"xhci_hcd"
"usb_storage"
];
kernelParams = [ "elevator=noop" ];
loader.grub = {
version = 1;
device = "/dev/disk/by-label/nixos_usb";
};
};
networking = {
hostName = "Molly";
# To add a network run:
# wpa_passphrase 'mynetwork' 'mypassphrase' | grep -v '#psk="' >> /etc/wpa_supplicant.conf
wireless.enable = true;
};
services.xserver = {
videoDrivers = [ "ati" "nvidia" "nouveau" "intel" "cirrus" "vesa" ];
synaptics = {
enable = true;
twoFingerScroll = true;
};
};
powerManagement = {
enable = true;
cpuFreqGovernor = "ondemand";
};
nix.maxJobs = 4;
}