mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-28 09:19:09 +02:00
fix: agenix on darwin - check if secrets already exists
This commit is contained in:
@@ -77,6 +77,10 @@
|
|||||||
#
|
#
|
||||||
# activationScripts are executed every time you run `nixos-rebuild` / `darwin-rebuild` or boot your system
|
# activationScripts are executed every time you run `nixos-rebuild` / `darwin-rebuild` or boot your system
|
||||||
system.activationScripts.postActivation.text = ''
|
system.activationScripts.postActivation.text = ''
|
||||||
|
${pkgs.nushell}/bin/nu -c '
|
||||||
|
if (ls /etc/agenix/ | length) > 0 {
|
||||||
sudo chown ${username} /etc/agenix/*
|
sudo chown ${username} /etc/agenix/*
|
||||||
|
}
|
||||||
|
'
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user