diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-09-28 10:56:55 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-09-28 10:56:55 +0200 |
| commit | a4acc43150d3315d21578e3bfb7290fa2c34f1ac (patch) | |
| tree | abba670a5f81109a6bd1fd717de04dd58380da9a /accounts/gkleen@skadhi | |
| parent | 0fbdb0cd87a55ac26df54694386953281850d0a9 (diff) | |
| download | nixos-a4acc43150d3315d21578e3bfb7290fa2c34f1ac.tar nixos-a4acc43150d3315d21578e3bfb7290fa2c34f1ac.tar.gz nixos-a4acc43150d3315d21578e3bfb7290fa2c34f1ac.tar.bz2 nixos-a4acc43150d3315d21578e3bfb7290fa2c34f1ac.tar.xz nixos-a4acc43150d3315d21578e3bfb7290fa2c34f1ac.zip | |
...flakes
Diffstat (limited to 'accounts/gkleen@skadhi')
| -rw-r--r-- | accounts/gkleen@skadhi/default.nix | 5 | ||||
| -rw-r--r-- | accounts/gkleen@skadhi/rzm/default.nix | 54 | ||||
| -rw-r--r-- | accounts/gkleen@skadhi/ssh/default.nix | 35 |
3 files changed, 48 insertions, 46 deletions
diff --git a/accounts/gkleen@skadhi/default.nix b/accounts/gkleen@skadhi/default.nix index 1d6381a5..6d8195aa 100644 --- a/accounts/gkleen@skadhi/default.nix +++ b/accounts/gkleen@skadhi/default.nix | |||
| @@ -176,6 +176,7 @@ in { | |||
| 176 | services.blueman-applet.enable = true; | 176 | services.blueman-applet.enable = true; |
| 177 | 177 | ||
| 178 | home.pointerCursor = { | 178 | home.pointerCursor = { |
| 179 | enable = true; | ||
| 179 | package = pkgs.vanilla-dmz; | 180 | package = pkgs.vanilla-dmz; |
| 180 | name = "Vanilla-DMZ-AA"; | 181 | name = "Vanilla-DMZ-AA"; |
| 181 | size = 16; | 182 | size = 16; |
| @@ -204,7 +205,7 @@ in { | |||
| 204 | }; | 205 | }; |
| 205 | }; | 206 | }; |
| 206 | qt.enable = true; | 207 | qt.enable = true; |
| 207 | qt.platformTheme.name = "gtk"; | 208 | qt.platformTheme.name = "gtk3"; |
| 208 | 209 | ||
| 209 | qt.kde.settings.kwalletrc = { | 210 | qt.kde.settings.kwalletrc = { |
| 210 | KSecretD.Enabled = false; | 211 | KSecretD.Enabled = false; |
| @@ -288,8 +289,6 @@ in { | |||
| 288 | }; | 289 | }; |
| 289 | 290 | ||
| 290 | programs.chromium.enable = true; | 291 | programs.chromium.enable = true; |
| 291 | |||
| 292 | services.autosshProxy.vidhar.port = 8121; | ||
| 293 | }; | 292 | }; |
| 294 | }; | 293 | }; |
| 295 | } | 294 | } |
diff --git a/accounts/gkleen@skadhi/rzm/default.nix b/accounts/gkleen@skadhi/rzm/default.nix index e2a47362..cea4a58a 100644 --- a/accounts/gkleen@skadhi/rzm/default.nix +++ b/accounts/gkleen@skadhi/rzm/default.nix | |||
| @@ -176,51 +176,47 @@ in { | |||
| 176 | pro = "$HOME/projects/pro"; | 176 | pro = "$HOME/projects/pro"; |
| 177 | }; | 177 | }; |
| 178 | 178 | ||
| 179 | programs.ssh.matchBlocks = let | 179 | programs.ssh.settings = { |
| 180 | autosshProxy = host: "${lib.getExe pkgs.socat} - SOCKS4A:127.0.0.1:%h:%p,socksport=${toString config.services.autosshProxy.${host}.port}"; | ||
| 181 | in { | ||
| 182 | "repo-apt01" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { | 180 | "repo-apt01" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { |
| 183 | user = "root"; | 181 | User = "root"; |
| 184 | hostname = "repo-apt01.mathinst.loc"; | 182 | Hostname = "repo-apt01.mathinst.loc"; |
| 185 | proxyCommand = autosshProxy "mgmt01"; | 183 | inherit (config.programs.ssh.autosshProxies."mgmt01") ProxyCommand; |
| 186 | }; | 184 | }; |
| 187 | "mgmt01" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { | 185 | "mgmt01" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { |
| 188 | user = "root"; | 186 | User = "root"; |
| 189 | hostname = "mgmt01.mathinst.loc"; | 187 | Hostname = "mgmt01.mathinst.loc"; |
| 190 | proxyCommand = autosshProxy "mathw0h"; | 188 | inherit (config.programs.ssh.autosshProxies."mathw0h") ProxyCommand; |
| 191 | }; | 189 | }; |
| 192 | "mathw0e" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { | 190 | "mathw0e" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { |
| 193 | hostname = "mathw0e.mathinst.loc"; | 191 | Hostname = "mathw0e.mathinst.loc"; |
| 194 | proxyCommand = autosshProxy "mathw0h"; | 192 | inherit (config.programs.ssh.autosshProxies."mathw0h") ProxyCommand; |
| 195 | }; | 193 | }; |
| 196 | "cip04" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { | 194 | "cip04" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { |
| 197 | hostname = "cip04.cipmath.loc"; | 195 | Hostname = "cip04.cipmath.loc"; |
| 198 | proxyCommand = autosshProxy "mathw0h"; | 196 | inherit (config.programs.ssh.autosshProxies."mathw0h") ProxyCommand; |
| 199 | }; | 197 | }; |
| 200 | "mathw0h" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { | 198 | "mathw0h" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { |
| 201 | hostname = "mathw0h.mathinst.loc"; | 199 | Hostname = "mathw0h.mathinst.loc"; |
| 202 | proxyCommand = autosshProxy "ssh.math.lmu.de"; | 200 | inherit (config.programs.ssh.autosshProxies."ssh.math.lmu.de") ProxyCommand; |
| 203 | }; | 201 | }; |
| 204 | "math05" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { | 202 | "math05" = lib.hm.dag.entryBefore ["*.mathinst.loc"] { |
| 205 | hostname = "math05.mathinst.loc"; | 203 | Hostname = "math05.mathinst.loc"; |
| 206 | proxyCommand = autosshProxy "mathw0h"; | 204 | inherit (config.programs.ssh.autosshProxies."mathw0h") ProxyCommand; |
| 207 | extraOptions.KexAlgorithms = "+diffie-hellman-group1-sha1"; | 205 | KexAlgorithms = "+diffie-hellman-group1-sha1"; |
| 208 | }; | 206 | }; |
| 209 | "*.mathinst.loc" = { | 207 | "*.mathinst.loc" = { |
| 210 | match = "host *.mathinst.loc,*.cipmath.loc,*.math.lmu.de"; | 208 | header = "Host *.mathinst.loc,*.cipmath.loc,*.math.lmu.de"; |
| 211 | identityFile = "~/.ssh/gkleen@mathinst.loc"; | 209 | IdentityFile = "~/.ssh/gkleen@mathinst.loc"; |
| 212 | extraOptions = { | 210 | HostKeyAlgorithms = "+ssh-rsa"; |
| 213 | HostKeyAlgorithms = "+ssh-rsa"; | 211 | PubkeyAcceptedAlgorithms = "+ssh-rsa"; |
| 214 | PubkeyAcceptedAlgorithms = "+ssh-rsa"; | 212 | PasswordAuthentication = "yes"; |
| 215 | PasswordAuthentication = "yes"; | 213 | GlobalKnownHostsFile = toString (pkgs.writeText "ssh_known_hosts" '' |
| 216 | GlobalKnownHostsFile = toString (pkgs.writeText "ssh_known_hosts" '' | 214 | @cert-authority *.mathinst.loc,*.math.lmu.de,*.cipmath.loc ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBUTFpVCdETCXiDSDl7YGbR1J4BLTsoBzjDtflHJGO/z ssh-pki@mgmt01 |
| 217 | @cert-authority *.mathinst.loc,*.math.lmu.de,*.cipmath.loc ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBUTFpVCdETCXiDSDl7YGbR1J4BLTsoBzjDtflHJGO/z ssh-pki@mgmt01 | 215 | ''); |
| 218 | ''); | ||
| 219 | }; | ||
| 220 | }; | 216 | }; |
| 221 | }; | 217 | }; |
| 222 | 218 | ||
| 223 | services.autosshProxy = { | 219 | programs.ssh.autosshProxies = { |
| 224 | "mgmt01" = { port = 8129; sshpassSecret = "root@mgmt01.mathinst.loc"; }; | 220 | "mgmt01" = { port = 8129; sshpassSecret = "root@mgmt01.mathinst.loc"; }; |
| 225 | "mathw0e" = { port = 8125; sshpassSecret = "gkleen@mathw0e.mathinst.loc"; }; | 221 | "mathw0e" = { port = 8125; sshpassSecret = "gkleen@mathw0e.mathinst.loc"; }; |
| 226 | "mathw0h" = { port = 8123; sshpassSecret = "gkleen@mathw0h.mathinst.loc"; }; | 222 | "mathw0h" = { port = 8123; sshpassSecret = "gkleen@mathw0h.mathinst.loc"; }; |
diff --git a/accounts/gkleen@skadhi/ssh/default.nix b/accounts/gkleen@skadhi/ssh/default.nix index f0fd93a8..ab0e8990 100644 --- a/accounts/gkleen@skadhi/ssh/default.nix +++ b/accounts/gkleen@skadhi/ssh/default.nix | |||
| @@ -5,33 +5,40 @@ | |||
| 5 | ".ssh" | 5 | ".ssh" |
| 6 | ]; | 6 | ]; |
| 7 | 7 | ||
| 8 | programs.ssh.matchBlocks = { | 8 | programs.ssh.settings = { |
| 9 | "surtr" = { | 9 | "surtr" = { |
| 10 | hostname = "surtr.yggdrasil"; | 10 | Hostname = "surtr.yggdrasil"; |
| 11 | identityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; | 11 | IdentityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; |
| 12 | }; | 12 | }; |
| 13 | "surtr.yggdrasil.li" = { | 13 | "surtr.yggdrasil.li" = { |
| 14 | identityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; | 14 | IdentityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; |
| 15 | }; | 15 | }; |
| 16 | "sif" = { | 16 | "sif" = { |
| 17 | hostname = "sif.yggdrasil"; | 17 | Hostname = "sif.yggdrasil"; |
| 18 | identityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; | 18 | IdentityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; |
| 19 | }; | 19 | }; |
| 20 | "vidhar" = { | 20 | "vidhar" = { |
| 21 | hostname = "vidhar.yggdrasil"; | 21 | Hostname = "vidhar.yggdrasil"; |
| 22 | identityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; | 22 | IdentityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; |
| 23 | }; | 23 | }; |
| 24 | "ymir" = { | 24 | "ymir" = { |
| 25 | hostname = "ymir.yggdrasil.li"; | 25 | Hostname = "ymir.yggdrasil.li"; |
| 26 | identityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; | 26 | IdentityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; |
| 27 | }; | 27 | }; |
| 28 | ${lib.concatStringsSep " " [".host" "skadhi" "skadhi.yggdrasil" "localhost" "::1" "127.0.0.0/8"]} = { | 28 | "localhost" = { |
| 29 | identityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; | 29 | header = "Host " + lib.concatStringsSep " " [".host" "skadhi" "skadhi.yggdrasil" "localhost" "::1" "127.0.0.0/8"]; |
| 30 | IdentityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; | ||
| 30 | }; | 31 | }; |
| 31 | "git.yggdrasil.li" = { | 32 | "git.yggdrasil.li" = { |
| 32 | user = "gitolite"; | 33 | User = "gitolite"; |
| 33 | identityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; | 34 | IdentityFile = "~/.ssh/gkleen@skadhi.yggdrasil"; |
| 35 | }; | ||
| 36 | "github.com" = { | ||
| 37 | User = "git"; | ||
| 38 | IdentityFile = "~/.ssh/gkleen@github.com"; | ||
| 34 | }; | 39 | }; |
| 35 | }; | 40 | }; |
| 41 | |||
| 42 | programs.ssh.autosshProxies.vidhar.port = 8121; | ||
| 36 | }; | 43 | }; |
| 37 | } | 44 | } |
