From 7b4bdca7e749a71e815866dc5ef9a8ed989a1444 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 2 Mar 2025 12:10:28 -0800 Subject: [PATCH] fix(home/swaybg): Re-enable; stylix does not set niri bg --- modules/home/services/swaybg/default.nix | 11 ++--------- modules/home/wayland/niri/default.nix | 1 + 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/modules/home/services/swaybg/default.nix b/modules/home/services/swaybg/default.nix index 9ff869b..e2df7e1 100644 --- a/modules/home/services/swaybg/default.nix +++ b/modules/home/services/swaybg/default.nix @@ -6,14 +6,7 @@ }: let cfg = config.marleyos.services.swaybg; in { - options.marleyos.services.swaybg = { - enable = lib.mkEnableOption "swaybg"; - - wallpaper = lib.mkOption { - type = lib.types.path; - description = "Path to the wallpaper to use."; - }; - }; + options.marleyos.services.swaybg.enable = lib.mkEnableOption "swaybg"; config = lib.mkIf cfg.enable { home.packages = with pkgs; [ @@ -34,7 +27,7 @@ in { Service = { Type = "exec"; - ExecStart = "${lib.getExe pkgs.swaybg} -i ${cfg.wallpaper}"; + ExecStart = "${lib.getExe pkgs.swaybg} -i ${config.stylix.image}"; ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -SIGUSR2 $MAINPID"; KillMode = "mixed"; Restart = "on-failure"; diff --git a/modules/home/wayland/niri/default.nix b/modules/home/wayland/niri/default.nix index 8f66eee..20ed7b4 100644 --- a/modules/home/wayland/niri/default.nix +++ b/modules/home/wayland/niri/default.nix @@ -25,6 +25,7 @@ in { fuzzel.enable = true; }; services = { + swaybg.enable = true; swaync.enable = true; }; };