43 lines
848 B
Nix
43 lines
848 B
Nix
|
{ config, lib, pkgs, inputs, ... }:
|
||
|
|
||
|
{
|
||
|
# Sops setup for this machine
|
||
|
sops.secrets = { };
|
||
|
# Setup system configuration
|
||
|
nathan = {
|
||
|
services = {
|
||
|
nginx = {
|
||
|
enable = true;
|
||
|
acme = true;
|
||
|
};
|
||
|
};
|
||
|
config = {
|
||
|
setupGrub = false;
|
||
|
nix = {
|
||
|
autoUpdate = true;
|
||
|
autoGC = true;
|
||
|
};
|
||
|
harden = false;
|
||
|
};
|
||
|
};
|
||
|
# Configure bootloader
|
||
|
boot.loader.systemd-boot.enable = true;
|
||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
boot.kernelParams = [ "net.ifnames=0" ];
|
||
|
# Configure networking
|
||
|
networking = {
|
||
|
domain = "mccarty.io";
|
||
|
useDHCP = true;
|
||
|
nameservers = [ "1.1.1.1" ];
|
||
|
# Open ports in firewall
|
||
|
firewall = {
|
||
|
allowedTCPPorts = [ ];
|
||
|
allowedUDPPorts = [ ];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# Setup home manager
|
||
|
home-manager.users.nathan = import ./home.nix;
|
||
|
|
||
|
}
|