1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: use own nixosSystem invocation for containers, add bind mounts

This commit is contained in:
oddlama 2023-12-17 17:16:12 +01:00
parent abb8330d86
commit 9833fd50ce
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
6 changed files with 86 additions and 34 deletions

View file

@ -54,6 +54,8 @@
# to create a link called /run/agenix. Agenix should probably fail in this case,
# but doesn't and instead puts the generation link into the existing directory.
# TODO See https://github.com/ryantm/agenix/pull/187.
system.activationScripts.removeAgenixLink.text = "[[ ! -L /run/agenix ]] && [[ -d /run/agenix ]] && rm -rf /run/agenix";
system.activationScripts.agenixNewGeneration.deps = ["removeAgenixLink"];
system.activationScripts = lib.mkIf (config.age.secrets != {}) {
removeAgenixLink.text = "[[ ! -L /run/agenix ]] && [[ -d /run/agenix ]] && rm -rf /run/agenix";
activationScripts.agenixNewGeneration.deps = ["removeAgenixLink"];
};
}