summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-01 03:31:24 +0100
committertv <tv@krebsco.de>2016-02-01 03:32:31 +0100
commit8217472e99ad5c9392a4da443dd2fe66343c8668 (patch)
tree24b1eec749767b105d8500c63c3e757ac0ccd401 /tv/2configs
parent8aec9eb987ab89dec9326709c3a72a287d9aa1d0 (diff)
tv config: isUser root == true
Diffstat (limited to 'tv/2configs')
-rw-r--r--tv/2configs/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix
index e7197c4c4..310077021 100644
--- a/tv/2configs/default.nix
+++ b/tv/2configs/default.nix
@@ -180,7 +180,8 @@ with lib;
{
systemd.tmpfiles.rules = let
forUsers = flip map users;
- isUser = { group, ... }: hasSuffix "users" group;
+ isUser = { name, group, ... }:
+ name == "root" || hasSuffix "users" group;
users = filter isUser (mapAttrsToList (_: id) config.users.users);
in forUsers (u: "d /run/xdg/${u.name} 0700 ${u.name} ${u.group} -");
environment.variables.XDG_RUNTIME_DIR = "/run/xdg/$LOGNAME";