Skip to content

Commit

Permalink
fix: agenix on darwin - check if secrets already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Jan 7, 2024
1 parent 474bd8e commit ede2763
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion secrets/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
}
'
'';
}

0 comments on commit ede2763

Please sign in to comment.