summaryrefslogtreecommitdiff
path: root/nixos/hosts/apocalypse/default.nix
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-05-08 23:29:41 +0200
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-05-08 23:32:32 +0200
commitb97209171ce216d3f31ed42856c5d5d95c808025 (patch)
tree68d6064967e4d5fb2244b4072c7e0b39d11e1cf3 /nixos/hosts/apocalypse/default.nix
parent40f6e567cd1c8bd893d92b40487571847799c647 (diff)
openssh and firewall changes
Diffstat (limited to '')
-rw-r--r--nixos/hosts/apocalypse/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/hosts/apocalypse/default.nix b/nixos/hosts/apocalypse/default.nix
index a84d07d..a6e6233 100644
--- a/nixos/hosts/apocalypse/default.nix
+++ b/nixos/hosts/apocalypse/default.nix
@@ -69,6 +69,20 @@
# Firmware updates
services.fwupd.enable = true;
+
+ services.openssh = {
+ enable = true;
+ ports = [22];
+ openFirewall = false;
+ allowSFTP = false;
+ settings = {
+ PasswordAuthentication = false;
+ AllowUsers = ["wilkuu"];
+ X11Forwarding = false;
+ PermitRootLogin = "no";
+ PrintMotd = true;
+ };
+ };
}