mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 20:40:24 +01: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
|
||||
system.activationScripts.postActivation.text = ''
|
||||
sudo chown ${username} /etc/agenix/*
|
||||
${pkgs.nushell}/bin/nu -c '
|
||||
if (ls /etc/agenix/ | length) > 0 {
|
||||
sudo chown ${username} /etc/agenix/*
|
||||
}
|
||||
'
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user