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
|
||||
@@ -8,17 +14,20 @@ let
|
||||
wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf";
|
||||
|
||||
# Debug: Print paths to verify they're correct
|
||||
_ = builtins.trace (lib.concatStringsSep "\n" [
|
||||
"=== Wallpaper Module Debug ==="
|
||||
"Source path: ${source_path}"
|
||||
"Destination path: ${destination_path}"
|
||||
"Script path: ${script_path}"
|
||||
"Wallpaper config: ${wallpaper_conf}"
|
||||
"=== End of Debug ==="
|
||||
]);
|
||||
in {
|
||||
_ = builtins.trace (
|
||||
lib.concatStringsSep "\n" [
|
||||
"=== Wallpaper Module Debug ==="
|
||||
"Source path: ${source_path}"
|
||||
"Destination path: ${destination_path}"
|
||||
"Script path: ${script_path}"
|
||||
"Wallpaper config: ${wallpaper_conf}"
|
||||
"=== End of Debug ==="
|
||||
]
|
||||
);
|
||||
in
|
||||
{
|
||||
options = {
|
||||
wallpaper.enable = lib.mkEnableOption "Wallpaper setup" default = true;
|
||||
wallpaper.enable = lib.mkEnableOption "Wallpaper setup";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.wallpaper.enable {
|
||||
@@ -30,7 +39,7 @@ in {
|
||||
home-manager.users.${config.home.username}.home.file."${script_path}".executable = true;
|
||||
|
||||
# Debug: Print script path
|
||||
_ = builtins.trace "Script path: ${script_path}";
|
||||
traceprint1_ = builtins.trace "Script path: ${script_path}";
|
||||
|
||||
# Run the script on activation
|
||||
home-manager.users.${config.home.username}.home.activation.copy-wallpapers = lib.mkMerge [
|
||||
@@ -56,9 +65,10 @@ in {
|
||||
_ = builtins.trace "Installing wpaperd...";
|
||||
|
||||
# Configure wpaperd
|
||||
home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text = builtins.readFile wallpaper_conf;
|
||||
home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text =
|
||||
builtins.readFile wallpaper_conf;
|
||||
|
||||
# Debug: Print config file path
|
||||
_ = builtins.trace "Config file path: ${config.home.homeDirectory}/.config/wpaperd/config.toml";
|
||||
traceprint2 = builtins.trace "Config file path: ${config.home.homeDirectory}/.config/wpaperd/config.toml";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user