{ config, pkgs, ... }: { boot = { initrd.kernelModules = [ "zfs" ]; kernel.sysctl = { "net.ipv4.ip_forward" = true; }; kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; loader = { efi = { canTouchEfiVariables = true; efiSysMountPoint = "/efiboot/efi1"; }; systemd-boot = { enable = true; extraInstallCommands = '' ${pkgs.coreutils}/bin/cp -r /efiboot/efi1/* /efiboot/efi2 ''; }; timeout = 3; }; supportedFilesystems = [ "zfs" ]; }; #environment.systemPackages = with pkgs; [ # wpa_supplicant # somethingelse #]; imports = [ ./hardware-configuration.nix ./services.nix ../common/core ../common/optional/services/kea.nix ../common/optional/services/openssh.nix ../common/optional/zfs.nix ../common/users/nipsy ../common/users/root ]; networking = { hostId = "f9ca5efe"; hostName = "darkstar"; defaultGateway = "192.168.1.1"; domain = "bitgnome.net"; interfaces = { enp116s0 = { ipv4.addresses = [ { address = "192.168.1.16"; prefixLength = 24; } ]; }; vlan201 = { useDHCP = true; }; }; nameservers = [ "192.168.1.1" ]; #nat = { # enable = true; # #enableIPv6 = true; # externalInterface = "vlan201"; # internalInterfaces = [ "enp116s0" ]; #}; nftables.enable = true; vlans = { vlan201 = { id=201; interface="enp117s0"; }; }; #wireless.iwd = { # enable = true; # settings = { # IPv6 = { # Enabled = true; # }; # Settings = { # AutoConnect = true; # }; # }; #}; }; sops ={ age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; defaultSopsFile = ../secrets/darkstar.yaml; secrets = { "kea-dhcp4.conf" = {}; }; }; system.stateVersion = "23.11"; }