new wallpaperthingie

This commit is contained in:
2026-03-17 18:26:17 +00:00
parent c221e08f12
commit 8917dfc9cb
@@ -15,6 +15,7 @@ in
options.wallpaper.enable = lib.mkEnableOption "Copy wallpaperstuff dir"; options.wallpaper.enable = lib.mkEnableOption "Copy wallpaperstuff dir";
config = lib.mkIf config.wallpaper.enable { config = lib.mkIf config.wallpaper.enable {
# Home Manager activation
home.activation.copyWallpapers = { home.activation.copyWallpapers = {
description = "Copy wallpaperstuff to ~/Droidnix/wallpaperstuff"; description = "Copy wallpaperstuff to ~/Droidnix/wallpaperstuff";
script = '' script = ''
@@ -24,5 +25,16 @@ in
echo "Done." echo "Done."
''; '';
}; };
# Optional NixOS system activation (runs on switch)
system.activationScripts.copyWallpapers = {
text = ''
echo "=== Copying wallpaperstuff (system) ==="
mkdir -p "${targetDir}"
cp -rT "${sourceDir}" "${targetDir}"
echo "Done."
'';
deps = [ ];
};
}; };
} }