diff --git a/hosts/ePower/default.nix b/hosts/ePower/default.nix index f4b84aa..3861286 100644 --- a/hosts/ePower/default.nix +++ b/hosts/ePower/default.nix @@ -55,6 +55,13 @@ "9, monitor:HDMI-A-1" "10, monitor:HDMI-A-1, default:true" ]; + paperConfig = '' + ipc = off + preload = /home/ejiek/pictures/bg.jpg + preload = /home/ejiek/pictures/bg-right.jpg + wallpaper = DP-2,contain:/home/ejiek/pictures/bg.jpg + wallpaper = HDMI-A-1,contain:/home/ejiek/pictures/bg-right.jpg + ''; }; joshuto.enable = true; nvim.enable = true; diff --git a/modules/hyprland/default.nix b/modules/hyprland/default.nix index 7c84a8c..810f937 100644 --- a/modules/hyprland/default.nix +++ b/modules/hyprland/default.nix @@ -34,6 +34,15 @@ in { type = types.str; default = ""; }; + hypr.paperConfig = mkOption { + description = "Wallpapers setup"; + type = types.str; + default = '' + ipc = off + preload = /home/ejiek/pictures/bg.jpg + wallpaper = ,contain:/home/ejiek/pictures/bg.jpg + ''; + }; }; # if my-config.template.desktop.gnome.enable is set to true @@ -318,11 +327,7 @@ in { }; home.file = { - "./.config/hypr/hyprpaper.conf".text = '' - ipc = off - preload = /home/ejiek/pictures/bg.jpg - wallpaper = ,contain:/home/ejiek/pictures/bg.jpg - ''; + "./.config/hypr/hyprpaper.conf".text = config.my-config.hypr.paperConfig; }; };