summaryrefslogtreecommitdiff
path: root/modules/programs/ssh
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2023-07-11 18:58:29 +1000
committerMichael Hoang <enzime@users.noreply.github.com>2023-07-12 08:35:36 +1000
commit63af129cb56548edf8e620437443f8e8b57864f9 (patch)
tree414b54c9af4dc3bf231c4b66d4e68bca029abb58 /modules/programs/ssh
parentac9a366aed7e0d4cbad304aa97d1a3da70f27fa5 (diff)
etc: use `.before-nix-darwin` instead of `.orig`
Diffstat (limited to 'modules/programs/ssh')
-rw-r--r--modules/programs/ssh/default.nix4
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"