forked from Fachschaft/nixConfig
Differentiate hardware and vms in roles
This commit is contained in:
parent
df8b605814
commit
4197474fec
4 changed files with 13 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
./hardware-configuration.nix
|
||||
../../modules/jitsi.nix
|
||||
../../roles
|
||||
../../roles/vm.nix
|
||||
./network.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
6
nixos/roles/hardware.nix
Normal file
6
nixos/roles/hardware.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
# Use grub as bootloader.
|
||||
# Systemd-boot does not support our legacy BIOS hardware,
|
||||
# but only runs on UEFI systems.
|
||||
boot.loader.grub.enable = true;
|
||||
}
|
5
nixos/roles/vm.nix
Normal file
5
nixos/roles/vm.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{modulesPath, ...}: {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/xen-domU.nix")
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue