create wallpaper dir if missing & fix home dir persistance
This commit is contained in:
parent
7681168109
commit
7d5e5cd6ca
|
@ -13,10 +13,11 @@
|
|||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = [ "oneshot" ];
|
||||
Type = [ "simple" ];
|
||||
ExecStart = "${pkgs.writeShellScript "swww-wallpaper-changer" ''
|
||||
export WAYLAND_DISPLAY="wayland-1"
|
||||
wallpaper_dir="$HOME/.local/share/bg/"
|
||||
[ -d "$wallpaper_dir" ] || mkdir -p "$wallpaper_dir"
|
||||
|
||||
# Allow some time for desktop to start
|
||||
sleep 3
|
||||
|
|
|
@ -50,13 +50,10 @@ in
|
|||
'';
|
||||
|
||||
environment.persistence."/persist" = {
|
||||
hideMounts = true;
|
||||
users.${username} = {
|
||||
directories = [
|
||||
"."
|
||||
"/home/${username}"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
|
Loading…
Reference in New Issue