new wallpaperthingie
This commit is contained in:
@@ -9,27 +9,17 @@
|
||||
|
||||
let
|
||||
sourceDir = "${flakeRoot}/assets/hyprland/wallpaperstuff";
|
||||
targetDir = "${config.home.homeDirectory}/Droidnix/wallpaperstuff";
|
||||
targetDir = "$HOME/Droidnix/wallpaperstuff";
|
||||
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 = ''
|
||||
echo "=== Copying wallpaperstuff ==="
|
||||
mkdir -p "${targetDir}"
|
||||
cp -rT "${sourceDir}" "${targetDir}"
|
||||
echo "Done."
|
||||
'';
|
||||
};
|
||||
|
||||
# Optional NixOS system activation (runs on switch)
|
||||
# System activation script (runs on nixos-rebuild switch)
|
||||
system.activationScripts.copyWallpapers = {
|
||||
text = ''
|
||||
echo "=== Copying wallpaperstuff (system) ==="
|
||||
echo "=== Copying wallpaperstuff ==="
|
||||
mkdir -p "${targetDir}"
|
||||
cp -rT "${sourceDir}" "${targetDir}"
|
||||
echo "Done."
|
||||
|
||||
Reference in New Issue
Block a user