dotfiles/modules/base/default.nix

105 lines
2.1 KiB
Nix
Raw Normal View History

2024-07-19 12:00:55 +00:00
{
lib,
config,
pkgs,
...
}:
2024-07-18 21:56:00 +00:00
with lib;
let
cfg = config.modules.base;
2024-07-19 12:00:55 +00:00
in
{
2024-07-18 21:56:00 +00:00
options.modules.base = {
enable = mkEnableOption "base";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
# Add base linux utilities
git
wget
curl
dig
2024-07-19 01:34:42 +00:00
procps
2024-12-01 23:49:06 +00:00
wireguard-tools
usbutils
pciutils
zip
unzip
# TODO: MOVE
2025-01-23 23:28:22 +00:00
quickemu # TODO: Reenable once building this is fixed
2024-12-01 23:49:06 +00:00
pdftk
2025-01-23 23:28:22 +00:00
# TODO: Move to USB module
# usbutils
# udiskie
# udisks
2024-07-18 21:56:00 +00:00
];
2025-01-23 23:28:22 +00:00
security.krb5 = {
enable = true;
settings = {
libdefaults = {
rdns = false;
};
realms = {
"GEWISWG.GEWIS.NL" = {
kdc = [
"https://gewisvdesktop.gewis.nl/KdcProxy"
];
};
};
};
};
2024-12-01 23:49:06 +00:00
2024-07-18 21:56:00 +00:00
modules = {
# Enable base modules
clean-tmp.enable = true;
fontconfig.enable = true;
neovim.enable = true;
systemd-boot.enable = true;
tuigreet.enable = true;
2025-01-28 08:20:50 +00:00
networkmanager.enable = true;
2024-07-18 21:56:00 +00:00
};
# TODO: Remove everything below, it is here out of convenience and should be elsewhere
2024-12-01 23:49:06 +00:00
# networking.nameservers = [
# "9.9.9.9"
# "149.112.112.112"
# ];
2025-01-23 23:28:22 +00:00
# programs.captive-browser.enable = true;
services.resolved = {
enable = true;
};
2024-12-01 23:49:06 +00:00
networking.firewall.enable = true;
2024-07-18 21:56:00 +00:00
programs.dconf.enable = true;
services.libinput.enable = true;
modules.unfree.enable = true;
modules.unfree.allowedPackages = [
"nvidia-x11"
"nvidia-settings"
];
2025-01-23 23:28:22 +00:00
nix.settings.experimental-features = "nix-command flakes";
2025-01-23 23:50:13 +00:00
networking.useDHCP = true;
nixpkgs.hostPlatform = "x86_64-linux";
2025-01-25 19:34:23 +00:00
networking.firewall.allowedTCPPortRanges = [
{
from = 10000;
to = 11000;
}
];
networking.firewall.allowedUDPPortRanges = [
{
from = 10000;
to = 11000;
}
];
2025-01-23 23:28:22 +00:00
# TODO: Move to USB module
# services.gvfs.enable = true;
services.udisks2.enable = true;
2024-07-18 21:56:00 +00:00
};
2024-07-19 12:00:55 +00:00
}