remove more hard coded paths

This commit is contained in:
2025-11-05 23:58:04 -06:00
parent 303c759bb4
commit f0a8d8f0fb
6 changed files with 11 additions and 294 deletions
+6 -10
View File
@@ -6,7 +6,7 @@
}: let
program = "ssh";
cfg = config.dots.${program};
#sec = sops.secrets;
home_dir = config.home.homeDirectory;
in {
options.dots.${program} = {
enable = lib.mkEnableOption "enables ${program}";
@@ -19,33 +19,29 @@ in {
matchBlocks = {
"git.blakedheld.xyz" = {
user = "gitea";
identityFile = "~/.ssh/id_snowbelle";
identityFile = "${home_dir}/.ssh/id_snowbelle";
};
"git.snowbelle.lan" = {
user = "gitea";
identityFile = "~/.ssh/id_snowbelle";
identityFile = "${home_dir}/.ssh/id_snowbelle";
};
"bebe" = {
hostname = "10.10.0.1";
user = "root";
identityFile = "~/.ssh/id_snowbelle";
identityFile = "${home_dir}/.ssh/id_snowbelle";
};
};
};
# import sshkeys from keyring
#home.file.".ssh/id_snowbelle".source = config.lib.file.mkOutOfStoreSymlink /home/blake/.nix/.keyring/ssh/id_snowbelle;
#home.file.".ssh/id_snowbelle.pub".source = config.lib.file.mkOutOfStoreSymlink /home/blake/.nix/.keyring/ssh/id_snowbelle.pub;
# manage secrets with sops
sops.secrets = {
"id_snowbelle" = {
mode = "0600";
path = "/home/blake/.ssh/id_snowbelle";
path = "${home_dir}/.ssh/id_snowbelle";
};
"id_snowbelle.pub" = {
mode = "644";
path = "/home/blake/.ssh/id_snowbelle.pub";
path = "${home_dir}/.ssh/id_snowbelle.pub";
};
};
};