new wallpaperthingie

This commit is contained in:
2026-03-17 18:01:33 +00:00
parent b919e3f231
commit 32eafdb4d8
@@ -1,4 +1,10 @@
{ lib, config, pkgs, flakeRoot, ... }: {
lib,
config,
pkgs,
flakeRoot,
...
}:
let let
# Define source and destination paths # Define source and destination paths
@@ -6,7 +12,6 @@ let
destination_path = "${config.home.homeDirectory}/Droidnix/wallpaperstuff"; destination_path = "${config.home.homeDirectory}/Droidnix/wallpaperstuff";
script_path = "${flakeRoot}/assets/hyprland/scripts/copy_wallpaperstuff.sh"; script_path = "${flakeRoot}/assets/hyprland/scripts/copy_wallpaperstuff.sh";
wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf"; wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf";
in in
{ {
options = { options = {
@@ -14,12 +19,8 @@ in
}; };
config = lib.mkIf config.wallpaper.enable { config = lib.mkIf config.wallpaper.enable {
/*
# Run the script on activation # Run the script on activation
home-manager.users.${config.home.username}.home.activation.copy-wallpapers = lib.mkMerge [ home-manager.users.${config.home.username}.home.activation.copy-wallpapers.script = ''
{
script = ''
echo "=== Activation Script Running ===" echo "=== Activation Script Running ==="
echo "Script path: ${script_path}" echo "Script path: ${script_path}"
if [ -f "${script_path}" ]; then if [ -f "${script_path}" ]; then
@@ -30,15 +31,12 @@ in
exit 1 exit 1
fi fi
''; '';
}
];
*/
# Install wpaperd
home-manager.users.${config.home.username}.home.packages = [ pkgs.wpaperd ];
# Configure wpaperd # Install wpaperd
home-manager.users.${config.home.homeDirectory}/.config/wpaperd/config.toml = { home-manager.users.${config.home.username}.home.packages = with pkgs; [ wpaperd ];
text = builtins.readFile "${wallpaper_conf}";
}; # Configure wpaperd using home.file
home-manager.users.${config.home.username}.home.file.".config/wpaperd/config.toml".text =
builtins.readFile "${wallpaper_conf}";
}; };
} }