-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardware-configuration.nix
85 lines (72 loc) · 2.23 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- coding: utf-8 -*-
# :Project: giskard -- Mounted filesystems and hardware configuration
# :Created: dom 16 set 2018 22:14:01 CEST
# :Author: Alberto Berti <[email protected]>
# :License: GNU General Public License version 3 or later
# :Copyright: © 2018 Alberto Berti
#
{ config, lib, pkgs, ... }: {
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [
"ahci"
"xhci_pci"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.supportedFilesystems = [ "btrfs" ];
hardware.cpu.intel.updateMicrocode = true;
fileSystems."/" =
{ device = "/dev/disk/by-uuid/d00efca5-54e2-435b-9b48-92fb1ed73db5";
fsType = "btrfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/c492672d-c759-4379-858c-5aeb6e34c617";
fsType = "ext4";
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/F2EB-AEB7";
fsType = "vfat";
};
fileSystems."/mnt/storage_pool" =
{ device = "/dev/disk/by-uuid/5d847b5f-53d7-4f8f-8ccc-1bcfe20d9ddb";
fsType = "btrfs";
options = ["noatime"];
};
fileSystems."/mnt/musica" =
{ device = "/dev/disk/by-uuid/5d847b5f-53d7-4f8f-8ccc-1bcfe20d9ddb";
fsType = "btrfs";
options = ["noatime" "subvol=/musica"];
};
fileSystems."/mnt/books" =
{ device = "/dev/disk/by-uuid/5d847b5f-53d7-4f8f-8ccc-1bcfe20d9ddb";
fsType = "btrfs";
options = ["noatime" "subvol=/books"];
};
fileSystems."/mnt/data" =
{ device = "/dev/disk/by-uuid/5d847b5f-53d7-4f8f-8ccc-1bcfe20d9ddb";
fsType = "btrfs";
options = ["noatime" "subvol=/data"];
};
fileSystems."/mnt/backups" =
{ device = "/dev/disk/by-uuid/5d847b5f-53d7-4f8f-8ccc-1bcfe20d9ddb";
fsType = "btrfs";
options = ["noatime" "subvol=/backup"];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/5d847b5f-53d7-4f8f-8ccc-1bcfe20d9ddb";
fsType = "btrfs";
options = ["noatime" "subvol=/home"];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/d11192ed-f487-4ad0-9784-36aa18490bfc";
}];
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = "powersave";
powerManagement.powertop.enable = true;
sound.enable = true;
}