We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1302e6 commit ac1c950Copy full SHA for ac1c950
modules/core.nix
@@ -51,7 +51,11 @@ in
51
if [ ! -f ${config.home.homeDirectory}/.ssh/authorized_keys ]; then
52
touch ${config.home.homeDirectory}/.ssh/authorized_keys
53
fi
54
- (cat ${config.home.homeDirectory}/.ssh/id_ed25519.pub) >> ${config.home.homeDirectory}/.ssh/authorized_keys
+ if grep -q "charles@home-manager" "${config.home.homeDirectory}/.ssh/authorized_keys"; then
55
+ exit 0
56
+ else
57
+ (cat ${config.home.homeDirectory}/.ssh/id_ed25519.pub) >> ${config.home.homeDirectory}/.ssh/authorized_keys
58
+ fi
59
'';
60
gpgFixup = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
61
if [ ! -d ${config.xdg.dataHome}/gnupg ]; then
0 commit comments