new wallpaperthingie

This commit is contained in:
2026-03-17 15:52:04 +00:00
parent 5a540d7a4a
commit 1fe1169fd7
2 changed files with 8 additions and 12 deletions
@@ -1,11 +1,9 @@
{ lib, config, pkgs, flakeRoot,... }:
{ lib, config, pkgs, flakeRoot, ... }:
let
# Define source and destination paths
source_path = "${flakeRoot}/assets/hyprland/wallpaperstuff";
destination_path = "${config.home.username}/Droidnix/wallpaperstuff";
wallpaper_conf = "${destination_path}/wallpaper.conf";
# wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf";
destination_path = "${config.home.homeDirectory}/Droidnix/wallpaperstuff";
wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf";
in {
options = {
wallpaper.enable = lib.mkEnableOption "Wallpaper setup";
@@ -27,6 +25,6 @@ in {
home-manager.users.${config.home.username}.home.packages = [ pkgs.wpaperd ];
# Configure wpaperd
home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text = wallpaper_conf;
home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text = builtins.readFile wallpaper_conf;
};
}