This commit is contained in:
2026-05-05 09:35:38 -05:00
parent bb33a9470a
commit 22bdee4af6
+54 -55
View File
@@ -1,21 +1,28 @@
{ config, lib, inputs, modulesPath, stable_pkgs, unstable_pkgs, ... }:
{ {
imports = config,
[ # Include the results of the hardware scan. lib,
(modulesPath + "/installer/scan/not-detected.nix") inputs,
#./hardware-configuration.nix modulesPath,
./disko.nix stable_pkgs,
../../nixos unstable_pkgs,
../../../users/blake ...
../../../modules/system }: {
../../../modules/fileshares/holocron_new imports = [
../../../modules/homelab # Include the results of the hardware scan.
#../../../modules/gameservers/minecraft_recpro (modulesPath + "/installer/scan/not-detected.nix")
#../../../modules/gameservers/minecraft_modded #./hardware-configuration.nix
]; ./disko.nix
../../nixos
../../../users/blake
../../../modules/system
../../../modules/fileshares/holocron_new
../../../modules/homelab
#../../../modules/gameservers/minecraft_recpro
#../../../modules/gameservers/minecraft_modded
];
home-manager.users.blake.imports = [ home-manager.users.blake.imports = [
../../../users/blake/hosts/lumiose.nix ../../../users/blake/hosts/lumiose.nix
]; ];
system = { system = {
@@ -33,7 +40,7 @@
}; };
}; };
homelab = { homelab = {
enable = true; enable = true;
base_domain = "lumiose.lan"; base_domain = "lumiose.lan";
host_ip = "10.10.0.11"; host_ip = "10.10.0.11";
@@ -41,81 +48,73 @@
}; };
holocron = { holocron = {
# syncthing.enable = false; # syncthing.enable = false;
# copyparty.enable = false; # copyparty.enable = false;
ensure_perms.enable = false; ensure_perms.enable = false;
zfs.enable = true; zfs.enable = true;
smb.enable = true; smb.enable = true;
nfs.enable = true; nfs.enable = true;
}; };
# boot (systemd is going on me) # boot (systemd is going on me)
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.systemd.enable = true; # better logging boot.initrd.systemd.enable = true; # better logging
# setup hostname and networking stack # setup hostname and networking stack
services.resolved = { services.resolved = {
enable = true; enable = true;
fallbackDns = [ "1.1.1.1" "9.9.9.9" ]; fallbackDns = ["1.1.1.1" "9.9.9.9"];
dnsovertls = "opportunistic"; dnsovertls = "opportunistic";
}; };
networking = { networking = {
hostName = "lumiose"; # hostname hostName = "lumiose"; # hostname
networking.hostId = "007f0200"; hostId = "007f0200";
networkmanager = { networkmanager = {
enable = true; # the goat enable = true; # the goat
dns = "systemd-resolved"; # the backup dancer! dns = "systemd-resolved"; # the backup dancer!
ensureProfiles.profiles = { ensureProfiles.profiles = {
# vpn = { # vpn = {
# ethernet.mac-address = "7a:e4:07:8d:22:76"; # ethernet.mac-address = "7a:e4:07:8d:22:76";
# connection.type = "vlan"; # connection.type = "vlan";
# connection.id = "vpn"; # connection.id = "vpn";
# connection.interface-name = "enp89s0.69"; # or just "vpn-vlan" # connection.interface-name = "enp89s0.69"; # or just "vpn-vlan"
# vlan.interface-name = "enp89s0.69"; # or just "vpn-vlan" # vlan.interface-name = "enp89s0.69"; # or just "vpn-vlan"
# vlan.parent = "enp89s0"; # vlan.parent = "enp89s0";
# vlan.id = 69; # vlan.id = 69;
# #ipv4.dns = "9.9.9.9"; # #ipv4.dns = "9.9.9.9";
# }; # };
}; };
}; };
}; };
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
80 # set - http 80 # set - http
111 # set - portmapper for nfs 111 # set - portmapper for nfs
139 # set - smb 139 # set - smb
443 # set - https 443 # set - https
445 # set - cifs 445 # set - cifs
1198 1198
1883 # set - mqtt 1883 # set - mqtt
2049 # set - nfs 2049 # set - nfs
2222 # srv - syncthing 2222 # srv - syncthing
5201 # iperf3 5201 # iperf3
]; ];
networking.firewall.allowedUDPPorts = [ 51820 ]; networking.firewall.allowedUDPPorts = [51820];
# Or disable the firewall altogether. # Or disable the firewall altogether.
networking.firewall.enable = true; networking.firewall.enable = true;
# hardware stuff # hardware stuff
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
system.stateVersion = "25.05"; # stays here : ) system.stateVersion = "25.05"; # stays here : )
} }