From 776aefaf2b175884c0068587fe014a1680ed2e19 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 15 Apr 2020 14:50:35 +0000 Subject: sys/atuin: add spectrum group for spectrum repos --- sys/atuin.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/atuin.nix b/sys/atuin.nix index 393b743dce82..d1e89604362b 100644 --- a/sys/atuin.nix +++ b/sys/atuin.nix @@ -138,7 +138,7 @@ vhosts = { "znc.qyliss.net".locations."/".proxyPass = "http://127.0.0.1:6667/"; "spectrumos.org".locations."/".return = "https://spectrum-os.org/"; - "spectrum-os.org".locations."/".root = "/var/www/spectrum-os.org"; + "spectrum-os.org".locations."/".root = "/home/spectrum/www"; default = { serverName = null; @@ -181,6 +181,14 @@ ) vhosts; + users.groups.spectrum.members = [ "qyliss" ]; + system.activationScripts.spectrum-home = lib.stringAfter [ "users" ] '' + install -g spectrum -m 2775 -d /home/spectrum + install -g spectrum -m 0775 -d /home/spectrum/git + ''; + + environment.systemPackages = with pkgs; [ git ]; + services.nginx.appendConfig = '' stream { server { -- cgit 1.4.1