Deleted all instances of ssh.nix to hide the config before making repo public

This commit is contained in:
metallaxis committed 2026-11-04 11:31:47 +02:00
1 parent d64269eb05
commit 82fc703411
1 file changed
+41
+41
View File
@@ -0,0 +1,41 @@
{ config, pkgs, ... }:
{
sops.secrets = {
config = {
sopsFile = ../../secrets/ssh.yaml;
path = "${config.home.homeDirectory}/.ssh/config";
};
servers_key = {
sopsFile = ../../secrets/ssh.yaml;
path = "${config.home.homeDirectory}/.ssh/servers";
};
gitea_key = {
sopsFile = ../../secrets/ssh.yaml;
path = "${config.home.homeDirectory}/.ssh/gitea";
};
github_key = {
sopsFile = ../../secrets/ssh.yaml;
path = "${config.home.homeDirectory}/.ssh/github";
};
};
home.file = {
".ssh/servers.pub" = {
source = ../../secrets/ssh/servers.pub;
onChange = "chmod 644 ${config.home.homeDirectory}/.ssh/servers.pub";
};
".ssh/gitea.pub" = {
source = ../../secrets/ssh/gitea.pub;
onChange = "chmod 644 ${config.home.homeDirectory}/.ssh/gitea.pub";
};
".ssh/github.pub" = {
source = ../../secrets/ssh/github.pub;
onChange = "chmod 644 ${config.home.homeDirectory}/.ssh/github.pub";
};
};
}