1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07:44 +00:00

treewide: get rid of attrValues pattern because nixd doesn't support goto def on it

This commit is contained in:
RGBCube 2025-07-22 03:17:23 +03:00
parent 30d4b5e421
commit 372df8b48a
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
11 changed files with 160 additions and 196 deletions

View file

@ -1,76 +1,65 @@
{ config, lib, pkgs, ... }: let
inherit (lib) attrValues optionalAttrs;
inherit (lib) optionals;
in {
unfree.allowedNames = [ "claude-code" ];
environment.systemPackages = attrValues <| {
inherit (pkgs)
asciinema
cowsay
curlHTTP3
dig
doggo
eza
fastfetch
fd
hyperfine
jc
moreutils
openssl
p7zip
pstree
rsync
sd
timg
tokei
typos
uutils-coreutils-noprefix
xh
yazi
yt-dlp
;
environment.systemPackages = [
pkgs.asciinema
pkgs.cowsay
pkgs.curlHTTP3
pkgs.dig
pkgs.doggo
pkgs.eza
pkgs.fastfetch
pkgs.fd
pkgs.hyperfine
pkgs.jc
pkgs.moreutils
pkgs.openssl
pkgs.p7zip
pkgs.pstree
pkgs.rsync
pkgs.sd
pkgs.timg
pkgs.tokei
pkgs.typos
pkgs.uutils-coreutils-noprefix
pkgs.xh
pkgs.yazi
pkgs.yt-dlp
(pkgs.fortune.override { withOffensive = true; })
] ++ optionals config.isLinux [
pkgs.traceroute
pkgs.usbutils
pkgs.strace
] ++ optionals config.isDesktop [
pkgs.claude-code
fortune = pkgs.fortune.override { withOffensive = true; };
} // optionalAttrs config.isLinux {
inherit (pkgs)
traceroute
usbutils
strace
;
} // optionalAttrs config.isDesktop {
inherit (pkgs)
claude-code
pkgs.clang_16
pkgs.clang-tools_16
pkgs.deno
pkgs.gh
pkgs.go
pkgs.lld
pkgs.zig
clang_16
clang-tools_16
deno
gh
go
lld
zig
pkgs.qbittorrent
] ++ optionals (config.isLinux && config.isDesktop) [
pkgs.thunderbird
qbittorrent
;
} // optionalAttrs (config.isLinux && config.isDesktop) {
inherit (pkgs)
thunderbird
pkgs.whatsapp-for-linux
whatsapp-for-linux
pkgs.element-desktop
pkgs.zulip
pkgs.fractal
element-desktop
zulip
fractal
pkgs.obs-studio
obs-studio
pkgs.krita
krita
pkgs.libreoffice
libreoffice
;
inherit (pkgs.hunspellDicts)
en_US
en_GB-ize
;
};
pkgs.en_US
pkgs.en_GB-ize
];
}