summaryrefslogtreecommitdiff
path: root/odin
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-04 22:18:28 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-04 22:18:28 +0200
commitbb9b25dac2df1c2d5ee966d194595787155b5679 (patch)
treeaea143a9848670c3711705a276b84c5a4291e631 /odin
parentc6e8d5cf2de8a4fcfe36e57cd6fb45dd61af8370 (diff)
downloadnixos-bb9b25dac2df1c2d5ee966d194595787155b5679.tar
nixos-bb9b25dac2df1c2d5ee966d194595787155b5679.tar.gz
nixos-bb9b25dac2df1c2d5ee966d194595787155b5679.tar.bz2
nixos-bb9b25dac2df1c2d5ee966d194595787155b5679.tar.xz
nixos-bb9b25dac2df1c2d5ee966d194595787155b5679.zip
Work on odin
Diffstat (limited to 'odin')
-rw-r--r--odin/hw.nix76
1 files changed, 76 insertions, 0 deletions
diff --git a/odin/hw.nix b/odin/hw.nix
new file mode 100644
index 00000000..07518dbc
--- /dev/null
+++ b/odin/hw.nix
@@ -0,0 +1,76 @@
1# Do not modify this file! It was generated by ‘nixos-generate-config’
2# and may be overwritten by future invocations. Please make changes
3# to /etc/nixos/configuration.nix instead.
4{ config, lib, pkgs, ... }:
5
6{
7 imports =
8 [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
9 ];
10
11 boot.initrd = {
12 availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "xhci_pci" "ahci" "pata_marvell" "nvme" "firewire_ohci" "usb_storage" "usbhid" "sd_mod" ];
13 luks.devices = {
14 raid6 = {
15 device = "/dev/disk/by-uuid/1a552384-4f74-40bf-a5cf-961ea24c339e";
16 };
17 ssd-raid1 = {
18 device = "/dev/disk/by-uuid/f348a104-4774-47b3-a241-b7eaca0080e3";
19 };
20 ssd-nvme = {
21 device = "/dev/disk/by-uuid/fdd3f054-edee-42d5-aa82-08e3477014f3";
22 allowDiscards = true;
23 };
24 };
25
26 mdadmConf = ''
27 ARRAY /dev/md/isaac:raid6 metadata=1.2 name=isaac:raid6 UUID=42f7a827:e1c05dfe:7e7977dc:ccf1a569
28 ARRAY /dev/md1 metadata=1.2 name=localhost:ssd-raid1 UUID=f2e398f9:e2d4d8ce:b1811e05:584bf759
29 ARRAY /dev/md0 metadata=1.2 name=localhost:boot UUID=a56bdcef:a622dd3a:c6af3832:591a8bb3
30 '';
31 };
32
33 boot.kernelModules = [ "kvm-intel" ];
34 boot.extraModulePackages = [ ];
35
36 fileSystems."/" =
37 { device = "/dev/disk/by-uuid/8dea04a6-4485-4cd2-bab5-d23321a11df9";
38 fsType = "ext4";
39 };
40
41 fileSystems."/boot" =
42 { device = "/dev/disk/by-uuid/f6b49ce4-536c-4470-ad22-2af5c2b53d61";
43 fsType = "ext4";
44 };
45
46 fileSystems."/srv/hlidskjalf" =
47 { device = "/dev/disk/by-uuid/e796f44c-2b0b-40a8-af22-90beb898d25e";
48 fsType = "ext4";
49 };
50
51 fileSystems."/home" =
52 { device = "/dev/disk/by-uuid/e4737a9e-2a25-4247-936d-c0c4bad82970";
53 fsType = "ext4";
54 };
55
56 fileSystems."/srv/media" =
57 { device = "/dev/disk/by-uuid/09959dcd-e8ca-4958-89b2-993cc79fe8f7";
58 fsType = "ext4";
59 };
60
61 fileSystems."/srv/mail" =
62 { device = "/dev/disk/by-uuid/d43c25b5-2c0f-4ac9-9f0b-de93c33442a1";
63 fsType = "ext4";
64 };
65
66 fileSystems."/nix/store" =
67 { device = "/dev/disk/by-uuid/b36a581c-e38c-4c25-9073-18a313cce286";
68 fsType = "xfs";
69 };
70
71 swapDevices =
72 [ { device = "/dev/disk/by-uuid/a27e368d-e1ed-41e5-8bcb-6e5865670532"; }
73 ];
74
75 nix.maxJobs = lib.mkDefault 8;
76}