From f7d86625faff70ffc5447cc8f4fd44b987b8c197 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 29 Dec 2024 20:26:12 +0100 Subject: Generated system configuration from Hetzner server Signed-off-by: Mel --- configuration/hardware.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 configuration/hardware.nix (limited to 'configuration/hardware.nix') 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"; +} -- cgit 1.4.1