new wallpaperthingie
This commit is contained in:
@@ -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,31 +19,24 @@ 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 = ''
|
||||||
{
|
echo "=== Activation Script Running ==="
|
||||||
script = ''
|
echo "Script path: ${script_path}"
|
||||||
echo "=== Activation Script Running ==="
|
if [ -f "${script_path}" ]; then
|
||||||
echo "Script path: ${script_path}"
|
echo "Script exists, executing..."
|
||||||
if [ -f "${script_path}" ]; then
|
"${script_path}"
|
||||||
echo "Script exists, executing..."
|
else
|
||||||
"${script_path}"
|
echo "ERROR: Script does not exist at ${script_path}"
|
||||||
else
|
exit 1
|
||||||
echo "ERROR: Script does not exist at ${script_path}"
|
fi
|
||||||
exit 1
|
'';
|
||||||
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}";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user