summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-12-12 19:37:52 +0100
committerlassulus <lass@aidsballs.de>2015-12-12 19:37:52 +0100
commit25c1a1c5eeffd59af84eb3eda167ac81622e5198 (patch)
treef89f3351168cc21e15ace723a63c4081a470d374 /krebs/3modules
parent1b9a044b44d12096dbad27db3a44d5c911ec9eb4 (diff)
k 3 fetchWallpaper: default stateDir in /var
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/fetchWallpaper.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/krebs/3modules/fetchWallpaper.nix b/krebs/3modules/fetchWallpaper.nix
index a3eddcc27..b5eb00e9c 100644
--- a/krebs/3modules/fetchWallpaper.nix
+++ b/krebs/3modules/fetchWallpaper.nix
@@ -27,7 +27,7 @@ let
};
stateDir = mkOption {
type = types.str;
- default = "/tmp/wallpaper";
+ default = "/var/lib/wallpaper";
};
display = mkOption {
type = types.str;
@@ -50,11 +50,12 @@ let
'';
imp = {
- users.extraUsers.fetchWallpaper = {
+ users.users.fetchWallpaper = {
name = "fetchWallpaper";
uid = 3332383611; #genid fetchWallpaper
description = "fetchWallpaper user";
- home = "/var/empty";
+ home = cfg.stateDir;
+ createHome = true;
};
systemd.timers.fetchWallpaper = {