diff options
| -rw-r--r-- | hosts/icon/configuration.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hosts/icon/configuration.nix b/hosts/icon/configuration.nix index 082d06f..03a7788 100644 --- a/hosts/icon/configuration.nix +++ b/hosts/icon/configuration.nix @@ -48,6 +48,7 @@ }; users.groups.git = {}; + users.groups.nixremote = {}; users.users.nginx.extraGroups = ["git"]; systemd.services.nginx.serviceConfig = { SupplementaryGroups = ["git"]; @@ -87,8 +88,20 @@ ../../pubkeys/work_laptop_ssh.pub ]; }; + nixremote = { + isSystemUser = true; + group = "nixremote"; + home = "/home/nixremote"; + createHome = true; + homeMode = "555"; + openssh.authorizedKeys.keyFiles = [ + ../../pubkeys/desktop_ssh.pub + ]; + }; }; + nix.settings.trusted-users = ["root" "andrew" "nixremote" "@wheel"]; + services.cgit."cgit" = { enable = true; scanPath = "/srv/git"; |
