2024-08-28 00:00:10 +02:00
|
|
|
{ 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;
|
2025-11-10 14:22:01 +01:00
|
|
|
#boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
#boot.kernelPackages = pkgs.linuxPackages_6_16;
|
2025-06-06 10:18:17 +02:00
|
|
|
boot.kernel.sysctl = {
|
|
|
|
|
"kernel.hung_task_timeout_secs" = 600;
|
|
|
|
|
};
|
2024-08-28 00:00:10 +02:00
|
|
|
|
|
|
|
|
boot.extraModprobeConfig = ''
|
|
|
|
|
options usb-storage quirks=174c:1356:u
|
|
|
|
|
'';
|
|
|
|
|
|
2025-11-10 14:22:01 +01:00
|
|
|
#hardware.opengl = {
|
|
|
|
|
# enable = true;
|
|
|
|
|
# extraPackages = with pkgs; [
|
|
|
|
|
# intel-media-driver
|
|
|
|
|
# vaapiIntel
|
|
|
|
|
# vaapiVdpau
|
|
|
|
|
# libvdpau-va-gl
|
|
|
|
|
# ];
|
|
|
|
|
#};
|
2024-08-28 00:00:10 +02:00
|
|
|
|
|
|
|
|
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.<interface>.useDHCP`.
|
2025-06-06 10:18:17 +02:00
|
|
|
#networking.useDHCP = lib.mkDefault true;
|
2024-08-28 00:00:10 +02:00
|
|
|
# networking.interfaces.enp86s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
2025-06-06 10:18:17 +02:00
|
|
|
networking.interfaces.enp86s0 = {
|
|
|
|
|
useDHCP = true;
|
|
|
|
|
ipv4.addresses = [
|
|
|
|
|
{ address = "192.168.178.53";
|
|
|
|
|
prefixLength = 24;
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
2024-08-28 00:00:10 +02:00
|
|
|
|
|
|
|
|
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:
|