diff options
| author | Michael Hoang <enzime@users.noreply.github.com> | 2023-07-11 18:58:29 +1000 |
|---|---|---|
| committer | Michael Hoang <enzime@users.noreply.github.com> | 2023-07-12 08:35:36 +1000 |
| commit | 63af129cb56548edf8e620437443f8e8b57864f9 (patch) | |
| tree | 414b54c9af4dc3bf231c4b66d4e68bca029abb58 /modules/programs | |
| parent | ac9a366aed7e0d4cbad304aa97d1a3da70f27fa5 (diff) | |
etc: use `.before-nix-darwin` instead of `.orig`
Diffstat (limited to 'modules/programs')
| -rw-r--r-- | modules/programs/ssh/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/programs/ssh/default.nix b/modules/programs/ssh/default.nix index e472d7b..87978e6 100644 --- a/modules/programs/ssh/default.nix +++ b/modules/programs/ssh/default.nix @@ -164,9 +164,9 @@ in }; }; - # Clean up .orig file left over from using knownSha256Hashes + # Clean up .before-nix-darwin file left over from using knownSha256Hashes system.activationScripts.etc.text = '' - auth_keys_orig=/etc/ssh/sshd_config.d/101-authorized-keys.conf.orig + auth_keys_orig=/etc/ssh/sshd_config.d/101-authorized-keys.conf.before-nix-darwin if [ -e "$auth_keys_orig" ] && [ "$(shasum -a 256 $auth_keys_orig | cut -d ' ' -f 1)" = "${oldAuthorizedKeysHash}" ]; then rm "$auth_keys_orig" |
