mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-21 15:01:28 +01:00
fix: agenix on darwin - check if secrets already exists
This commit is contained in:
1 parent
474bd8ebf4
commit
ede2763756
1 file changed
+5
-1
+5
-1
@@ -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