new wallpaperthingie
This commit is contained in:
@@ -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."
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user