diff --git a/hosts/luci/home-config.nix b/hosts/luci/home-config.nix index b8f7836..d09db33 100644 --- a/hosts/luci/home-config.nix +++ b/hosts/luci/home-config.nix @@ -25,6 +25,8 @@ desktop.sway = { enable = true; kanshi = true; + wallpapers.lockscreen = "${./files/lockscreen.png}"; + wallpapers.desktop = "${./files/wallpaper.png} center #000000"; waybar = { laptop = true; gpuThermal = { diff --git a/hosts/luci/includes/home-manager.nix b/hosts/luci/includes/home-manager.nix index 068a9a8..5ebec63 100644 --- a/hosts/luci/includes/home-manager.nix +++ b/hosts/luci/includes/home-manager.nix @@ -15,11 +15,5 @@ _: "pointer_accel" = "0.3"; }; }; - - output = { - "*" = { - bg = "${../files/wallpaper.png} center #000000"; - }; - }; }; } diff --git a/modules/home-manager/desktop/sway/default.nix b/modules/home-manager/desktop/sway/default.nix index 4ea96f4..4e1d418 100644 --- a/modules/home-manager/desktop/sway/default.nix +++ b/modules/home-manager/desktop/sway/default.nix @@ -13,6 +13,19 @@ in description = "configure laptop mode"; }; + wallpapers = { + lockscreen = mkOption { + type = types.path; + default = ""; + description = "path for lockscreen wallpaper"; + }; + desktop = mkOption { + type = types.path; + default = ""; + description = "path for desktop wallpaper"; + }; + }; + waybar = { laptop = mkOption { type = types.bool; @@ -130,7 +143,7 @@ in qt = { enable = true; - platformTheme = "gnome"; + platformTheme.name = "adwaita"; style.name = "adwaita-dark"; }; xdg = { diff --git a/modules/home-manager/desktop/sway/includes/sway.nix b/modules/home-manager/desktop/sway/includes/sway.nix index 4fad68c..c398807 100644 --- a/modules/home-manager/desktop/sway/includes/sway.nix +++ b/modules/home-manager/desktop/sway/includes/sway.nix @@ -1,5 +1,8 @@ { config, pkgs, lib, ... }: with lib; +let + cfg = config.modules.desktop.sway; +in { config = mkIf config.modules.desktop.sway.enable { wayland.windowManager.sway = { @@ -20,6 +23,11 @@ with lib; xkb_variant = "altgr-intl"; }; }; + output = { + "*" = { + bg = "${cfg.wallpapers.desktop}"; + }; + }; seat = { "*".hide_cursor = "when-typing enable"; }; diff --git a/modules/home-manager/desktop/sway/includes/swaylock.nix b/modules/home-manager/desktop/sway/includes/swaylock.nix index a8890a4..527f777 100644 --- a/modules/home-manager/desktop/sway/includes/swaylock.nix +++ b/modules/home-manager/desktop/sway/includes/swaylock.nix @@ -1,11 +1,14 @@ { config, lib, ... }: with lib; +let + cfg = config.modules.desktop.sway; +in { config = mkIf config.modules.desktop.sway.enable { programs.swaylock = { enable = true; settings = { - image = "~/medias/images/wallpapers/lockscreen.png"; + image = "${cfg.wallpapers.lockscreen}"; scaling = "center"; color = "000000"; indicator-radius = 70;