Initial Commit

This commit is contained in:
Lorenzo Good 2025-01-26 18:49:45 -06:00
commit d07ba813bf
Signed by: lorenzo
GPG key ID: 7FCD64BD81180ED0
14 changed files with 360 additions and 0 deletions

32
nixos/common/nixos.nix Normal file
View file

@ -0,0 +1,32 @@
{
config,
lib,
pkgs,
}: 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;
};
};
};
}