Add a base configuration

This commit is contained in:
Manuel Thalmann 2023-12-01 15:38:58 +01:00
parent 0f3442ab8c
commit c757e28761
2 changed files with 18 additions and 0 deletions

17
lib/hardware/base.nix Normal file
View file

@ -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";
}
];
}

View file

@ -1,5 +1,6 @@
{ config, lib, pkgs, modulesPath, ... }: { { config, lib, pkgs, modulesPath, ... }: {
imports = [ imports = [
./base.nix
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
]; ];