New ssh config style

This commit is contained in:
Thomas Avé 2026-07-20 16:03:03 +02:00
parent d58b3e331a
commit 7400213409
Signed by: thomasave
SSH Key Fingerprint: SHA256:bvIbWy6TO9+PdMTPzWy6dqkRlVQ3eSky+vQcc9aRIiE
11 changed files with 11 additions and 11 deletions

View File

@ -22,7 +22,7 @@ in {
(import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;}) (import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;})
]; ];
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Aloria/id_ed25519"; programs.ssh.settings."*".identityFile = "/home/user/.secrets/SSH/Aloria/id_ed25519";
home.packages = with pkgs; [ home.packages = with pkgs; [
jetbrains.pycharm jetbrains.pycharm

View File

@ -22,7 +22,7 @@ in {
(import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;}) (import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;})
]; ];
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Arendia/id_ed25519"; programs.ssh.settings."*".identityFile = "/home/user/.secrets/SSH/Arendia/id_ed25519";
home.packages = with pkgs; [ home.packages = with pkgs; [
rclone rclone

View File

@ -18,7 +18,7 @@ in {
(import ./utils/common.nix {inherit inputs config pkgs;}) (import ./utils/common.nix {inherit inputs config pkgs;})
./ssh ./ssh
]; ];
programs.ssh.matchBlocks."*".identityFile = "/home/ubuntu/.secrets/SSH/Arm/id_ed25519"; programs.ssh.settings."*".identityFile = "/home/ubuntu/.secrets/SSH/Arm/id_ed25519";
home.sessionVariables = { home.sessionVariables = {
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/"; NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";

View File

@ -8,7 +8,7 @@
(import ./utils/desktop.nix {inherit inputs config pkgs;}) (import ./utils/desktop.nix {inherit inputs config pkgs;})
]; ];
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Asturia/id_ed25519"; programs.ssh.settings."*".identityFile = "/home/user/.secrets/SSH/Asturia/id_ed25519";
home.packages = with pkgs; [ home.packages = with pkgs; [
distrobox distrobox

View File

@ -21,7 +21,7 @@ in {
(import ./utils/desktop.nix {inherit inputs config pkgs;}) (import ./utils/desktop.nix {inherit inputs config pkgs;})
(import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;}) (import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;})
]; ];
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Kell/id_ed25519"; programs.ssh.settings."*".identityFile = "/home/user/.secrets/SSH/Kell/id_ed25519";
dconf.settings = { dconf.settings = {
"org/virt-manager/virt-manager/connections" = { "org/virt-manager/virt-manager/connections" = {

View File

@ -91,7 +91,7 @@ in {
(import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;}) (import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;})
./ssh ./ssh
]; ];
programs.ssh.matchBlocks."*".identityFile = "${home_dir}/.secrets/SSH/Mallorea/id_ed25519"; programs.ssh.settings."*".identityFile = "${home_dir}/.secrets/SSH/Mallorea/id_ed25519";
home.sessionVariables = { home.sessionVariables = {
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/"; NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";

View File

@ -18,7 +18,7 @@ in {
(import ./utils/common.nix {inherit inputs config pkgs;}) (import ./utils/common.nix {inherit inputs config pkgs;})
./ssh ./ssh
]; ];
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Pi/id_ed25519"; programs.ssh.settings."*".identityFile = "/home/user/.secrets/SSH/Pi/id_ed25519";
home.sessionVariables = { home.sessionVariables = {
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/"; NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";

View File

@ -21,5 +21,5 @@ in {
./ssh ./ssh
]; ];
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Riva/id_ed25519"; programs.ssh.settings."*".identityFile = "/home/user/.secrets/SSH/Riva/id_ed25519";
} }

View File

@ -21,7 +21,7 @@
./ssh ./ssh
]; ];
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Tolnedra/id_ed25519"; programs.ssh.settings."*".identityFile = "/home/user/.secrets/SSH/Tolnedra/id_ed25519";
home.packages = with pkgs; [ home.packages = with pkgs; [
wl-clipboard wl-clipboard

View File

@ -69,7 +69,7 @@ in {
./ssh ./ssh
]; ];
programs.ssh.matchBlocks."*".identityFile = "/home/server/.secrets/SSH/Vault/id_ed25519"; programs.ssh.settings."*".identityFile = "/home/server/.secrets/SSH/Vault/id_ed25519";
home.sessionVariables = { home.sessionVariables = {
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/"; NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";

View File

@ -7,7 +7,7 @@
programs.ssh = { programs.ssh = {
enable = true; enable = true;
enableDefaultConfig = false; enableDefaultConfig = false;
matchBlocks = { settings = {
"*" = { "*" = {
host = "*"; host = "*";
}; };