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

77 lines
2.6 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.
{ config, lib, pkgs, modulesPath, ... }:
{
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-16 22:08:44 +01:00
boot.initrd.luks.devices."luksroot" = {
device = "/dev/disk/by-uuid/6b89181c-71e0-4e84-8523-2456d3e28400";
allowDiscards = true;
};
2022-12-18 17:01:34 +01:00
fileSystems."/" =
2022-12-19 18:01:40 +01:00
{
2023-02-16 22:08:44 +01:00
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
fsType = "btrfs";
options = [ "subvol=root" "compress=zstd" "discard=async" "noatime" ];
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" ];
};
fileSystems."/nix/store" =
{
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
fsType = "btrfs";
options = [ "subvol=store" "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";
};
swapDevices = [ ];
# 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.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp9s0.useDHCP = lib.mkDefault true;
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;
}