2024-10-18 16:26:44 -04:00
|
|
|
{ config, lib, modulesPath, ... }:
|
2024-10-18 15:32:32 -04:00
|
|
|
|
|
|
|
{
|
2024-10-18 16:26:44 -04:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [ "xhci_pci" "sdhci_pci" ];
|
|
|
|
kernelModules = [ "dm-snapshot" ];
|
|
|
|
};
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
};
|
2024-10-18 15:32:32 -04:00
|
|
|
|
2024-10-18 16:26:44 -04:00
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-uuid/e8c9c5a8-4df0-4100-8de6-f08a1a774fad";
|
2024-10-18 15:32:32 -04:00
|
|
|
fsType = "btrfs";
|
2024-10-18 15:44:38 -04:00
|
|
|
options = [ "subvol=@" ];
|
2024-10-18 15:32:32 -04:00
|
|
|
};
|
2024-10-18 16:26:44 -04:00
|
|
|
"/nix" = {
|
|
|
|
device = "/dev/disk/by-uuid/e8c9c5a8-4df0-4100-8de6-f08a1a774fad";
|
2024-10-18 15:32:32 -04:00
|
|
|
fsType = "btrfs";
|
2024-10-18 15:44:38 -04:00
|
|
|
options = [ "subvol=@nix" ];
|
2024-10-18 15:32:32 -04:00
|
|
|
};
|
2024-10-18 16:26:44 -04:00
|
|
|
"/var" = {
|
|
|
|
device = "/dev/disk/by-uuid/e8c9c5a8-4df0-4100-8de6-f08a1a774fad";
|
2024-10-18 15:32:32 -04:00
|
|
|
fsType = "btrfs";
|
2024-10-18 15:44:38 -04:00
|
|
|
options = [ "subvol=@var" ];
|
2024-10-18 15:32:32 -04:00
|
|
|
};
|
2024-10-18 16:26:44 -04:00
|
|
|
"/.snapshots" = {
|
|
|
|
device = "/dev/disk/by-uuid/e8c9c5a8-4df0-4100-8de6-f08a1a774fad";
|
2024-10-18 15:32:32 -04:00
|
|
|
fsType = "btrfs";
|
2024-10-18 15:44:38 -04:00
|
|
|
options = [ "subvol=@snapshots" ];
|
2024-10-18 15:32:32 -04:00
|
|
|
};
|
2024-10-18 16:26:44 -04:00
|
|
|
"/home" = {
|
|
|
|
device = "/dev/disk/by-uuid/e8c9c5a8-4df0-4100-8de6-f08a1a774fad";
|
2024-10-18 15:32:32 -04:00
|
|
|
fsType = "btrfs";
|
2024-10-18 15:44:38 -04:00
|
|
|
options = [ "subvol=@home" ];
|
2024-10-18 15:32:32 -04:00
|
|
|
};
|
2024-10-18 16:26:44 -04:00
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/1C76-1006";
|
2024-10-18 15:32:32 -04:00
|
|
|
fsType = "vfat";
|
|
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
|
|
};
|
2024-10-18 16:26:44 -04:00
|
|
|
};
|
2024-10-18 15:32:32 -04:00
|
|
|
|
2024-10-18 16:26:44 -04:00
|
|
|
swapDevices = [
|
|
|
|
{ device = "/dev/disk/by-uuid/54a9cc22-4a2c-4e04-a968-313c34481489"; }
|
|
|
|
];
|
2024-10-18 15:32:32 -04:00
|
|
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|