summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/users.nix11
-rw-r--r--data/aliases.nix1
2 files changed, 11 insertions, 1 deletions
diff --git a/config/users.nix b/config/users.nix
index a1a4a15..2c660b7 100644
--- a/config/users.nix
+++ b/config/users.nix
@@ -1,5 +1,6 @@
{ config, lib, pkgs, ... }:
-{
+let aliases = import ../data/aliases.nix;
+in {
users = {
defaultUserShell = pkgs.fish;
extraUsers = {
@@ -29,12 +30,20 @@
uid = 503;
home = "/var/lib/linoquotes";
};
+ stats = {
+ name = "stats";
+ group = "stats";
+ createHome = true;
+ uid = 504;
+ home = aliases.services.stats.home;
+ };
};
extraGroups = {
fcgi = { name = "fcgi"; gid = 500; };
plugdev = { name = "plugdev"; gid = 501; };
systemhttpd = { name = "systemhttpd"; gid = 502; };
linoquotes = { name = "linoquotes"; gid = 503; };
+ stats = { name = "stats"; gid = 504; };
};
};
}
diff --git a/data/aliases.nix b/data/aliases.nix
index 4ed0f1c..1911d53 100644
--- a/data/aliases.nix
+++ b/data/aliases.nix
@@ -11,5 +11,6 @@ rec {
fcgi = { address = ip.shape; port = 11104; };
systemhttpd = { address = ip.shape; port = 11105; };
linoquotes = { address = ip.raigh; port = 11106; };
+ stats = { home = "/var/lib/stats"; };
};
}