aboutsummaryrefslogtreecommitdiff
path: root/hosts/sachiel/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/sachiel/configuration.nix')
-rw-r--r--hosts/sachiel/configuration.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/hosts/sachiel/configuration.nix b/hosts/sachiel/configuration.nix
index 3944006..207447d 100644
--- a/hosts/sachiel/configuration.nix
+++ b/hosts/sachiel/configuration.nix
@@ -1,10 +1,12 @@
{
pkgs,
host,
- username,
...
}:
+let
+ username = "administrator";
+in
{
imports = [
./hardware-configuration.nix
@@ -65,10 +67,16 @@
};
nx.server = {
- openssh.enable = true;
+ openssh = {
+ enable = true;
+ allowedUsers = [ username ];
+ };
fail2ban.enable = true;
nginx.enable = true;
- nextcloud.enable = true;
+ nextcloud = {
+ enable = true;
+ user = username;
+ };
site.enable = true;
};