summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-02-16 19:40:04 +0100
committerlassulus <lass@lassul.us>2017-02-16 19:40:04 +0100
commit6a3700da3ce6675cdb600f841007cea923e78454 (patch)
treea2e898743e33a2df4f9b596118fd8e374d05bc8a
parent43d6c89dd68a6c2cda969d716ff381bd47c0545d (diff)
k 3 fetchWallpaper: use $HOME as default
-rw-r--r--krebs/3modules/fetchWallpaper.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/krebs/3modules/fetchWallpaper.nix b/krebs/3modules/fetchWallpaper.nix
index 8db8be771..d5f2d0b69 100644
--- a/krebs/3modules/fetchWallpaper.nix
+++ b/krebs/3modules/fetchWallpaper.nix
@@ -24,7 +24,7 @@ let
# TODO find a better default stateDir
stateDir = mkOption {
type = types.str;
- default = "./wallpaper";
+ default = "$HOME/wallpaper";
};
display = mkOption {
type = types.str;
@@ -49,8 +49,8 @@ let
fetchWallpaperScript = pkgs.writeDash "fetchWallpaper" ''
set -euf
- mkdir -p ${shell.escape cfg.stateDir}
- cd ${shell.escape cfg.stateDir}
+ mkdir -p ${cfg.stateDir}
+ cd ${cfg.stateDir}
(curl --max-time ${toString cfg.maxTime} -s -o wallpaper.tmp -z wallpaper ${shell.escape cfg.url} && mv wallpaper.tmp wallpaper) || :
feh --no-fehbg --bg-scale wallpaper
'';