This repository has no description
1.4 kB
58 lines
1{
2 self,
3 modulesPath,
4 lib,
5 ...
6}:
7{
8 imports = [
9 ./config.nix
10 (modulesPath + "/installer/scan/not-detected.nix")
11 (self.inputs.stockholm + "/krebs/2configs/hw/x220.nix")
12 ];
13
14 boot.loader.grub.enable = true;
15 boot.loader.grub.version = 2;
16 boot.loader.grub.efiSupport = true;
17 boot.loader.grub.efiInstallAsRemovable = true;
18 boot.loader.grub.device = "/dev/disk/by-id/wwn-0x5002538d702f5ac6";
19 boot.initrd.luks.devices.ssd.device = "/dev/disk/by-id/wwn-0x5002538d702f5ac6-part3";
20
21 boot.initrd.availableKernelModules = [
22 "ehci_pci"
23 "ahci"
24 "xhci_pci"
25 "sd_mod"
26 "sdhci_pci"
27 ];
28 boot.initrd.kernelModules = [ "dm-snapshot" ];
29 boot.kernelModules = [ "kvm-intel" ];
30 boot.extraModulePackages = [ ];
31
32 fileSystems."/" = {
33 device = "/dev/disk/by-uuid/298eb635-8db2-4c15-a73d-2e0d6afa10e8";
34 fsType = "xfs";
35 };
36
37 fileSystems."/home" = {
38 device = "/dev/disk/by-uuid/eec94bef-e745-4d95-ad17-4df728f5fd31";
39 fsType = "xfs";
40 };
41
42 fileSystems."/boot" = {
43 device = "/dev/disk/by-uuid/D975-2CAB";
44 fsType = "vfat";
45 };
46
47 swapDevices = [ ];
48
49 nix.maxJobs = lib.mkDefault 4;
50 powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
51
52 services.udev.extraRules = ''
53 SUBSYSTEM=="net", ATTR{address}=="00:24:d7:f0:a0:0c", NAME="wl0"
54 SUBSYSTEM=="net", ATTR{address}=="f0:de:f1:71:cb:35", NAME="et0"
55 '';
56
57 services.logind.lidSwitch = "ignore";
58}