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; }; };