Deleted all instances of ssh.nix to hide the config before making repo public
This commit is contained in:
1 file changed
+41
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user