common.nix: make fish binaries high-priority

This commit is contained in:
Bloxx12 2025-05-08 23:52:05 +02:00
commit 0b3a851a57
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E

View file

@ -3,44 +3,51 @@
# since these also get installed to server, # since these also get installed to server,
# which should have a small attack surface. # which should have a small attack surface.
{ {
lib,
self, self,
pkgs, pkgs,
... ...
}: let }: let
inherit (lib.meta) hiPrioSet;
inherit (self.packages.${pkgs.stdenv.system}) wrapped-helix fish; inherit (self.packages.${pkgs.stdenv.system}) wrapped-helix fish;
in { in {
environment.systemPackages = builtins.attrValues { environment.systemPackages =
inherit builtins.attrValues {
(pkgs) inherit
cachix (pkgs)
calc cachix
difftastic calc
eza delta
gcc difftastic
git eza
httpie gcc
inetutils git
jujutsu httpie
just inetutils
lazygit jujutsu
linuxHeaders just
neofetch lazygit
microfetch linuxHeaders
mprocs neofetch
nmap microfetch
polkit mprocs
ripgrep nmap
smartmontools polkit
television ripgrep
trash-cli smartmontools
util-linux television
w3m trash-cli
wireguard-tools util-linux
zip uutils-coreutils-noprefix
zoxide w3m
; wireguard-tools
inherit wrapped-helix fish; zip
}; zoxide
;
}
++ builtins.attrValues (hiPrioSet {
inherit wrapped-helix fish;
});
# helix as the only editor, a reasonable choice. # helix as the only editor, a reasonable choice.
environment.sessionVariables.EDITOR = "hx"; environment.sessionVariables.EDITOR = "hx";
} }