mv machine specific configs to separate file

This commit is contained in:
2025-10-18 21:31:02 +02:00
parent 9d08563c58
commit ba602446f3
2 changed files with 20 additions and 12 deletions
+20 -4
View File
@@ -43,11 +43,27 @@
]; ];
# SSH config # SSH config
home.file.sshconfig = { programs.ssh = {
enable = true; enable = true;
executable = false; # evaluation warning: user profile: `programs.ssh` default values will be removed in the future.
source = ssh/config; # Consider setting `programs.ssh.enableDefaultConfig` to false,
target = ".ssh/config"; # and manually set the default values you want to keep at
# `programs.ssh.matchBlocks."*"`.
enableDefaultConfig = false;
matchBlocks."*" = {
user = "root";
controlMaster = "auto";
controlPersist = "3600";
controlPath = "/run/user/%i/ssh-socket-%r@%h:%p";
serverAliveInterval = 20;
};
matchBlocks."github.com".user = "git";
extraConfig = ''
Include config_local
'';
}; };
}; };
} }
-8
View File
@@ -1,8 +0,0 @@
User root
ServerAliveInterval 20
ControlMaster auto
ControlPersist 3600
ControlPath /run/user/%i/ssh-socket-%r@%h:%p
Host github.com
User git