nixos-config/hosts/thinkpad/hardware-configuration.nix

75 lines
2.3 KiB
Nix
Raw Normal View History

2022-12-18 17:01:34 +01: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.
2023-05-19 11:42:43 +02:00
{ config, lib, modulesPath, ... }:
2022-12-18 17:01:34 +01:00
{
imports =
2022-12-19 18:01:40 +01:00
[
(modulesPath + "/installer/scan/not-detected.nix")
2022-12-18 17:01:34 +01:00
];
2023-01-28 14:53:23 +01:00
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
2022-12-18 17:01:34 +01:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2023-02-18 19:33:05 +01:00
boot.initrd.systemd.enable = true;
2023-02-16 22:08:44 +01:00
boot.initrd.luks.devices."luksroot" = {
device = "/dev/disk/by-uuid/6b89181c-71e0-4e84-8523-2456d3e28400";
allowDiscards = true;
};
2023-02-28 20:48:06 +01:00
boot.initrd.luks.devices."luksswap" = {
device = "/dev/disk/by-uuid/4a5fd2d9-1b37-4895-a24b-835a9cd4063e";
};
2022-12-18 17:01:34 +01:00
fileSystems."/" =
2022-12-19 18:01:40 +01:00
{
2023-05-20 13:20:05 +02:00
device = "tmpfs";
fsType = "tmpfs";
options = [ "size=3G" "mode=755" ];
2023-01-28 14:53:23 +01:00
};
2023-02-16 22:08:44 +01:00
2023-01-28 14:53:23 +01:00
fileSystems."/home" =
{
2023-02-16 22:08:44 +01:00
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
fsType = "btrfs";
options = [ "subvol=home" "compress=zstd" "discard=async" "noatime" ];
2023-01-28 14:53:23 +01:00
};
fileSystems."/var/lib" =
{
2023-02-16 22:08:44 +01:00
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
fsType = "btrfs";
options = [ "subvol=lib" "compress=zstd" "discard=async" "noatime" ];
2023-01-28 14:53:23 +01:00
};
fileSystems."/var/log" =
{
2023-02-16 22:08:44 +01:00
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
fsType = "btrfs";
options = [ "subvol=log" "compress=zstd" "discard=async" "noatime" ];
};
2023-05-20 13:20:05 +02:00
fileSystems."/nix" =
2023-02-16 22:08:44 +01:00
{
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
fsType = "btrfs";
2023-05-20 13:20:05 +02:00
options = [ "subvol=nix" "compress=zstd" "discard=async" "noatime" ];
2022-12-18 17:01:34 +01:00
};
fileSystems."/boot" =
2022-12-19 18:01:40 +01:00
{
2023-02-16 22:08:44 +01:00
device = "/dev/disk/by-uuid/B174-4DAE";
2022-12-18 17:01:34 +01:00
fsType = "vfat";
};
2023-02-28 20:48:06 +01:00
swapDevices =
[{ device = "/dev/disk/by-uuid/1dd20f07-877c-4ee5-bef5-5e8c6ebe7927"; }];
boot.resumeDevice = "/dev/disk/by-uuid/1dd20f07-877c-4ee5-bef5-5e8c6ebe7927";
2022-12-18 17:01:34 +01:00
2023-01-28 14:53:23 +01:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2022-12-18 17:01:34 +01:00
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}