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")
|
|
|
|
./modules/hardware/traditional-networking.nix
|
|
|
|
];
|
2021-11-25 11:55:30 +00:00
|
|
|
|
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 = [ ];
|
|
|
|
|
2021-12-11 05:37:27 +00:00
|
|
|
fileSystems."/" = {
|
2021-12-26 10:43:49 +00:00
|
|
|
label = "root";
|
2022-08-27 05:30:04 +00:00
|
|
|
options = [
|
|
|
|
"defaults"
|
|
|
|
"noatime"
|
|
|
|
];
|
2021-12-11 05:37:27 +00:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2021-11-25 11:55:30 +00:00
|
|
|
|
2021-12-11 05:37:27 +00:00
|
|
|
fileSystems."/boot" = {
|
2021-12-26 10:43:49 +00:00
|
|
|
label = "boot";
|
2021-12-11 05:37:27 +00:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2021-11-25 11:55:30 +00:00
|
|
|
|
2021-12-11 05:37:27 +00:00
|
|
|
swapDevices = [{ label = "swap"; }];
|
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
|
|
|
|
|
|
|
# Set up printers.
|
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
browsing = true;
|
|
|
|
drivers = with pkgs; [
|
|
|
|
gutenprint
|
|
|
|
hplip
|
|
|
|
splix
|
|
|
|
];
|
|
|
|
};
|
2021-11-25 11:55:30 +00:00
|
|
|
}
|