summaryrefslogtreecommitdiffstats
path: root/tv
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-07-23 13:19:44 +0200
committertv <tv@krebsco.de>2016-07-23 13:19:44 +0200
commitb6dfed56ddb161907988e0bcbc923de0c5b226dd (patch)
tree87796c659cd618c9a745e33ef4c0fb112ced0a6c /tv
parent268303de888591f4b98dc610f89707cd3cfe3ef7 (diff)
tv xdg: init
Diffstat (limited to 'tv')
-rw-r--r--tv/2configs/default.nix11
-rw-r--r--tv/2configs/xdg.nix14
2 files changed, 15 insertions, 10 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix
index 7992c90cb..0e463212e 100644
--- a/tv/2configs/default.nix
+++ b/tv/2configs/default.nix
@@ -32,6 +32,7 @@ with config.krebs.lib;
./ssh.nix
./sshd.nix
./vim.nix
+ ./xdg.nix
{
# stockholm dependencies
environment.systemPackages = with pkgs; [
@@ -144,15 +145,5 @@ with config.krebs.lib;
pkgs.push
];
}
-
- {
- systemd.tmpfiles.rules = let
- forUsers = flip map users;
- 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";
- }
];
}
diff --git a/tv/2configs/xdg.nix b/tv/2configs/xdg.nix
new file mode 100644
index 000000000..f05ec5431
--- /dev/null
+++ b/tv/2configs/xdg.nix
@@ -0,0 +1,14 @@
+{ config, lib, pkgs, ... }:
+
+with config.krebs.lib;
+
+{
+ environment.variables.XDG_RUNTIME_DIR = "/run/xdg/$LOGNAME";
+
+ systemd.tmpfiles.rules = let
+ forUsers = flip map users;
+ 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} -");
+}