Setting up rotating wallpapers
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
# Define source and destination paths
|
||||
source_path = "${flakeRoot}/assets/hyprland/wallpaperstuff";
|
||||
destination_path = "${config.home.username}/Droidnix/wallpaperstuff";
|
||||
wallpaper_conf = "${destination_path}/wallpaper.conf";
|
||||
# wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf";
|
||||
in {
|
||||
options = {
|
||||
wallpaper.enable = lib.mkEnableOption "Wallpaper setup";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.wallpaper.enable {
|
||||
# Ensure the destination directory exists
|
||||
home-manager.users.${config.home.username}.home.file."${destination_path}".createDir = true;
|
||||
|
||||
# Copy all files from source to destination
|
||||
home-manager.users.${config.home.username}.home.file."${destination_path}".source = lib.genAttrs (builtins.attrNames (builtins.readDir source_path)) (name: {
|
||||
source = "${source_path}/${name}";
|
||||
target = "${destination_path}/${name}";
|
||||
recursive = true;
|
||||
onChange = "copy";
|
||||
});
|
||||
|
||||
# Install wpaperd
|
||||
home-manager.users.${config.home.username}.home.packages = [ pkgs.wpaperd ];
|
||||
|
||||
# Configure wpaperd
|
||||
home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text = wallpaper_conf
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||||
{
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
./rotating_wallpaper
|
||||
];
|
||||
# .. put any code here
|
||||
}
|
||||
|
||||
@@ -33,13 +33,9 @@ in
|
||||
settings.general."col.active_border" = lib.mkForce "0xff97cbcd 0xff89b4fa";
|
||||
};
|
||||
|
||||
#wayland.windowManager.hyprland.settings.general."col.active_border" = lib.mkForce "0xffffffff";
|
||||
|
||||
# Merge all xdg.configFile definitions
|
||||
xdg.configFile = otherConfigs // {
|
||||
"hypr/hyprland.conf".text = ''
|
||||
${builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf"}
|
||||
# Your manual settings will go below this line and will not be overwritten:
|
||||
'';
|
||||
"hypr/.keep".text = "";
|
||||
};
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
./zsh.nix
|
||||
./emacs.nix
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
./virtualization/top.nix
|
||||
./web_development/top.nix
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
# No subfolders to import
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -15,5 +15,5 @@
|
||||
./security/top.nix
|
||||
./system_updates/top.nix
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
imports = [
|
||||
./wofi.nix
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
./development/top.nix
|
||||
./system_management/top.nix
|
||||
];
|
||||
# .. put any code here
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user