fix: reorg dirs

This commit is contained in:
Barrett Ruth 2026-02-14 21:52:18 -05:00
parent e610f7d781
commit f9f756d80b
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
8 changed files with 55 additions and 15 deletions

View file

@ -13,17 +13,18 @@ let
[
"dev"
"Downloads"
"img"
"Pictures"
]
++ lib.optionals hostConfig.isLinux [
"img/screen"
"img/wp"
"Pictures/Screensavers"
"Pictures/Screenshots"
"Pictures/wp"
];
in
{
home.activation.createDirectories = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
for dir in ${lib.concatStringsSep " " directories}; do
$DRY_RUN_CMD mkdir -p "$HOME/$dir"
run mkdir -p "$HOME/$dir"
done
'';
@ -36,12 +37,12 @@ in
home.activation.linkWallpapers = lib.mkIf hostConfig.isLinux (
lib.hm.dag.entryAfter [ "createDirectories" ] ''
src="${repoDir}/config/screen"
dest="$HOME/img/screen"
dest="$HOME/Pictures/Screensavers"
if [ -d "$src" ]; then
for f in "$src"/*; do
[ -f "$f" ] || continue
name=$(basename "$f")
[ -L "$dest/$name" ] || $DRY_RUN_CMD ln -sf "$f" "$dest/$name"
[ -L "$dest/$name" ] || run ln -sf "$f" "$dest/$name"
done
fi
''

View file

@ -61,7 +61,7 @@ in
xdg.configFile."hypr/hyprpaper.conf".text = ''
wallpaper {
monitor =
path = ${config.home.homeDirectory}/img/screen/wallpaper.jpg
path = ${config.home.homeDirectory}/Pictures/Screensavers/wallpaper.jpg
}
splash = false
@ -75,7 +75,7 @@ in
background {
monitor =
path = ${config.home.homeDirectory}/img/screen/lock.jpg
path = ${config.home.homeDirectory}/Pictures/Screensavers/lock.jpg
}
animations {

View file

@ -62,6 +62,7 @@ in
cliphist
grim
slurp
wf-recorder
libnotify
brightnessctl
socat