diff options
Diffstat (limited to 'configuration/hardware.nix')
| -rw-r--r-- | configuration/hardware.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/configuration/hardware.nix b/configuration/hardware.nix new file mode 100644 index 0000000..ed7c4a7 --- /dev/null +++ b/configuration/hardware.nix @@ -0,0 +1,42 @@ +{ + config, + lib, + pkgs, + modulesPath, + ... +}: + +{ + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ + "xhci_pci" + "virtio_scsi" + "sr_mod" + ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/d48dd0f5-a41c-47d4-a0b9-acfad95c8e99"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/9506-1A24"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; + + swapDevices = [ + { device = "/dev/disk/by-uuid/5097c4ba-3b7f-4cce-a674-9cedb3fbc052"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; +} |
