This commit is contained in:
2025-08-16 12:29:48 +00:00
parent 0f5419c1dd
commit 8d4ea15585
5 changed files with 37 additions and 17 deletions

View File

@@ -6,7 +6,9 @@
user,
sops-nix,
...
}: {
}: let
setWallpaperScript = import ./libs/wallpaper.nix {inherit pkgs;};
in {
imports = [
../core.nix
../tailscale.nix
@@ -58,6 +60,13 @@
pkgs.callPackage ../packages.nix {}
++ pkgs.callPackage ./packages.nix {};
stateVersion = constants.stateVersions.homeManager;
activation = {
"setWallpaper" = lib.hm.dag.entryAfter ["revealHomeLibraryDirectory"] ''
echo "[+] Setting wallpaper"
${setWallpaperScript}/bin/set-wallpaper-script
'';
};
};
};
};

View File

@@ -0,0 +1,10 @@
{pkgs}: let
wallpaper = pkgs.fetchurl {
url = "https://misc-assets.raycast.com/wallpapers/loupe-mono-dark.heic";
sha256 = "sha256-MwvRU7U4tO6F1duxBrHLOd7F5Gnzv/zyiZkm5EFqkY4=";
};
in
pkgs.writeShellScriptBin "set-wallpaper-script" ''
set -e
/usr/bin/osascript -e "tell application \"Finder\" to set desktop picture to POSIX file \"${wallpaper}\""
''

View File

@@ -27,4 +27,6 @@
TrackpadThreeFingerDrag = true;
};
};
}

View File

@@ -7,7 +7,6 @@
nix = ["alejandra"];
javascript = ["prettier"];
typescript = ["prettier"];
elixir = ["mix"];
};
};
};