nix-config/hosts/minime/hardware-configuration.nix

83 lines
1.7 KiB
Nix
Raw Normal View History

2025-01-02 19:32:39 +00:00
# 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.
2025-01-11 03:55:19 +01:00
{
config,
lib,
modulesPath,
...
}:
2025-01-02 19:32:39 +00:00
{
2025-01-11 03:55:19 +01:00
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2025-01-02 19:32:39 +00:00
2025-01-11 03:55:19 +01:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
2025-01-02 19:32:39 +00:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2025-01-11 03:55:19 +01:00
fileSystems."/" = {
device = "zpool/nixos/root";
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/12CE-A600";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
fileSystems."/nix" = {
device = "zpool/nixos/nix";
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/home" = {
device = "zpool/data/home";
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var" = {
device = "zpool/data/var";
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var/lib" = {
device = "zpool/data/var/lib";
fsType = "zfs";
options = [ "zfsutil" ];
};
2025-01-12 21:32:36 +01:00
fileSystems."/var/lib/microvms" = {
device = "zpool/data/var/lib/microvms";
fsType = "zfs";
options = [ "zfsutil" ];
};
2025-01-11 03:55:19 +01:00
swapDevices = [
{
2025-01-02 20:02:48 +00:00
device = "/dev/disk/by-partuuid/7e7d0e0b-90b7-465c-a022-089b38e0f16d";
2025-01-02 19:32:39 +00:00
randomEncryption = true;
2025-01-11 03:55:19 +01:00
}
];
2025-01-02 19:32:39 +00:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}