IT WORKS
This commit is contained in:
parent
da509d97c7
commit
3765e918d6
18 changed files with 348 additions and 226 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue