- 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
53 lines
977 B
Nix
53 lines
977 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
nomarchyLib = import ../../lib { inherit lib; };
|
|
|
|
# Dependencies for theme engine scripts
|
|
themeDeps = with pkgs; [
|
|
coreutils
|
|
gnused
|
|
gnugrep
|
|
findutils
|
|
gawk
|
|
jq
|
|
swww
|
|
libnotify
|
|
gum
|
|
brightnessctl
|
|
playerctl
|
|
pamixer
|
|
bc
|
|
];
|
|
|
|
nomarchy-theme-engine-scripts = pkgs.stdenv.mkDerivation {
|
|
pname = "nomarchy-theme-engine-scripts";
|
|
version = "1.0.0";
|
|
src = ./scripts;
|
|
|
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp * $out/bin/
|
|
|
|
chmod +x $out/bin/*
|
|
patchShebangs $out/bin
|
|
'';
|
|
|
|
postFixup = ''
|
|
deps="${lib.makeBinPath themeDeps}"
|
|
for file in $out/bin/*; do
|
|
if [ -f "$file" ]; then
|
|
wrapProgram "$file" \
|
|
--prefix PATH : "$deps" \
|
|
--set NOMARCHY_PATH "/etc/nixos"
|
|
fi
|
|
done
|
|
'';
|
|
};
|
|
in
|
|
{
|
|
home.packages = [ nomarchy-theme-engine-scripts ];
|
|
}
|