3/20
Some checks failed
/ check (push) Has been cancelled

This commit is contained in:
iofq 2026-03-07 12:05:37 -06:00
parent 817aa75f84
commit 26f25fa2ac
25 changed files with 529 additions and 275 deletions

View file

@ -1,14 +1,69 @@
{ lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
config,
lib,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
extraModulePackages = [ ];
initrd = {
availableKernelModules = [
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
kernelModules = [
"dm-snapshot"
"nvme"
];
};
kernelModules = [ "kvm-amd" ];
loader = {
efi = {
canTouchEfiVariables = true;
};
systemd-boot = {
enable = true;
};
};
supportedFilesystems = [
"zfs"
"nfs"
];
zfs = {
# extraPools = [ "rice" ];
forceImportRoot = false;
};
};
fileSystems."/boot" = { device = "/dev/disk/by-uuid/EECE-9ACB"; fsType = "vfat"; };
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda2"; fsType = "ext4"; };
fileSystems = {
"/" = {
device = "/dev/mapper/nixos-root";
fsType = "btrfs";
};
"/boot" = {
device = "/dev/disk/by-uuid/7A75-7368";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
"/nix/store" = {
device = "/dev/mapper/nixos-store";
fsType = "btrfs";
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
system.stateVersion = "25.11";
}