grimm-nixos-laptop/common/tooling/default.nix

96 lines
1.6 KiB
Nix
Raw Normal View History

2024-05-07 23:31:41 +02:00
{
pkgs,
config,
lib,
...
}:
2024-04-10 16:51:28 +02:00
let
2024-05-11 22:55:59 +02:00
inherit (config.grimmShared) enable tooling graphical;
inherit (lib)
mkEnableOption
getExe
optionals
mkIf
;
2024-04-10 16:51:28 +02:00
in
{
2024-04-26 21:36:24 +02:00
imports = [
2024-05-30 22:12:15 +02:00
# ./lilypond.nix
2024-04-27 10:51:53 +02:00
./nix.nix
./security.nix
./python.nix
./rust.nix
./lsp.nix
2024-05-17 12:18:20 +02:00
./git.nix
2024-12-21 21:53:10 +01:00
# ./wine.nix
2024-05-18 16:41:17 +02:00
./c.nix
./java.nix
2024-10-05 13:15:32 +02:00
./opensnitch
2024-05-31 17:33:40 +02:00
./ranger.nix
2024-10-12 18:19:18 +02:00
./apparmor
2024-04-26 21:36:24 +02:00
];
2024-05-11 22:55:59 +02:00
config = mkIf (enable && tooling.enable) {
environment.systemPackages =
with pkgs;
[
(writeShellScriptBin "systemd-owner" "systemctl show -pUser,UID $@")
(writeShellScriptBin "tree" "${getExe eza} -T --git -lh --no-permissions --no-user --no-filesize --no-time")
(writeShellScriptBin "spawn" ''exec "$@" &> /dev/null &'')
urlencode
2024-05-16 11:59:05 +02:00
rfindup
2024-05-11 22:55:59 +02:00
pstree
file
wget
2024-05-17 12:18:20 +02:00
bat
2024-05-11 22:55:59 +02:00
hyfetch
btop
eza
2024-05-29 09:54:13 +02:00
starship
2024-05-11 22:55:59 +02:00
unzip
p7zip
fbcat
2024-11-26 19:20:10 +01:00
# gomuks
2024-05-11 22:55:59 +02:00
imagemagick
nmap
parted
expect
2024-09-08 14:57:15 +02:00
gptfdisk
2024-11-23 17:06:12 +01:00
qrencode
man-pages
man-pages-posix
2024-05-11 22:55:59 +02:00
]
++ optionals graphical [
wev
qdirstat
libva-utils
gparted
2024-08-15 14:59:23 +02:00
bottles
2024-05-11 22:55:59 +02:00
];
2024-05-17 12:18:20 +02:00
environment.sessionVariables = {
MANPAGER = "sh -c 'col -bx | ${getExe pkgs.bat} -l man -p'";
MANROFFOPT = "-c";
};
documentation.dev.enable = true;
2024-05-11 22:55:59 +02:00
# virtualisation.docker.enable = true;
2024-05-07 23:31:41 +02:00
2024-05-11 22:55:59 +02:00
services.dbus.implementation = "broker";
2024-05-07 23:31:41 +02:00
2024-05-11 22:55:59 +02:00
boot.tmp.cleanOnBoot = true;
2024-09-28 22:09:24 +02:00
zramSwap.enable = false;
2024-05-11 22:55:59 +02:00
};
2024-05-11 22:55:59 +02:00
options.grimmShared.tooling = {
enable = mkEnableOption "grimm-tooling";
};
2024-03-24 16:59:47 +01:00
}