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