2025-01-26 18:49:45 -06:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
2025-02-03 13:00:31 -06:00
|
|
|
...
|
2026-02-24 00:00:35 -08:00
|
|
|
}:
|
|
|
|
|
let
|
2025-01-26 18:49:45 -06:00
|
|
|
inherit (lib) mkIf;
|
2026-02-24 00:00:35 -08:00
|
|
|
in
|
|
|
|
|
{
|
2025-01-26 18:49:45 -06:00
|
|
|
config = {
|
|
|
|
|
users.mutableUsers = false;
|
|
|
|
|
|
2026-02-24 00:00:35 -08:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
neovim
|
|
|
|
|
git
|
|
|
|
|
];
|
2025-01-26 18:49:45 -06:00
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
|
firewall = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2026-02-24 00:00:35 -08:00
|
|
|
nameservers = [
|
|
|
|
|
"1.1.1.1"
|
|
|
|
|
"8.8.8.8"
|
|
|
|
|
];
|
2025-01-26 18:49:45 -06:00
|
|
|
# If using dhcpcd:
|
|
|
|
|
dhcpcd.extraConfig = mkIf config.networking.dhcpcd.enable "nohook resolv.conf";
|
|
|
|
|
# If using NetworkManager:
|
|
|
|
|
networkmanager.dns = mkIf config.networking.networkmanager.enable "none";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|