Compare commits

...

2 Commits

Author SHA1 Message Date
6f92fd2a3a Fix deprecated ssh options
All checks were successful
Run nix flake check / flake-check (push) Successful in 3m42s
Periodic flake update / flake-update (push) Successful in 2m25s
2025-09-01 20:01:52 +02:00
df29d95fd9 Rename greetd.tuigreet 2025-09-01 19:57:01 +02:00
2 changed files with 13 additions and 8 deletions

View File

@@ -18,27 +18,32 @@ in
{ {
programs.ssh = { programs.ssh = {
enable = true; enable = true;
controlMaster = "auto"; enableDefaultConfig = false;
serverAliveInterval = 30;
matchBlocks = { matchBlocks = {
"bmo.uio.no-on-eduroam" = ( "bmo.uio.no-on-eduroam" = (
lib.mkIf (osConfig.system.name == "magicman") ( lib.mkIf (osConfig.system.name == "magicman") (
lib.hm.dag.entryBefore [ "bmo.uio.no" ] { lib.hm.dag.entryBefore [ "bmo.uio.no" "*" ] {
match = "host bmo.uio.no exec \"nmcli -g GENERAL.STATE c s eduroam|grep -q -E '\\bactiv'\""; match = "host bmo.uio.no exec \"nmcli -g GENERAL.STATE c s eduroam|grep -q -E '\\bactiv'\"";
hostname = "bmo.uio.no"; hostname = "bmo.uio.no";
forwardAgent = false; forwardAgent = false;
serverAliveInterval = 30;
controlMaster = "auto";
} }
) )
); );
"bmo.uio.no" = { "bmo.uio.no" = lib.hm.dag.entryBefore [ "*" ] {
setEnv = {
# TERM = "xterm-256color";
};
hostname = "bmo.uio.no"; hostname = "bmo.uio.no";
forwardAgent = false; forwardAgent = false;
proxyJump = "torjus@rlogin.uio.no"; proxyJump = "torjus@rlogin.uio.no";
serverAliveInterval = 30;
controlMaster = "auto";
};
"*" = {
serverAliveInterval = 30;
controlMaster = "auto";
}; };
}; };
}; };

View File

@@ -4,7 +4,7 @@
enable = true; enable = true;
settings = { settings = {
default_session = { default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd \"uwsm start default\""; command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd \"uwsm start default\"";
user = "greeter"; user = "greeter";
}; };
}; };