new wallpaperthingie
This commit is contained in:
+2
-11
@@ -782,7 +782,6 @@ Finally, it creates a systemd user service (wpaperd.service) that automatically
|
||||
#+BEGIN_SRC nix :tangle generated/hyprland/decorations/rotating_wallpaper.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
|
||||
|
||||
builtins.trace (lib.concatStringsSep "\n" [
|
||||
"=== Wallpaper Module Loaded ==="
|
||||
"Module path: ${toString __curFile}"
|
||||
@@ -813,13 +812,6 @@ let
|
||||
rsync -av --no-group --no-owner "$SOURCE_DIR/" "$DEST_DIR/"
|
||||
echo "Config files copied from $SOURCE_DIR to $DEST_DIR. Symlinks replaced with editable files."
|
||||
'';
|
||||
|
||||
# Write the script to a file in the home directory
|
||||
script_file_path = "${config.home.homeDirectory}/copy-wallpapers_debug.sh";
|
||||
_ = builtins.trace (lib.concatStringsSep "\n" [
|
||||
"=== Script saved to: ${script_file_path} ==="
|
||||
"You can inspect it with: cat '${script_file_path}'"
|
||||
]);
|
||||
in {
|
||||
options = {
|
||||
wallpaper.enable = lib.mkEnableOption "Wallpaper setup";
|
||||
@@ -827,8 +819,8 @@ in {
|
||||
|
||||
config = lib.mkIf config.wallpaper.enable {
|
||||
# Write the script to a file for inspection
|
||||
home-manager.users.${config.home.username}.home.file."${script_file_path}".text = copy_wallpapers_script;
|
||||
home-manager.users.${config.home.username}.home.file."${script_file_path}".executable = true;
|
||||
home-manager.users.${config.home.username}.home.file."~/copy-wallpapers_debug.sh".text = copy_wallpapers_script;
|
||||
home-manager.users.${config.home.username}.home.file."~/copy-wallpapers_debug.sh".executable = true;
|
||||
|
||||
# Use a script to copy all files from source to destination
|
||||
home-manager.users.${config.home.username}.home.file."${flakeRoot}/assets/hyprland/scripts/copy-wallpapers.sh".text = copy_wallpapers_script;
|
||||
@@ -846,7 +838,6 @@ in {
|
||||
home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text = builtins.readFile wallpaper_conf;
|
||||
};
|
||||
}
|
||||
|
||||
#+END_SRC
|
||||
|
||||
** =generated/hyprland/notifications/top.nix=
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
|
||||
|
||||
builtins.trace (lib.concatStringsSep "\n" [
|
||||
"=== Wallpaper Module Loaded ==="
|
||||
"Module path: ${toString __curFile}"
|
||||
@@ -31,13 +30,6 @@ let
|
||||
rsync -av --no-group --no-owner "$SOURCE_DIR/" "$DEST_DIR/"
|
||||
echo "Config files copied from $SOURCE_DIR to $DEST_DIR. Symlinks replaced with editable files."
|
||||
'';
|
||||
|
||||
# Write the script to a file in the home directory
|
||||
script_file_path = "${config.home.homeDirectory}/copy-wallpapers_debug.sh";
|
||||
_ = builtins.trace (lib.concatStringsSep "\n" [
|
||||
"=== Script saved to: ${script_file_path} ==="
|
||||
"You can inspect it with: cat '${script_file_path}'"
|
||||
]);
|
||||
in {
|
||||
options = {
|
||||
wallpaper.enable = lib.mkEnableOption "Wallpaper setup";
|
||||
@@ -45,8 +37,8 @@ in {
|
||||
|
||||
config = lib.mkIf config.wallpaper.enable {
|
||||
# Write the script to a file for inspection
|
||||
home-manager.users.${config.home.username}.home.file."${script_file_path}".text = copy_wallpapers_script;
|
||||
home-manager.users.${config.home.username}.home.file."${script_file_path}".executable = true;
|
||||
home-manager.users.${config.home.username}.home.file."~/copy-wallpapers_debug.sh".text = copy_wallpapers_script;
|
||||
home-manager.users.${config.home.username}.home.file."~/copy-wallpapers_debug.sh".executable = true;
|
||||
|
||||
# Use a script to copy all files from source to destination
|
||||
home-manager.users.${config.home.username}.home.file."${flakeRoot}/assets/hyprland/scripts/copy-wallpapers.sh".text = copy_wallpapers_script;
|
||||
|
||||
Reference in New Issue
Block a user