2024-11-26 19:20:10 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-08 21:05:56 +02:00
|
|
|
{
|
2024-11-26 19:20:10 +01:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
2024-09-08 21:05:56 +02:00
|
|
|
|
2024-11-26 19:20:10 +01:00
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
"xhci_pci"
|
|
|
|
"ahci"
|
|
|
|
"nvme"
|
|
|
|
"usbhid"
|
|
|
|
"uas"
|
|
|
|
"sd_mod"
|
2024-12-27 15:25:49 +01:00
|
|
|
# "kvm-intel"
|
2024-11-26 19:20:10 +01:00
|
|
|
];
|
|
|
|
boot.initrd.kernelModules = [
|
|
|
|
"zfs"
|
|
|
|
"nls_cp437"
|
|
|
|
"nls_iso8859-1"
|
|
|
|
"usbhid"
|
|
|
|
"usb_storage"
|
|
|
|
"nvme"
|
|
|
|
];
|
2024-12-27 22:59:07 +01:00
|
|
|
|
|
|
|
boot.kernelModules = [
|
|
|
|
"iwlwifi"
|
|
|
|
"iwlmvm"
|
|
|
|
"mac80211"
|
|
|
|
"bluetooth"
|
|
|
|
"cfg80211"
|
2025-01-08 19:06:22 +01:00
|
|
|
"kvm-intel"
|
|
|
|
];
|
2024-12-27 22:59:07 +01:00
|
|
|
boot.extraModprobeConfig = "options iwlwifi disable_11ax=Y";
|
2025-01-01 13:39:44 +01:00
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
|
2025-01-26 21:43:23 +01:00
|
|
|
# boot.kernelParams = [ "nosgx" ];
|
2024-12-27 22:59:07 +01:00
|
|
|
|
|
|
|
security.lockKernelModules = false; # PAIN on an intended-portable setup
|
|
|
|
# security.protectKernelImage = false;
|
|
|
|
|
2025-01-01 13:39:44 +01:00
|
|
|
boot.loader.systemd-boot.consoleMode = "auto";
|
2024-12-27 22:59:07 +01:00
|
|
|
|
2024-09-08 21:05:56 +02:00
|
|
|
networking.hostId = "40fa5ea8";
|
2025-01-01 13:39:44 +01:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_12;
|
2024-09-08 21:05:56 +02:00
|
|
|
|
2025-01-03 15:57:36 +01:00
|
|
|
|
2024-12-27 22:59:07 +01:00
|
|
|
environment.memoryAllocator.provider = "libc";
|
2024-12-27 15:25:49 +01:00
|
|
|
|
2025-01-27 10:38:55 +01:00
|
|
|
|
2024-09-08 21:05:56 +02:00
|
|
|
grimmShared = {
|
|
|
|
screens = {
|
|
|
|
external = {
|
|
|
|
id = "HDMI-A-1";
|
|
|
|
pos = "0 0";
|
|
|
|
};
|
|
|
|
|
|
|
|
internal = {
|
|
|
|
id = "eDP-1";
|
|
|
|
fps = [
|
|
|
|
144
|
|
|
|
60
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
laptop_hardware.enable = true;
|
|
|
|
};
|
|
|
|
|
2025-01-14 20:37:14 +01:00
|
|
|
boot.initrd.systemd.enable = false; # breaks with luks
|
|
|
|
system.etc.overlay.enable = false; # requires systemd initrd1
|
|
|
|
|
2025-01-27 10:38:55 +01:00
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
2024-09-08 21:05:56 +02:00
|
|
|
# (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`.
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
|
|
|
|
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|