old
 1# Do not modify this file!  It was generated by ‘nixos-generate-config’
 2# and may be overwritten by future invocations.  Please make changes
 3# to /etc/nixos/configuration.nix instead.
 4{
 5  config,
 6  lib,
 7  pkgs,
 8  modulesPath,
 9  ...
10}: {
11  imports = [
12    (modulesPath + "/installer/scan/not-detected.nix")
13  ];
14
15  boot.initrd.systemd = {
16    enable = true;
17  };
18  boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "thunderbolt" "usbhid" "sdhci_pci"];
19  boot.initrd.kernelModules = [];
20  boot.kernelPackages = pkgs.linuxPackages_xanmod_stable;
21  boot.kernelModules = ["kvm-intel"];
22  boot.kernelParams = [
23    "mem_sleep_default=deep"
24    # "resume_offset=51651840"
25  ];
26  # boot.resumeDevice = "/dev/disk/by-uuid/d1fb32f2-1dc0-435d-ad0f-1de0a121dbef";
27  boot.extraModulePackages = [];
28
29  swapDevices = [
30    {
31      device = "/var/lib/swapfile";
32      size = 48 * 1024; # 48GB in MB
33    }
34  ];
35
36  fileSystems."/" = {
37    device = "/dev/disk/by-uuid/d1fb32f2-1dc0-435d-ad0f-1de0a121dbef";
38    fsType = "btrfs";
39    options = ["subvol=root"];
40  };
41
42  fileSystems."/nix" = {
43    device = "/dev/disk/by-uuid/d1fb32f2-1dc0-435d-ad0f-1de0a121dbef";
44    fsType = "btrfs";
45    options = ["subvol=nix"];
46  };
47
48  fileSystems."/home" = {
49    device = "/dev/disk/by-uuid/d1fb32f2-1dc0-435d-ad0f-1de0a121dbef";
50    fsType = "btrfs";
51    options = ["subvol=home"];
52  };
53
54  fileSystems."/boot" = {
55    device = "/dev/disk/by-uuid/D032-DF36";
56    fsType = "vfat";
57    options = ["fmask=0022" "dmask=0022"];
58  };
59
60  fileSystems."/mnt/share" = {
61    device = "/dev/disk/by-uuid/4200-EC69";
62    fsType = "exfat";
63    options = ["uid=1000" "gid=100"];
64  };
65
66  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
67  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
68}