configure default wallpaper

This commit is contained in:
2026-02-04 07:48:06 +01:00
parent 48027eb89b
commit 23120f379e
2 changed files with 8 additions and 3 deletions

View File

@@ -52,6 +52,12 @@
pkgs = final;
lib = inputs.nixpkgs.lib;
};
niri-wallpaper = prev.runCommand "niri-wallpaper.png" {
buildInputs = [ prev.imagemagick ];
} ''
# solid white
convert -size 1920x1080 xc:white $out
'';
};
packages = eachSupportedSystem (

View File

@@ -8,7 +8,6 @@
terminal ? lib.getExe pkgs.alacritty,
runnerCommand ? "${lib.getExe pkgs.rofi} -show run",
locker ? lib.getExe pkgs.swaylock,
wallpaperPath ? null,
geolocation ? [
52.5244
13.4105
@@ -67,12 +66,12 @@ let
spawn-at-startup = [
(lib.getExe pkgs.ashell-kmein)
]
++ lib.optional (wallpaperPath != null) [
++ lib.optional (pkgs ? niri-wallpaper) [
(lib.getExe pkgs.swaybg)
"--mode"
"fill"
"--image"
wallpaperPath
(toString pkgs.niri-wallpaper)
]
++ lib.optional (geolocation != null) (
let