System/machines/fusion/configuration.nix

43 lines
848 B
Nix
Raw Normal View History

2022-11-23 20:36:59 -05:00
{ 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;
}