diff --git a/secrets/darwin.nix b/secrets/darwin.nix index 9d0810c2..3ee1ba85 100644 --- a/secrets/darwin.nix +++ b/secrets/darwin.nix @@ -50,9 +50,11 @@ # activationScripts are executed every time you run `nixos-rebuild` / `darwin-rebuild`. # but not when you reboot the system, so currently you need to run those commands manually after reboot... + # + # /etc/agenix/* will be created after the first time you run `nixos-rebuild` / `darwin-rebuild` successfully. + # so you may need to comment out the following lines if it's the first time you run `nixos-rebuild` / `darwin-rebuild`. system.activationScripts.postUserActivation.text = '' - sudo chmod 644 /etc/agenix/alias-for-work.nushell - sudo chmod 644 /etc/agenix/alias-for-work.bash + sudo chmod 644 /etc/agenix/* ''; }