nixos-config/machines/T420-Laptop/hardware-configuration.nix

39 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2020-02-17 17:00:59 +04:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
2021-01-22 21:44:23 +04:00
{ config, lib, pkgs, modulesPath, ... }:
2020-02-17 17:00:59 +04:00
{
2022-10-04 13:21:57 +04:00
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
2020-02-17 17:00:59 +04:00
2022-10-04 13:21:57 +04:00
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sd_mod" "sr_mod" ];
2020-02-17 17:00:59 +04:00
boot.initrd.kernelModules = [ ];
2022-10-04 13:21:57 +04:00
boot.kernelModules = [ ];
2020-02-17 17:00:59 +04:00
boot.extraModulePackages = [ ];
2022-10-04 13:21:57 +04:00
fileSystems."/" =
{ device = "/dev/disk/by-uuid/1364826d-5333-4ec9-93cf-aba2925e41d0";
fsType = "ext4";
};
2020-02-17 17:00:59 +04:00
2022-10-04 13:21:57 +04:00
fileSystems."/var/lib" =
{ device = "/dev/disk/by-uuid/e4122adb-3f73-44b5-8763-7fb91e9a52e7";
fsType = "ext4";
};
2021-01-22 21:44:23 +04:00
2020-02-17 17:00:59 +04:00
swapDevices = [ ];
2022-10-04 13:21:57 +04:00
# 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`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
2022-02-03 02:36:37 +04:00
2022-10-04 13:21:57 +04:00
# nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
nix.settings.max-jobs = 4;
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2020-02-17 17:00:59 +04:00
}