new wallpaperthingie
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
flakeRoot,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
# Define source and destination paths
|
||||
@@ -6,7 +12,6 @@ let
|
||||
destination_path = "${config.home.homeDirectory}/Droidnix/wallpaperstuff";
|
||||
script_path = "${flakeRoot}/assets/hyprland/scripts/copy_wallpaperstuff.sh";
|
||||
wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf";
|
||||
|
||||
in
|
||||
{
|
||||
options = {
|
||||
@@ -14,31 +19,24 @@ in
|
||||
};
|
||||
|
||||
config = lib.mkIf config.wallpaper.enable {
|
||||
|
||||
/*
|
||||
# Run the script on activation
|
||||
home-manager.users.${config.home.username}.home.activation.copy-wallpapers = lib.mkMerge [
|
||||
{
|
||||
script = ''
|
||||
echo "=== Activation Script Running ==="
|
||||
echo "Script path: ${script_path}"
|
||||
if [ -f "${script_path}" ]; then
|
||||
echo "Script exists, executing..."
|
||||
"${script_path}"
|
||||
else
|
||||
echo "ERROR: Script does not exist at ${script_path}"
|
||||
exit 1
|
||||
fi
|
||||
'';
|
||||
}
|
||||
];
|
||||
*/
|
||||
# Install wpaperd
|
||||
home-manager.users.${config.home.username}.home.packages = [ pkgs.wpaperd ];
|
||||
home-manager.users.${config.home.username}.home.activation.copy-wallpapers.script = ''
|
||||
echo "=== Activation Script Running ==="
|
||||
echo "Script path: ${script_path}"
|
||||
if [ -f "${script_path}" ]; then
|
||||
echo "Script exists, executing..."
|
||||
"${script_path}"
|
||||
else
|
||||
echo "ERROR: Script does not exist at ${script_path}"
|
||||
exit 1
|
||||
fi
|
||||
'';
|
||||
|
||||
# Configure wpaperd
|
||||
home-manager.users.${config.home.homeDirectory}/.config/wpaperd/config.toml = {
|
||||
text = builtins.readFile "${wallpaper_conf}";
|
||||
};
|
||||
# Install wpaperd
|
||||
home-manager.users.${config.home.username}.home.packages = with pkgs; [ wpaperd ];
|
||||
|
||||
# Configure wpaperd using home.file
|
||||
home-manager.users.${config.home.username}.home.file.".config/wpaperd/config.toml".text =
|
||||
builtins.readFile "${wallpaper_conf}";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user