minimal profile

This commit is contained in:
2026-09-03 20:31:06 +09:00
parent 8761cbfe40
commit 937be12e33
10 changed files with 72 additions and 40 deletions
+15
View File
@@ -31,5 +31,20 @@ lib.mkMerge [
IdentityAgent %d/.1password/agent.sock
'';
};
home.activation.generateSshKey = {
after = [ "writeBoundary" ];
before = [ ];
data = ''
key="$HOME/.ssh/id_ed25519"
if [ ! -f "$key" ]; then
umask 077
mkdir -p "$HOME/.ssh"
${pkgs.openssh}/bin/ssh-keygen -t ed25519 -N "" -f "$key" \
-C "moons@$(${pkgs.hostname}/bin/hostname || echo host)"
echo "Generated SSH key at $key"
fi
'';
};
}
]