1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

home-manager: fix implicit dependency on coreutils

fixes https://github.com/Mic92/sops-nix/issues/542
This commit is contained in:
Jörg Thalheim 2024-04-19 10:10:53 +02:00 committed by mergify[bot]
parent b94c6edbb8
commit e31339a204

View file

@ -100,7 +100,7 @@ let
+ (lib.optionalString cfg.age.generateKey ''
if [[ ! -f '${cfg.age.keyFile}' ]]; then
echo generating machine-specific age key...
mkdir -p $(dirname ${cfg.age.keyFile})
${pkgs.coreutils}/bin/mkdir -p $(${pkgs.coreutils}/bin/dirname ${cfg.age.keyFile})
# age-keygen sets 0600 by default, no need to chmod.
${pkgs.age}/bin/age-keygen -o ${cfg.age.keyFile}
fi