about summary refs log tree commit diff
path: root/configurations/eonwe
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-08-03 00:23:38 +0300
committerAzat Bahawi <azat@bahawi.net>2024-08-03 00:23:38 +0300
commitffd1ac27a341de0da4bf63a5da1320ee6d132ae0 (patch)
tree721c614b649cea4b13f69a9983570247b7cef118 /configurations/eonwe
parent2024-08-02 (diff)
2024-08-03
Diffstat (limited to '')
-rw-r--r--configurations/eonwe/default.nix19
1 files changed, 18 insertions, 1 deletions
diff --git a/configurations/eonwe/default.nix b/configurations/eonwe/default.nix
index ca20140..29f1adc 100644
--- a/configurations/eonwe/default.nix
+++ b/configurations/eonwe/default.nix
@@ -15,7 +15,10 @@ with lib;
 
     syncthing.enable = true;
 
-    openssh.server.enable = true;
+    openssh.server = {
+      enable = true;
+      port = 22;
+    };
 
     android.enable = true;
     beets.enable = true;
@@ -294,4 +297,18 @@ with lib;
     enable = true;
     memoryPercent = 25;
   };
+
+  users = {
+    users.builder = {
+      isSystemUser = true;
+      group = "builder";
+      openssh.authorizedKeys.keys = [
+        "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHzclJfd2n0POaFlYuSRK40JddtS+PYIpFyTz2BY94Wb root@ilmare"
+      ];
+      useDefaultShell = true;
+    };
+    groups.builder = { };
+  };
+
+  nix.settings.trusted-users = [ "builder" ];
 }

Consider giving Nix/NixOS a try! <3