mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-03-19 18:56:06 +01:00
thinkpad-nixos: hardware configuration
This commit is contained in:
parent
4df4a87e17
commit
d57f765ef6
2 changed files with 36 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
35
hostconfig/thinkpad-nixos/hardware-configuration.nix
Normal file
35
hostconfig/thinkpad-nixos/hardware-configuration.nix
Normal 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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue