nix-config/hosts/dishwasher/hardware-configuration.nix

66 lines
1.9 KiB
Nix
Raw Normal View History

2022-06-17 19:29:47 +02: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-06-26 21:19:15 +02:00
[
(modulesPath + "/installer/scan/not-detected.nix")
2022-06-17 19:29:47 +02:00
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2022-06-26 21:19:15 +02:00
{
device = "/dev/disk/by-uuid/2971597a-b364-405d-8bb2-287556e819e1";
2022-06-17 19:29:47 +02:00
fsType = "btrfs";
options = [ "subvol=nixos" "compress=zstd" "noatime" ];
};
fileSystems."/var/lib" =
2022-06-26 21:19:15 +02:00
{
device = "/dev/disk/by-uuid/2971597a-b364-405d-8bb2-287556e819e1";
2022-06-17 19:29:47 +02:00
fsType = "btrfs";
options = [ "subvol=var-lib" "compress=zstd" "noatime" ];
};
fileSystems."/var/log" =
2022-06-26 21:19:15 +02:00
{
device = "/dev/disk/by-uuid/2971597a-b364-405d-8bb2-287556e819e1";
2022-06-17 19:29:47 +02:00
fsType = "btrfs";
options = [ "subvol=var-log" "compress=zstd" "noatime" ];
};
2022-06-26 21:17:20 +02:00
fileSystems."/var/microvms" =
2022-06-26 21:19:15 +02:00
{
device = "/dev/disk/by-uuid/2971597a-b364-405d-8bb2-287556e819e1";
2022-06-26 21:17:20 +02:00
fsType = "btrfs";
options = [ "subvol=microvms" "compress=zstd" "noatime" ];
};
2022-06-17 19:29:47 +02:00
fileSystems."/nix" =
2022-06-26 21:19:15 +02:00
{
device = "/dev/disk/by-uuid/2971597a-b364-405d-8bb2-287556e819e1";
2022-06-17 19:29:47 +02:00
fsType = "btrfs";
options = [ "subvol=nix" "compress=zstd" "noatime" ];
};
fileSystems."/boot" =
2022-06-26 21:19:15 +02:00
{
device = "/dev/disk/by-uuid/2A04-BFAE";
2022-06-17 19:29:47 +02:00
fsType = "vfat";
};
swapDevices = [ ];
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-12-16 20:32:36 +01:00
networking.interfaces.wlan0.useDHCP = true;
networking.interfaces.enp1s0.useDHCP = true;
2022-06-17 19:29:47 +02:00
services.logind.lidSwitch = "ignore";
}