-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardware-configuration.nix
More file actions
54 lines (45 loc) · 1.63 KB
/
hardware-configuration.nix
File metadata and controls
54 lines (45 loc) · 1.63 KB
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
# 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 = [ "xhci_pci" "ahci" "nvme" "thunderbolt" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
# Root filesystem (btrfs subvolumes)
fileSystems."/" =
{ device = "/dev/disk/by-uuid/c3907d0b-d76d-43e3-9b82-bc6dcee0c1bc";
fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/persist" =
{ device = "/dev/disk/by-uuid/c3907d0b-d76d-43e3-9b82-bc6dcee0c1bc";
neededForBoot = true;
fsType = "btrfs";
options = [ "subvol=persist" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/c3907d0b-d76d-43e3-9b82-bc6dcee0c1bc";
fsType = "btrfs";
options = [ "subvol=nix" ];
neededForBoot = true;
};
# Boot partition
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/12CE-A600";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
# Swap device
swapDevices =
[ { device = "/dev/disk/by-uuid/b193a94f-f55b-429a-9921-4f3ce4796161"; }
];
# Enables DHCP on each ethernet and wireless interface.
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}