about summary refs log tree commit diff
path: root/ops/machines
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-02-17T09·19+0300
committertazjin <tazjin@tvl.su>2022-02-17T18·11+0000
commite1353ff2cfc8fddec215453ce3c40e15cf5a4793 (patch)
tree57d9d48dd09b2f823da6e48c2d98e8775bb66f8f /ops/machines
parent9e9284fc8638b3750074177a8c1122ae59df0b55 (diff)
feat(ops/machines): Add tvl-users to sanduny.tvl.su r/3840
Change-Id: I20f54f4ab298cfee91062f7bf4cdc8b0b3ccb37c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5299
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to 'ops/machines')
-rw-r--r--ops/machines/sanduny/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/ops/machines/sanduny/default.nix b/ops/machines/sanduny/default.nix
index 6746917769..dd2885d7bb 100644
--- a/ops/machines/sanduny/default.nix
+++ b/ops/machines/sanduny/default.nix
@@ -9,7 +9,14 @@ _: # ignore readTree options
 
 { config, depot, lib, pkgs, ... }:
 
+let
+  mod = name: depot.path + ("/ops/modules/" + name);
+in
 {
+  imports = [
+    (mod "tvl-users.nix")
+  ];
+
   networking = {
     hostName = "sanduny";
     domain = "tvl.su";
@@ -33,13 +40,6 @@ _: # ignore readTree options
     firewall.allowedTCPPorts = [ 22 80 443 ];
   };
 
-  users.users.tazjin = {
-    isNormalUser = true;
-    extraGroups = [ "git" "wheel" ];
-    shell = pkgs.fish;
-    openssh.authorizedKeys.keys = depot.users.tazjin.keys.all;
-  };
-
   security.sudo.wheelNeedsPassword = false;
 
   environment.systemPackages = with pkgs; [