Incorporate omarchy-nix.
This commit is contained in:
23
home/programs/desktop/hyprpaper.nix
Normal file
23
home/programs/desktop/hyprpaper.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
# ABOUTME: Hyprpaper wallpaper service configuration
|
||||
# ABOUTME: Sets up wallpaper based on theme selection
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
cfg = import ./config.nix;
|
||||
wallpaperPath = "~/Pictures/Wallpapers/${cfg.wallpaper}";
|
||||
in
|
||||
{
|
||||
# Copy wallpapers to Pictures directory
|
||||
home.file."Pictures/Wallpapers" = {
|
||||
source = ../../../common/desktop/assets/wallpapers;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
preload = [ wallpaperPath ];
|
||||
wallpaper = [ ",${wallpaperPath}" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user