{ config, lib, pkgs, modulesPath, ... }: { system.stateVersion = "24.11"; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ./drives.nix ./snapraid.nix ]; boot.extraModulePackages = [ ]; boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "uas" "usbhid" "usb_storage" "sd_mod" "igc" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-intel" ]; boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.systemd-boot.enable = true; #boot.kernelPackages = pkgs.linuxPackages_latest; #boot.kernelPackages = pkgs.linuxPackages_6_16; boot.kernel.sysctl = { "kernel.hung_task_timeout_secs" = 600; }; boot.extraModprobeConfig = '' options usb-storage quirks=174c:1356:u ''; #hardware.opengl = { # enable = true; # extraPackages = with pkgs; [ # intel-media-driver # vaapiIntel # vaapiVdpau # libvdpau-va-gl # ]; #}; networking.hostName = "nasty"; boot.initrd.network = { enable = true; ssh = { enable = true; port = 2222; hostKeys = [ "/root/ssh_host_ed25519_key" ]; }; postCommands = '' echo "cryptsetup-askpass" >> /root/.profile ''; udhcpc.extraArgs = [ "--timeout=10" ]; }; boot.initrd.luks.devices."nixos".device = "/dev/disk/by-uuid/58fc6ad3-8b7c-4448-8f07-5fedac404442"; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. #networking.useDHCP = lib.mkDefault true; # networking.interfaces.enp86s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; networking.interfaces.enp86s0 = { useDHCP = true; ipv4.addresses = [ { address = "192.168.178.53"; prefixLength = 24; } ]; }; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; #hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } # vim: set et ts=2 sw=2 ai: