mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: allow microvms to override configPath
This commit is contained in:
parent
f65b217a92
commit
cc2397669d
7 changed files with 74 additions and 53 deletions
|
@ -10,6 +10,8 @@
|
|||
./system.nix
|
||||
./xdg.nix
|
||||
|
||||
../../../users/root
|
||||
|
||||
../../../modules/interface-naming.nix
|
||||
../../../modules/microvms.nix
|
||||
../../../modules/wireguard.nix
|
||||
|
@ -22,6 +24,13 @@
|
|||
verbose = true;
|
||||
};
|
||||
|
||||
# If the host defines microvms, ensure that this core module and
|
||||
# some boilerplate is imported automatically.
|
||||
extra.microvms.commonImports = [
|
||||
./.
|
||||
{home-manager.users.root.home.minimal = true;}
|
||||
];
|
||||
|
||||
# Required even when using home-manager's zsh module since the /etc/profile load order
|
||||
# is partly controlled by this. See nix-community/home-manager#3681.
|
||||
programs.zsh.enable = true;
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
../common/yubikey.nix
|
||||
../common/zfs.nix
|
||||
|
||||
../../users/root
|
||||
../../users/myuser
|
||||
|
||||
./fs.nix
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
../common/efi.nix
|
||||
../common/zfs.nix
|
||||
|
||||
../../users/root
|
||||
|
||||
./fs.nix
|
||||
./net.nix
|
||||
];
|
||||
|
@ -35,15 +33,22 @@
|
|||
};
|
||||
in {
|
||||
test = defineVm 11;
|
||||
|
||||
#nginx = defineVm 12;
|
||||
#kanidm = defineVm 13;
|
||||
#gitea = defineVm 14;
|
||||
#vaultwarden = defineVm 15;
|
||||
#samba = defineVm 16;
|
||||
#fasten-health = defineVm 17;
|
||||
#immich = defineVm 18;
|
||||
#paperless = defineVm 19;
|
||||
|
||||
#kanidm = defineVm 12 // {
|
||||
# configPath = ./vm-test.nix;
|
||||
#};
|
||||
};
|
||||
|
||||
microvm.vms.test.config = {
|
||||
imports = [
|
||||
../common/core
|
||||
../../users/root
|
||||
];
|
||||
|
||||
home-manager.users.root.home.minimal = true;
|
||||
rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBXXjI6uB26xOF0DPy/QyLladoGIKfAtofyqPgIkCH/g";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
#../common/initrd-ssh.nix
|
||||
../common/zfs.nix
|
||||
|
||||
../../users/root
|
||||
|
||||
./fs.nix
|
||||
./net.nix
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue