thinkpad-nixos: hardware configuration

This commit is contained in:
traxys 2021-12-15 10:16:23 +01:00
parent 4df4a87e17
commit d57f765ef6
2 changed files with 36 additions and 0 deletions

View file

@ -210,6 +210,7 @@
modules = [
./hostconfig/thinkpad-nixos/extra_info.nix
./hostconfig/thinkpad-nixos/nixos.nix
./hostconfig/thinkpad-nixos/hardware-configuration.nix
self.nixosModules.minimal
self.nixosModules.personal-cli
self.nixosModules.personal-gui

View file

@ -0,0 +1,35 @@
# 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.
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
boot.initrd.kernelModules = ["dm-snapshot"];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/a53e1f39-a9e9-481b-a970-740d0c549181";
fsType = "btrfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/21EC-4041";
fsType = "vfat";
};
swapDevices = [
{device = "/dev/disk/by-uuid/ff3ba4e7-71e0-4723-b2d1-b1ca61f99337";}
];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}