Differentiate hardware and vms in roles

This commit is contained in:
Gonne 2023-12-18 17:52:53 +01:00
parent df8b605814
commit d68f6bf45f
4 changed files with 11 additions and 2 deletions

View file

@ -3,6 +3,7 @@
./hardware-configuration.nix
../../modules/jitsi.nix
../../roles
../../roles/vm.nix
./network.nix
];

View file

@ -1,16 +1,15 @@
{
pkgs,
lib,
modulesPath,
...
}: {
imports = [
./admins.nix
./nix_keys.nix
./prometheusNodeExporter.nix
(modulesPath + "/virtualisation/xen-domU.nix")
../modules/impermanence.nix
];
nix = {
extraOptions = ''
experimental-features = nix-command flakes

4
nixos/roles/hardware.nix Normal file
View file

@ -0,0 +1,4 @@
{
# Bootloader
boot.loader.grub.enable = true;
}

5
nixos/roles/vm.nix Normal file
View file

@ -0,0 +1,5 @@
{modulesPath, ...}: {
imports = [
(modulesPath + "/virtualisation/xen-domU.nix")
];
}