From c757e2876165dd7bb9ead67080d7fbc684f7255d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 1 Dec 2023 15:38:58 +0100 Subject: [PATCH] Add a base configuration --- lib/hardware/base.nix | 17 +++++++++++++++++ lib/hardware/qemu.nix | 1 + 2 files changed, 18 insertions(+) create mode 100644 lib/hardware/base.nix diff --git a/lib/hardware/base.nix b/lib/hardware/base.nix new file mode 100644 index 0000000..f642c11 --- /dev/null +++ b/lib/hardware/base.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, modulesPath, ... }: { + fileSystems."/" = { + device = "/dev/disk/by-label/NixOS"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-label/Boot"; + fsType = "vfat"; + }; + + swapDevices = [ + { + device = "/dev/disk/by-label/Swap"; + } + ]; +} diff --git a/lib/hardware/qemu.nix b/lib/hardware/qemu.nix index 89d4847..1137d58 100644 --- a/lib/hardware/qemu.nix +++ b/lib/hardware/qemu.nix @@ -1,5 +1,6 @@ { config, lib, pkgs, modulesPath, ... }: { imports = [ + ./base.nix (modulesPath + "/profiles/qemu-guest.nix") ];