diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-07-15 21:49:39 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-07-15 21:49:39 +1000 |
| commit | b9dbe5e4531169781aefc0dea809ad510dcecea7 (patch) | |
| tree | 55cc4bdc5cbe66d52244c160bd4a3312245eea68 /nix/flake.nix | |
| parent | f3eb0a157d37f5f455fd6d540dd9f303512aec5f (diff) | |
fix: declarative wallpaper
Diffstat (limited to 'nix/flake.nix')
| -rw-r--r-- | nix/flake.nix | 16 |
1 files changed, 14 insertions, 2 deletions
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 { |
