diff --git a/deployment/hosts/beherbergung-lifeline/configuration.nix b/deployment/hosts/beherbergung-lifeline/configuration.nix index 07de3b6..526334d 100644 --- a/deployment/hosts/beherbergung-lifeline/configuration.nix +++ b/deployment/hosts/beherbergung-lifeline/configuration.nix @@ -12,4 +12,16 @@ ipv6.addresses = [ { address = "2a01:4f8:c0c:cf13::1"; prefixLength = 64; } ]; }; }; + + users.users."beherbergung" = { + group = "beherbergung"; + isSystemUser = true; + createHome = true; + home = "/var/lib/beherbergung"; + openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys; + shell = "${pkgs.bash}/bin/bash"; + }; + users.groups."beherbergung" = {}; + + networking.firewall.allowedTCPPorts = [ 4000 3000 ]; }