diff options
author | tv <tv@krebsco.de> | 2016-02-01 03:31:24 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-01 03:32:31 +0100 |
commit | a2f2f15c5ac0e4d37f8c8e3dcbacab696c832404 (patch) | |
tree | f77f258146d32c38a22089a4ca6df64abdb09386 /tv | |
parent | 3858ce07428fe595b2ec9093210ae550ebe6e106 (diff) |
tv config: isUser root == true
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix index e7197c4..3100770 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"; |