diff options
author | Vincent Ambo <mail@tazj.in> | 2022-02-17T09·19+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-02-17T18·11+0000 |
commit | e1353ff2cfc8fddec215453ce3c40e15cf5a4793 (patch) | |
tree | 57d9d48dd09b2f823da6e48c2d98e8775bb66f8f /ops/machines/sanduny | |
parent | 9e9284fc8638b3750074177a8c1122ae59df0b55 (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/sanduny')
-rw-r--r-- | ops/machines/sanduny/default.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ops/machines/sanduny/default.nix b/ops/machines/sanduny/default.nix index 674691776956..dd2885d7bb8a 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; [ |