fix(niri): wallpaper
build / build (push) Successful in 1m51s

This commit is contained in:
2026-07-09 01:15:30 -06:00
parent 857361eef9
commit eff27bef6c
3 changed files with 551 additions and 242 deletions
+15 -4
View File
@@ -64,6 +64,20 @@ in {
# File-picker.
home.packages = [ pkgs.nautilus ];
systemd.user.services.wbg = lib.mkIf (! builtins.isNull cfg.wallpaper) {
Unit = {
Description = "Desktop wallpaper";
After = [ "niri.service" ];
PartOf = [ "niri.service" ];
};
Install.WantedBy = [
"niri.service"
];
Service.ExecStart = ''
${lib.getExe pkgs.wbg} "${cfg.wallpaper}"
'';
};
programs.niri = {
settings = {
# Activates some Nixpkgs patches to help run Electron applications under
@@ -82,10 +96,7 @@ in {
{ command = [ "${pkgs.swaynotificationcenter}/bin/swaync" ]; }
++ lib.optional cfg.gammastep.enable
{ command = [ "${pkgs.gammastep}/bin/gammastep" "-o" "-O" "4000k"
"-b" "0.9:0.9" "-l" "0:0"]; }
++ lib.optional
(! builtins.isNull cfg.wallpaper)
{ command = [ "${pkgs.wbg}/bin/wbg" "${cfg.wallpaper}" ]; };
"-b" "0.9:0.9" "-l" "0:0"]; };
input = {
keyboard.xkb = {