Lot of change on structs

This commit is contained in:
2026-04-09 09:09:13 +02:00
parent e656247a48
commit 90bc1eb63d
42 changed files with 108 additions and 133 deletions
@@ -0,0 +1,19 @@
{
config,
...
}:
let
wallpaperPath = "${config.home.homeDirectory}/.config/wallpaper/current-wallpaper.jpg";
in
{
# Create wallpaper directory and download wallpaper
home.file.".config/wallpaper/current-wallpaper.jpg" = {
source = ./walls.jpg;
};
# Set wallpaper using activation script
home.activation.setWallpaper = config.lib.dag.entryAfter [ "writeBoundary" ] ''
# Set wallpaper for all desktops using osascript
$DRY_RUN_CMD /usr/bin/osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"${wallpaperPath}\""
'';
}