-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardware-configuration.nix
64 lines (51 loc) · 1.51 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
# 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, ... }:
let
userGroupList = [ "uid=1000" "gid=100" ];
in
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
networking.interfaces.enp11s0.useDHCP = lib.mkDefault true;
hardware.enableRedistributableFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
#hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
boot.initrd.availableKernelModules = [
# "ehci_pci"
"ahci"
# "firewire_ohci"
"xhci_pci"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
services.fstrim.enable = true;
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/01965894-c23d-443e-8dd3-6a9fef909eff";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/5A55-283F";
fsType = "vfat";
};
"/mnt/bits" = {
label = "bits";
fsType = "ntfs3";
options = [ "noauto" "noatime" "ro" ] ++ userGroupList;
noCheck = true;
};
"/mnt/gold" = {
label = "gold";
fsType = "ntfs3";
options = [ "noauto" "noatime" ] ++ userGroupList;
noCheck = true;
};
};
swapDevices =
[{ device = "/dev/disk/by-uuid/a34b1d68-a5d9-4ffe-b0a7-8dd02bc049d2"; }];
}