dotfiles/pkgs/scripts/default.nix
delta 61f5b3185b
Some checks are pending
laptop / tests (push) Waiting to run
intelnuc / tests (push) Waiting to run
upd :З
2024-08-06 05:38:44 +03:00

24 lines
520 B
Nix

{ config, pkgs, ... }:
let
# Helper function to create script binaries
mkScriptBin = name: pkgs.writeScriptBin name (builtins.readFile ./${name}.sh);
# List of script names
scriptNames = [
"fzfclipboard"
"fzfmenuft"
"swaylocksh"
"hyprshade"
"bluetoothcharge"
"brightness"
"volume" #TODO: remove absolute path from scripts using nix
"powermenu"
];
# Generate the script binaries
scriptBins = map mkScriptBin scriptNames;
in {
users.users.delta.packages = scriptBins;
}