refactor: move max into dentritic pattern
This commit is contained in:
21
modules/common/features/hyprland/wallpaper.nix
Normal file
21
modules/common/features/hyprland/wallpaper.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ self, ... }: {
|
||||
flake.homeModules.commonFeatureWallpaper = { ... }:
|
||||
let
|
||||
wallpaper = builtins.toString "${self}/assets/wallpaper2.jpg";
|
||||
in {
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
spash = false;
|
||||
|
||||
preload = [ wallpaper ];
|
||||
|
||||
wallpaper = [
|
||||
"eDP-1,${wallpaper}"
|
||||
"HDMI-A-1,${wallpaper}"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user