diff options
author | Silas Schöffel <sils@sils.li> | 2025-01-04 20:09:28 +0100 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2025-01-04 20:11:38 +0100 |
commit | 2c4c5494327324490ca0859fe65fbcbf3ece7e0f (patch) | |
tree | 838e46de041f93fa91a906b6be60b98a14eccb18 /hosts/by-name/server3/configuration.nix | |
parent | feat(pkgs/back): add comments to rss feed (diff) | |
download | nixos-server-main.zip |
Diffstat (limited to 'hosts/by-name/server3/configuration.nix')
-rw-r--r-- | hosts/by-name/server3/configuration.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/hosts/by-name/server3/configuration.nix b/hosts/by-name/server3/configuration.nix new file mode 100644 index 0000000..24b66e4 --- /dev/null +++ b/hosts/by-name/server3/configuration.nix @@ -0,0 +1,26 @@ +{config, ...}: { + imports = [ + ./networking.nix # network configuration that just works + ./hardware.nix + ]; + + vhack = { + fail2ban.enable = true; + openssh.enable = true; + persist = { + enable = true; + directories = [ + "/var/log" + ]; + }; + rust-motd.enable = true; + users.enable = true; + }; + + boot.tmp.cleanOnBoot = true; + zramSwap.enable = true; + networking.hostName = "server3"; + networking.domain = "vhack.eu"; + + system.stateVersion = "24.11"; +} |