nixos-configs/nixosModules/globalinstalls.nix

40 lines
699 B
Nix
Raw Normal View History

2025-09-13 15:25:54 +02:00
{
lib,
config,
pkgs,
...
}:
{
options.my.globalinstalls.enable = lib.mkEnableOption "global system packages and tools";
config = lib.mkIf config.my.globalinstalls.enable {
environment.systemPackages = with pkgs; [
ncdu
glances
lsof
dig
screen
tldr
nix-output-monitor
git-credential-oauth
];
2025-09-13 15:25:54 +02:00
programs = {
zsh.enable = true;
htop.enable = true;
iotop.enable = true;
git.enable = true;
nano = {
enable = true;
syntaxHighlight = true;
};
2025-09-13 15:25:54 +02:00
};
2026-04-10 11:44:58 +02:00
environment.etc."gitconfig".text = ''
[credential]
helper = oauth
credentialStore = cache
'';
};
2025-09-13 15:25:54 +02:00
}