servers/common/nixos.nix

34 lines
646 B
Nix
Raw Normal View History

2025-01-26 18:49:45 -06:00
{
config,
lib,
pkgs,
2025-02-03 13:00:31 -06:00
...
2025-01-26 18:49:45 -06:00
}: let
inherit (lib) mkIf;
in {
config = {
users.mutableUsers = false;
environment.systemPackages = with pkgs; [neovim git];
networking = {
firewall = {
enable = true;
};
nameservers = ["1.1.1.1" "8.8.8.8"];
# 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;
};
};
};
}