summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/hosts/bin/hardware-configuration.nix22
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";
+}