This commit is contained in:
Qyriad 2026-02-16 18:02:39 +01:00
parent da509d97c7
commit 3765e918d6
18 changed files with 348 additions and 226 deletions

View file

@ -39,12 +39,17 @@
enable = true;
serviceConfig.Type = "oneshot";
serviceConfig.RemainAfterExit = true;
serviceConfig.RequisteOf = [ "multi-user.target" ];
path = [ config.system.path ];
wantedBy = [ "multi-user.target" ];
requiredBy = [ "multi-user.target" ];
after = [ "default.target" ];
script = ''
nix profile install -vv "${dynix.modules}" # "
if [[ -e /etc/nixos/hardware-configuration.nix ]]; then
echo "install-dynix: configuration already copied; nothing to do"
exit 0
fi
nix profile install -vv "${dynix.drvPath}^*" # "
mkdir -vp /etc/nixos
nixos-generate-config
@ -58,6 +63,8 @@
passthru = { inherit options; };
environment.systemPackages = [ config.passthru.configurationDotNix ];
# Just making something in this strict in `name`,
# which is only present as an argument for nodes and I don't want to
# confuse that with the test modules.