new wallpaperthingie
This commit is contained in:
@@ -15,6 +15,7 @@ in
|
||||
options.wallpaper.enable = lib.mkEnableOption "Copy wallpaperstuff dir";
|
||||
|
||||
config = lib.mkIf config.wallpaper.enable {
|
||||
# Home Manager activation
|
||||
home.activation.copyWallpapers = {
|
||||
description = "Copy wallpaperstuff to ~/Droidnix/wallpaperstuff";
|
||||
script = ''
|
||||
@@ -24,5 +25,16 @@ in
|
||||
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 = [ ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user