2021-11-25 11:55:30 +00:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
2023-01-31 08:48:10 +00:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
2021-11-25 11:55:30 +00:00
|
|
|
|
2023-11-06 08:13:04 +00:00
|
|
|
# Get the latest kernel for the desktop experience.
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
2021-12-11 05:37:27 +00:00
|
|
|
boot.initrd.availableKernelModules =
|
2022-07-17 05:25:36 +00:00
|
|
|
[ "xhci_pci" "ahci" "nvme" "usb_storage" "uas" "sd_mod" ];
|
2021-11-25 11:55:30 +00:00
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
2023-03-10 00:28:33 +00:00
|
|
|
# The simpler WiFi manager.
|
|
|
|
networking.wireless.iwd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
General = {
|
|
|
|
EnableNetworkConfiguration = true;
|
|
|
|
ControlPortOverNL80211 = true;
|
|
|
|
};
|
|
|
|
|
2023-03-19 01:58:46 +00:00
|
|
|
Network.NameResolvingService = "systemd";
|
|
|
|
Settings.AutoConnect = true;
|
2023-03-10 00:28:33 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-03-19 01:58:46 +00:00
|
|
|
# Welp....
|
|
|
|
systemd.network.links."80-iwd" = {
|
|
|
|
matchConfig = lib.mkForce { };
|
|
|
|
linkConfig = lib.mkForce { };
|
|
|
|
};
|
|
|
|
|
2023-03-10 00:28:33 +00:00
|
|
|
# Set the NetworkManager backend to iwd for workflows that use it.
|
2023-03-14 00:03:07 +00:00
|
|
|
networking.networkmanager.wifi.backend = "iwd";
|
2023-03-10 00:28:33 +00:00
|
|
|
|
2023-02-06 13:19:56 +00:00
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
boot.loader.systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
netbootxyz.enable = true;
|
|
|
|
};
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
2021-11-25 11:55:30 +00:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2022-07-05 14:05:59 +00:00
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
|
2023-01-21 01:12:23 +00:00
|
|
|
|
2023-11-06 08:13:04 +00:00
|
|
|
services.btrfs.autoScrub = {
|
|
|
|
enable = true;
|
|
|
|
fileSystems = [
|
|
|
|
"/mnt/archives"
|
|
|
|
];
|
|
|
|
};
|
2021-11-25 11:55:30 +00:00
|
|
|
}
|