diff options
| author | Soispha Peetz <soispha@b-peetz.de> | 2026-11-04 21:11:29 +0100 |
|---|---|---|
| committer | Soispha Peetz <soispha@b-peetz.de> | 2026-11-27 00:55:52 +0100 |
| commit | 894619e68c0d413f808af4af455478995541a9d9 (patch) | |
| tree | cd8dd8f254b7c8743e2db53d534c261377aff5f5 /modules | |
| parent | scripts/build.sh: Really only delete symlinks (diff) | |
| download | nixos-server-894619e68c0d413f808af4af455478995541a9d9.zip | |
hosts/{server2,server3}: Deduplicate some configuration via `modules/common`
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/common/vhack/default.nix | 62 |
1 files changed, 37 insertions, 25 deletions
diff --git a/modules/common/vhack/default.nix b/modules/common/vhack/default.nix index 9189a28..4ea5885 100644 --- a/modules/common/vhack/default.nix +++ b/modules/common/vhack/default.nix @@ -1,30 +1,42 @@ {...}: { - vhack.users = { - enable = true; - users = [ - { - name = "soispha"; - groups = ["wheel"]; - uid = 1000; - password = "$y$jFT$3.8XmUyukZvpExMUxDZkI.$IVrJgm8ysNDF/0vDD2kF6w73ozXgr1LMVRNN4Bq7pv1"; - sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIME4ZVa+IoZf6T3U08JG93i6QIAJ4amm7mkBzO14JSkz cardno:000F_18F83532"; - } - { - name = "jaki"; - uid = 1001; - groups = ["wheel"]; - password = "$y$jFT$KpFnahVCE9JbE.5P3us8o.$ZzSxCusWqe3sL7b6DLgOXNNUf114tiiptM6T8lDxtKC"; - sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILn7Oumr5IYtTTIKRFvDnofGXXiDLBQE9jVF+7UE+4G5 vhack.eu"; - } - ]; - }; + vhack = { + anubis.enable = true; + + users = { + enable = true; + users = [ + { + name = "soispha"; + groups = ["wheel"]; + uid = 1000; + password = "$y$jFT$3.8XmUyukZvpExMUxDZkI.$IVrJgm8ysNDF/0vDD2kF6w73ozXgr1LMVRNN4Bq7pv1"; + sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIME4ZVa+IoZf6T3U08JG93i6QIAJ4amm7mkBzO14JSkz cardno:000F_18F83532"; + } + { + name = "jaki"; + uid = 1001; + groups = ["wheel"]; + password = "$y$jFT$KpFnahVCE9JbE.5P3us8o.$ZzSxCusWqe3sL7b6DLgOXNNUf114tiiptM6T8lDxtKC"; + sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILn7Oumr5IYtTTIKRFvDnofGXXiDLBQE9jVF+7UE+4G5 vhack.eu"; + } + ]; + }; + + postgresql.enable = true; + fail2ban.enable = true; + nixconfig.enable = true; + openssh.enable = true; - vhack.persist = { - enable = true; + persist = { + enable = true; - directories = [ - "/etc/nixos" - "/var/lib/systemd" - ]; + directories = [ + "/etc/nixos" + "/var/lib/systemd" + "/var/log" + ]; + }; }; + boot.tmp.cleanOnBoot = true; + zramSwap.enable = true; } |
