diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-12 23:04:51 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-12 23:04:51 +0200 |
commit | b79e59b6a89b5053460a2c72fdf05fe475a50f37 (patch) | |
tree | 163b51cec2eb4e24dc39fd20dd7f78308fa83fe0 /hel | |
parent | 5370b5df1431cb295dc4ef551c59296418f25a6a (diff) | |
download | nixos-b79e59b6a89b5053460a2c72fdf05fe475a50f37.tar nixos-b79e59b6a89b5053460a2c72fdf05fe475a50f37.tar.gz nixos-b79e59b6a89b5053460a2c72fdf05fe475a50f37.tar.bz2 nixos-b79e59b6a89b5053460a2c72fdf05fe475a50f37.tar.xz nixos-b79e59b6a89b5053460a2c72fdf05fe475a50f37.zip |
Hel
Diffstat (limited to 'hel')
-rw-r--r-- | hel/boot.nix | 12 | ||||
-rw-r--r-- | hel/hw.nix | 33 |
2 files changed, 45 insertions, 0 deletions
diff --git a/hel/boot.nix b/hel/boot.nix new file mode 100644 index 00000000..66531e5d --- /dev/null +++ b/hel/boot.nix | |||
@@ -0,0 +1,12 @@ | |||
1 | { config, lib, pkgs, ... }: | ||
2 | |||
3 | { | ||
4 | boot = { | ||
5 | initrd.luks.devices = [ { name = "ssd"; device = "/dev/disk/by-uuid/sH2z1p-XRak-v8eq-YLMb-XIk1-5j8o-psLUa5"; } | ||
6 | ]; | ||
7 | loader = { | ||
8 | gummiboot.enable = true; | ||
9 | efi.canTouchEfiVariables = true; | ||
10 | }; | ||
11 | }; | ||
12 | } | ||
diff --git a/hel/hw.nix b/hel/hw.nix new file mode 100644 index 00000000..9c5126ad --- /dev/null +++ b/hel/hw.nix | |||
@@ -0,0 +1,33 @@ | |||
1 | { config, lib, pkgs, ... }: | ||
2 | |||
3 | { | ||
4 | imports = | ||
5 | [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> | ||
6 | ]; | ||
7 | |||
8 | boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; | ||
9 | boot.kernelModules = [ "kvm-intel" ]; | ||
10 | boot.extraModulePackages = [ ]; | ||
11 | |||
12 | fileSystems."/" = | ||
13 | { device = "/dev/disk/by-label/hel-btrfs"; | ||
14 | fsType = "btrfs"; | ||
15 | }; | ||
16 | |||
17 | fileSystems."/boot" = | ||
18 | { device = "/dev/disk/by-uuid/3ADC-E1CD"; | ||
19 | fsType = "vfat"; | ||
20 | }; | ||
21 | |||
22 | swapDevices = | ||
23 | [ { device = "/dev/disk/by-label/hel-swap"; } | ||
24 | ]; | ||
25 | |||
26 | nix.maxJobs = lib.mkDefault 4; | ||
27 | |||
28 | hardware.trackpoint = { | ||
29 | enable = true; | ||
30 | emulateWheel = true; | ||
31 | sensitivity = 255; | ||
32 | }; | ||
33 | } | ||