-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
hardware-configuration.nix
66 lines (55 loc) · 1.56 KB
/
hardware-configuration.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
65
66
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"ahci"
"xhci_pci"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
# ZFS support
boot.supportedFilesystems = [ "zfs" ];
# Needed for ZFS
# head -c4 /dev/urandom | od -A none -t x4
networking.hostId = "887bde8c";
# Efi partition (SSD)
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/E45C-8185";
fsType = "vfat";
};
# Root drive (SSD)
fileSystems."/" = {
device = "/dev/disk/by-uuid/74866c52-5077-44aa-afb2-88ce9e72ab47";
fsType = "ext4";
};
# Swap partition
swapDevices = [ { device = "/dev/disk/by-uuid/8551b399-6866-40e0-b8f5-266b5475ffa9"; } ];
# Data drive for seafile
fileSystems."/mnt/data" = {
device = "/dev/disk/by-uuid/426645bc-dbf6-4c4d-b389-16bbb55d7a14";
fsType = "ext4";
};
# Backup drive for restic
fileSystems."/mnt/backup" = {
device = "/dev/disk/by-uuid/9961fd1b-3162-474d-9e2e-7cb7d269cd0e";
fsType = "ext4";
};
fileSystems."/mnt/backup-old" = {
device = "/dev/disk/by-uuid/a6a101de-0238-4b87-ada2-76653ce51cfc";
fsType = "ext4";
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}