113 lines
2.0 KiB
Nix
113 lines
2.0 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (config.grimmShared) enable tooling graphical;
|
|
inherit (lib)
|
|
mkEnableOption
|
|
getExe
|
|
optionals
|
|
mkIf
|
|
;
|
|
in
|
|
{
|
|
imports = [
|
|
./lilypond.nix
|
|
./nix.nix
|
|
./security.nix
|
|
./python.nix
|
|
./rust.nix
|
|
./nvim.nix
|
|
./lsp.nix
|
|
./git.nix
|
|
];
|
|
|
|
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
|
|
rfindup
|
|
pstree
|
|
file
|
|
wget
|
|
bat
|
|
hyfetch
|
|
util-linux
|
|
btop
|
|
linuxPackages.perf
|
|
eza
|
|
|
|
gcc
|
|
jdk17
|
|
pkg-config
|
|
unzip
|
|
p7zip
|
|
|
|
fbcat
|
|
gomuks
|
|
ranger
|
|
|
|
visualvm
|
|
imagemagick
|
|
nmap
|
|
|
|
parted
|
|
glib
|
|
glibc
|
|
expect
|
|
]
|
|
++ optionals graphical [
|
|
wev
|
|
qdirstat
|
|
libva-utils
|
|
gparted
|
|
jetbrains.clion
|
|
jetbrains.idea-community
|
|
];
|
|
|
|
environment.shellAliases = {
|
|
":q" = "exit";
|
|
"ls" = "eza";
|
|
"lix" = "nix";
|
|
"bat" = "bat --theme=Dracula";
|
|
};
|
|
|
|
programs.tmux = {
|
|
enable = true;
|
|
historyLimit = 42000;
|
|
#keyMode = "vi";
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
MANPAGER = "sh -c 'col -bx | ${getExe pkgs.bat} -l man -p'";
|
|
MANROFFOPT = "-c";
|
|
};
|
|
|
|
# virtualisation.docker.enable = true;
|
|
|
|
services.dbus.implementation = "broker";
|
|
|
|
boot.tmp.cleanOnBoot = true;
|
|
zramSwap.enable = true;
|
|
|
|
programs.ssh = {
|
|
startAgent = true;
|
|
enableAskPassword = graphical;
|
|
askPassword = mkIf graphical (getExe pkgs.lxqt.lxqt-openssh-askpass);
|
|
};
|
|
programs.thefuck.enable = true;
|
|
};
|
|
|
|
options.grimmShared.tooling = {
|
|
enable = mkEnableOption "grimm-tooling";
|
|
};
|
|
}
|