diff options
| author | caley <195605706+cqley@users.noreply.github.com> | 2026-07-22 00:49:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-22 00:49:38 +0200 |
| commit | 255e688596f3b8bf039ed46cd71765bf6b758310 (patch) | |
| tree | 4366f4822edafc954c2fffe24e474a3d9b7beddb /nixos/hosts/bin/hardware-configuration.nix | |
| parent | cb3865f0eec52e758907c343f5cf3f081a3322dd (diff) | |
Create hardware-configuration.nix
Diffstat (limited to 'nixos/hosts/bin/hardware-configuration.nix')
| -rw-r--r-- | nixos/hosts/bin/hardware-configuration.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nixos/hosts/bin/hardware-configuration.nix b/nixos/hosts/bin/hardware-configuration.nix new file mode 100644 index 0000000..782ecf5 --- /dev/null +++ b/nixos/hosts/bin/hardware-configuration.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/ac49fd20-c9ba-4dc6-8f3b-66399b6cc714"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} |
