fix(distro): fix /etc/nixos ownership, theme discovery, and CLI wrappers
- installer: set recursive ownership of /etc/nixos to main user post-install - themes: fix NOMARCHY_PATH and discovery logic for Lua theme menu - scripts: update CLI wrappers (font, theme, wallpaper) to use Walker menus - core: remove obsolete NOMARCHY_PATH and cleanup dead code - features: add pkgs.lua for Walker and remove obsolete switcher.nix - docs: update ROADMAP.md, SCRIPTS.md and STRUCTURE.md
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
home.packages = [ pkgs.lua ];
|
||||
|
||||
programs.walker = {
|
||||
enable = lib.mkDefault true;
|
||||
runAsService = lib.mkDefault true;
|
||||
|
||||
@@ -21,7 +21,6 @@ in
|
||||
../themes/engine/files.nix
|
||||
../themes/engine/scripts.nix
|
||||
../themes/engine/stylix.nix
|
||||
../themes/engine/switcher.nix
|
||||
./apps/alacritty/default.nix
|
||||
./apps/btop/default.nix
|
||||
./apps/chromium/default.nix
|
||||
|
||||
@@ -15,6 +15,9 @@ case "$COMMAND" in
|
||||
nomarchy-font-list
|
||||
;;
|
||||
selector|*)
|
||||
nomarchy-font-selector
|
||||
theme=$(echo -e "$(nomarchy-font-list)" | nomarchy-launch-walker --dmenu --width 350 -p "Font...")
|
||||
if [[ -n "$theme" && "$theme" != "CNCLD" ]]; then
|
||||
nomarchy-font-set "$theme"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
set -e
|
||||
|
||||
COMMAND="$1"
|
||||
NOMARCHY_PATH=${NOMARCHY_PATH:-$HOME/.local/share/nomarchy}
|
||||
|
||||
if [[ -z $COMMAND ]]; then
|
||||
echo "Usage: nomarchy-snapshot <create|restore>" >&2
|
||||
|
||||
@@ -15,6 +15,6 @@ case "$COMMAND" in
|
||||
nomarchy-theme-list
|
||||
;;
|
||||
selector|*)
|
||||
nomarchy-theme-selector
|
||||
nomarchy-launch-walker -m menus:nomarchythemes --width 800 --minheight 400
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -10,14 +10,12 @@ case "$COMMAND" in
|
||||
set)
|
||||
shift
|
||||
# Wallpaper set usually involves writing to state.json and calling swww
|
||||
# We can reuse the logic from nomarchy-wallpaper-selector if we extract it,
|
||||
# but for now let's just trigger the selector.
|
||||
nomarchy-wallpaper-selector
|
||||
nomarchy-theme-bg-set "$@"
|
||||
;;
|
||||
next)
|
||||
nomarchy-theme-bg-next
|
||||
;;
|
||||
selector|*)
|
||||
nomarchy-wallpaper-selector
|
||||
nomarchy-launch-walker -m menus:nomarchyBackgroundSelector --width 800 --minheight 400
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -40,12 +40,6 @@ install_windows() {
|
||||
|
||||
mkdir -p "$HOME/.windows"
|
||||
mkdir -p "$HOME/.config/windows"
|
||||
mkdir -p "$HOME/.local/share/applications/icons"
|
||||
|
||||
# Install Windows VM icon and desktop file
|
||||
if [[ -f $NOMARCHY_PATH/applications/icons/windows.png ]]; then
|
||||
cp "$NOMARCHY_PATH/applications/icons/windows.png" "$HOME/.local/share/applications/icons/windows.png"
|
||||
fi
|
||||
|
||||
cat << EOF | tee "$HOME/.local/share/applications/windows-vm.desktop" > /dev/null
|
||||
[Desktop Entry]
|
||||
|
||||
Reference in New Issue
Block a user