Files
nixos/hosts/homelab/hardware-configuration.nix
T
aloslider 6a3ff12527 Restructure
- Restructure
- Add sops+age
2026-04-10 23:49:32 +03:00

36 lines
591 B
Nix

{
config,
lib,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [
"ahci"
"xhci_pci"
"virtio_pci"
"sr_mod"
"virtio_blk"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
# hdd
fileSystems."/mnt/data" = {
device = "/dev/disk/by-label/data";
fsType = "ext4";
options = [
"noatime"
"nofail"
"x-systemd.device-timeout=5s"
];
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}