add ssh config to sops encrypt file secrets/ssh-config.yaml

This commit is contained in:
ulic-youthlic 2025-01-12 00:01:46 +08:00
parent 4e7219de8d
commit d9b33554b9
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
3 changed files with 33 additions and 2 deletions

View file

@ -96,6 +96,7 @@
};
};
};
includes = [ config.sops.secrets.ssh-config.path ];
};
programs.chromium = {
enable = true;
@ -117,6 +118,12 @@
path = "${config.home.homeDirectory}/.ssh/id_ed25519";
};
sops.secrets."ssh-config" = {
mode = "0400";
format = "yaml";
sopsFile = rootPath + "/secrets/ssh-config.yaml";
};
sops.gnupg = {
home = "${config.home.homeDirectory}/.gnupg";
};