new wallpaperthingie

This commit is contained in:
2026-03-17 18:24:34 +00:00
parent 1c212e2af2
commit c221e08f12
@@ -1,8 +1,9 @@
# file: wallpaper-copy.nix
{
lib,
config,
flakeRoot,
pkgs,
flakeRoot,
...
}:
@@ -11,18 +12,16 @@ let
targetDir = "${config.home.homeDirectory}/Droidnix/wallpaperstuff";
in
{
options = {
wallpaper.enable = lib.mkEnableOption "Copy wallpaper stuff";
};
options.wallpaper.enable = lib.mkEnableOption "Copy wallpaperstuff dir";
config = lib.mkIf config.wallpaper.enable {
home-manager.users.${config.home.username}.home.activation.copyWallpapers = {
home.activation.copyWallpapers = {
description = "Copy wallpaperstuff to ~/Droidnix/wallpaperstuff";
script = ''
echo "Copying wallpapers..."
echo "=== Copying wallpaperstuff ==="
mkdir -p "${targetDir}"
rsync -av --no-group --no-owner "$sourceDir/" "${targetDir}"
cp -rT "${sourceDir}" "${targetDir}"
echo "Done."
'';
};
};