Add Nodens, a VM to install NixOS VMs

This commit is contained in:
Gonne 2024-11-29 11:55:58 +01:00
parent ac85711356
commit 076faf150d
3 changed files with 56 additions and 1 deletions

View file

@ -14,7 +14,13 @@
importedConfig = import (./. + "/machines/${name}/configuration.nix");
systemConfig =
if lib.isFunction importedConfig
then x: importedConfig (x // {flake-inputs = inputs;})
then
x:
importedConfig (x
// {
flake-inputs = inputs;
inherit pkgs;
})
else importedConfig;
in
pkgs.nixos {