store ssh keys in ~/private, where they're encrypted

This commit is contained in:
colin 2022-10-24 01:33:14 -07:00
parent c833c68d83
commit 1721546410
2 changed files with 4 additions and 1 deletions

View File

@ -93,6 +93,10 @@ in
};
};
# ssh key is stored in private storage
home.file.".ssh/id_ed25519".source = config.lib.file.mkOutOfStoreSymlink "/home/colin/private/.ssh/id_ed25519";
home.file.".ssh/id_ed25519.pub".text = (import ../pubkeys.nix)."${sysconfig.networking.hostName}";
# XDG defines things like ~/Desktop, ~/Downloads, etc.
# these clutter the home, so i mostly don't use them.
xdg.userDirs = {

View File

@ -70,7 +70,6 @@ in
".cache"
".cargo"
".rustup"
".ssh"
".local/share/keyrings"
];