116 lines
2.7 KiB
Nix
116 lines
2.7 KiB
Nix
# 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" "usb_storage" "usbhid" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
# high-resolution display
|
||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||
|
||
fileSystems."/" =
|
||
{ device = "none";
|
||
fsType = "tmpfs";
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{
|
||
device = "/dev/disk/by-partuuid/e7ebac1e-eb4c-4a7d-8893-49a95f6014d4";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
fileSystems."/nix" =
|
||
{ device = "rpool/nixos/nix";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/etc" =
|
||
{ device = "rpool/nixos/etc";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/var" =
|
||
{ device = "rpool/nixos/var";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/var/lib" =
|
||
{ device = "rpool/nixos/var/lib";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/var/log" =
|
||
{ device = "rpool/nixos/var/log";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/var/spool" =
|
||
{ device = "rpool/nixos/var/spool";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
|
||
fileSystems."/serverdata/gitea" =
|
||
{ device = "rpool/serverdata/gitea";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
fileSystems."/serverdata/home-assistant" =
|
||
{ device = "rpool/serverdata/home-assistant";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
fileSystems."/serverdata/pihole" =
|
||
{ device = "rpool/serverdata/pihole";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
fileSystems."/serverdata/syncthing" =
|
||
{ device = "rpool/serverdata/syncthing";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/home" =
|
||
{ device = "rpool/userdata/home";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/root" =
|
||
{ device = "rpool/userdata/home/root";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/home/jacob" =
|
||
{ device = "rpool/userdata/home/jacob";
|
||
fsType = "zfs";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
swapDevices = [
|
||
{
|
||
device = "/dev/disk/by-partuuid/6bf463d0-107f-489e-be29-704442ea3150";
|
||
randomEncryption = true;
|
||
}
|
||
];
|
||
|
||
}
|