mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
Gabriel Arazas
8a23bd7932
Re-added the setup with the traditional networking configuration since I'm currently using GNOME which only integrates with NetworkManager which is working alongside it. systemd-networkd not being used at this point but I'm keeping it.
45 lines
909 B
Nix
45 lines
909 B
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
./modules/hardware/traditional-networking.nix
|
|
];
|
|
|
|
boot.initrd.availableKernelModules =
|
|
[ "xhci_pci" "ahci" "nvme" "usb_storage" "uas" "sd_mod" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
fileSystems."/" = {
|
|
label = "root";
|
|
options = [
|
|
"defaults"
|
|
"noatime"
|
|
];
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
label = "boot";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
swapDevices = [{ label = "swap"; }];
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
|
|
|
|
# Set up printers.
|
|
services.printing = {
|
|
enable = true;
|
|
browsing = true;
|
|
drivers = with pkgs; [
|
|
gutenprint
|
|
hplip
|
|
splix
|
|
];
|
|
};
|
|
}
|