nix-git/hosts/yodaTab/hardware-configuration.nix

56 lines
2.1 KiB
Nix
Raw Normal View History

2023-09-02 15:44:33 +02:00
# Do not modify this file! It was generated by 'nixos-generate-config'
# and may be overwritten by future invocations. Please make changes
2023-08-15 19:13:43 +02:00
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2023-08-18 19:18:47 +02:00
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "rtsx_pci_sdmmc" ];
2023-08-15 19:13:43 +02:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/f87e6b3c-12f2-4fda-92b3-06b07bdad58f";
fsType = "btrfs";
2023-09-16 12:51:40 +02:00
options = [ "subvol=@" ];
2023-08-15 19:13:43 +02:00
};
boot.initrd.luks.devices."luks-ba8b94d0-7f70-496a-ad87-eadc5e852aad".device = "/dev/disk/by-uuid/ba8b94d0-7f70-496a-ad87-eadc5e852aad";
2023-08-30 14:54:10 +02:00
fileSystems."/swap" =
{ device = "/dev/disk/by-uuid/f87e6b3c-12f2-4fda-92b3-06b07bdad58f";
fsType = "btrfs";
options = [ "subvol=@swap" ];
};
2023-08-15 19:13:43 +02:00
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/9034-800C";
fsType = "vfat";
};
2023-08-18 19:18:47 +02:00
fileSystems."/mnt/512gb" =
{ device = "/dev/disk/by-uuid/c27f48d4-b39c-46a4-a27a-71aa6e4113e3";
fsType = "ext4";
};
boot.initrd.luks.devices."512gb".device = "/dev/disk/by-uuid/03d4ac28-2c81-463e-b615-fb623d40b6fa";
2023-08-28 15:50:16 +02:00
swapDevices = [ { device = "/swap/swapfile"; } ];
2023-08-15 19:13:43 +02:00
# 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.enp0s20f0u1u2.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}