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