From b9dbe5e4531169781aefc0dea809ad510dcecea7 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Wed, 15 Jul 2026 21:49:39 +1000 Subject: fix: declarative wallpaper --- nix/flake.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'nix/flake.nix') diff --git a/nix/flake.nix b/nix/flake.nix index 18fde7a..3edc4c5 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -7,6 +7,7 @@ nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; nix-homebrew.url = "github:zhaofengli/nix-homebrew"; + nix-wallpaper.url = "github:lunik1/nix-wallpaper"; }; outputs = @@ -15,8 +16,16 @@ nix-darwin, nixpkgs, nix-homebrew, + nix-wallpaper, }: let + system = "aarch64-darwin"; + + wallpaper = nix-wallpaper.packages.${system}.default.override { + preset = "catppuccin-frappe"; + logoSize = 25; + }; + configuration = { pkgs, @@ -48,6 +57,9 @@ pkgs.ripgrep pkgs.ffmpeg + # pkgs.discord + # pkgs.signal-desktop + pkgs.nixd pkgs.nixfmt @@ -110,7 +122,7 @@ --target="/Users/melodidey" \ --restow "." - osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"/Users/melodidey/dotfiles/wallpapers/Curve3.png\" as POSIX file" + osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"${wallpaper}/share/wallpapers/nixos-wallpaper.png\" as POSIX file" ''; system.defaults = { @@ -148,7 +160,7 @@ system.stateVersion = 6; # The platform the configuration will be used on. - nixpkgs.hostPlatform = "aarch64-darwin"; + nixpkgs.hostPlatform = system; }; in { -- cgit v1.3.1