fix: package theme engine and system scripts and fix env-update scriptability
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
./options.nix
|
||||
./state.nix
|
||||
./nix.nix
|
||||
./scripts.nix
|
||||
./systemd.nix
|
||||
./virtualization.nix
|
||||
./fonts.nix
|
||||
|
||||
64
core/system/scripts.nix
Normal file
64
core/system/scripts.nix
Normal file
@@ -0,0 +1,64 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
# System script dependencies
|
||||
systemScriptDeps = with pkgs; [
|
||||
coreutils
|
||||
gnused
|
||||
gnugrep
|
||||
findutils
|
||||
gawk
|
||||
jq
|
||||
nixos-rebuild
|
||||
home-manager
|
||||
git
|
||||
sudo
|
||||
brightnessctl
|
||||
playerctl
|
||||
pamixer
|
||||
pciutils
|
||||
usbutils
|
||||
networkmanager
|
||||
lshw
|
||||
parted
|
||||
btrfs-progs
|
||||
cryptsetup
|
||||
gum
|
||||
curl
|
||||
wget
|
||||
libnotify
|
||||
bc
|
||||
supergfxctl
|
||||
systemd
|
||||
];
|
||||
|
||||
nomarchy-system-scripts = pkgs.stdenv.mkDerivation {
|
||||
pname = "nomarchy-system-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 systemScriptDeps}"
|
||||
for file in $out/bin/*; do
|
||||
if [ -f "$file" ]; then
|
||||
wrapProgram "$file" \
|
||||
--prefix PATH : "$deps" \
|
||||
--set NOMARCHY_PATH "/etc/nixos/nomarchy"
|
||||
fi
|
||||
done
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ nomarchy-system-scripts ];
|
||||
}
|
||||
Reference in New Issue
Block a user