NixOS/home/modules/hyprland/hyprpaper.nix

24 lines
481 B
Nix
Raw Normal View History

2024-06-12 09:54:11 +07:00
{ lib, unstable, config, ... }:
let
cfg = config.profile.hyprland;
in
{
config = lib.mkIf cfg.enable {
home.packages = [
unstable.hyprpaper
];
home.file.".config/hypr/hyprpaper.conf".text =
let
recent_wallpaper = "${config.home.homeDirectory}/.cache/wallpaper/current";
in
2024-08-14 14:01:26 +07:00
/*hyprlang*/
2024-06-12 09:54:11 +07:00
''
preload = ${recent_wallpaper}
wallpaper = ,${recent_wallpaper}
spash = false
ipc = on
'';
};
}