nix-infra/hosts/dinictis/hardware-configuration.nix

77 lines
2.5 KiB
Nix
Raw Normal View History

2024-05-04 13:03:05 +00: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 =
2024-06-01 18:12:20 +00:00
[
(modulesPath + "/installer/scan/not-detected.nix")
2024-05-04 13:03:05 +00:00
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2024-06-01 18:12:20 +00:00
{
device = "/dev/disk/by-uuid/a3e601e7-7005-4513-8dff-748d9f384646";
2024-05-04 13:03:05 +00:00
fsType = "btrfs";
options = [ "subvol=root" ];
};
boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/73e8faf4-a250-4edb-9583-a16dcfff621b";
boot.initrd.luks.devices."swap".device = "/dev/disk/by-uuid/4bd4ac67-74a8-4a67-b5eb-e8ebf814d5d7";
fileSystems."/home" =
2024-06-01 18:12:20 +00:00
{
device = "/dev/disk/by-uuid/a3e601e7-7005-4513-8dff-748d9f384646";
2024-05-04 13:03:05 +00:00
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/nix" =
2024-06-01 18:12:20 +00:00
{
device = "/dev/disk/by-uuid/a3e601e7-7005-4513-8dff-748d9f384646";
2024-05-04 13:03:05 +00:00
fsType = "btrfs";
options = [ "subvol=nix" ];
};
fileSystems."/persist" =
2024-06-01 18:12:20 +00:00
{
device = "/dev/disk/by-uuid/a3e601e7-7005-4513-8dff-748d9f384646";
2024-05-04 13:03:05 +00:00
fsType = "btrfs";
options = [ "subvol=persist" ];
};
fileSystems."/var/log" =
2024-06-01 18:12:20 +00:00
{
device = "/dev/disk/by-uuid/a3e601e7-7005-4513-8dff-748d9f384646";
2024-05-04 13:03:05 +00:00
fsType = "btrfs";
options = [ "subvol=log" ];
neededForBoot = true;
};
fileSystems."/boot" =
2024-06-01 18:12:20 +00:00
{
device = "/dev/disk/by-uuid/6891-5A39";
2024-05-04 13:03:05 +00:00
fsType = "vfat";
};
swapDevices =
2024-06-01 18:12:20 +00:00
[{ device = "/dev/disk/by-uuid/65f4c4dd-57e7-4709-a017-2277874d3917"; }];
2024-05-04 13:03:05 +00: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.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
# networking.interfaces.wwp0s20f0u2.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}