From 77a58c5df78e16acf47ddeaced15e7488ae104f6 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Tue, 3 Nov 2026 03:17:48 +0300 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! Install lucid --- user/sweetbread/modules/lucid.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/user/sweetbread/modules/lucid.nix b/user/sweetbread/modules/lucid.nix index a700d85..4c34a94 100644 --- a/user/sweetbread/modules/lucid.nix +++ b/user/sweetbread/modules/lucid.nix @@ -19,7 +19,7 @@ let sparseCheckout = [ "/wallpapers/catppuccin-mocha/*" ]; nonConeMode = true; }; - wallpaperDir = "${config.home.homeDirectory}/Pictures/wallpapers/stylix"; + wallpaperDir = "${config.home.homeDirectory}/Wallpapers"; wallpaperScript = "${config.home.homeDirectory}/.config/hypr/scripts/wallpaper/set-wallpaper.sh"; defaultWallpaper = "${wallpaperDir}/bluehour.jpg"; hyprLua = import ../../../modules/user/hyprland/lua.nix { inherit lib; }; @@ -137,6 +137,15 @@ in { --exclude='/lucidkeys/state.json' \ --exclude='/lucidwidgets/widgets.json' \ "${source}/" "$target/" + dock_qml="$target/luciddocks/Dock.qml" + if grep -Fq '/var/lib/snapd/desktop/applications; do' "$dock_qml"; then + $DRY_RUN_CMD sed -i \ + 's#/var/lib/snapd/desktop/applications; do#/var/lib/snapd/desktop/applications $HOME/.nix-profile/share/applications $HOME/.local/state/nix/profile/share/applications /etc/profiles/per-user/$USER/share/applications /nix/profile/share/applications /nix/var/nix/profiles/default/share/applications /run/current-system/sw/share/applications; do#' \ + "$dock_qml" + elif ! grep -Fq '/etc/profiles/per-user/$USER/share/applications; do' "$dock_qml"; then + echo "Lucid launcher application scan pattern changed; refusing to skip Nix profiles" >&2 + exit 1 + fi $DRY_RUN_CMD install -m644 ${../../../modules/user/lucid-shell.qml} "$target/shell.qml" $DRY_RUN_CMD install -m644 ${../../../modules/user/LucidBar.qml} "$target/LucidBar.qml" $DRY_RUN_CMD mkdir -p "${wallpaperDir}" \