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

55 lines
2.0 KiB
Nix
Raw Normal View History

2023-11-03 15:23:05 +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 =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2023-11-05 18:40:04 +01:00
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "sd_mod" ];
2023-11-03 15:23:05 +01:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/4d413255-2c52-4b69-9be1-179e28f1b67e";
fsType = "btrfs";
options = [ "subvol=@" ];
};
boot.initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/5ecf0d68-24fc-49ee-8a78-23b47f3c566c";
2023-11-05 18:40:04 +01:00
fileSystems."/swap" =
{ device = "/dev/disk/by-uuid/4d413255-2c52-4b69-9be1-179e28f1b67e";
fsType = "btrfs";
options = [ "subvol=@swap" ];
};
2023-11-03 15:23:05 +01:00
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/81A5-B98A";
fsType = "vfat";
};
2023-11-05 18:40:04 +01:00
fileSystems."/mnt/backup" =
{ device = "/dev/disk/by-uuid/ea3295df-0107-43dc-90c9-8c3f5558463e";
2023-11-03 15:23:05 +01:00
fsType = "btrfs";
};
2023-11-05 18:40:04 +01:00
boot.initrd.luks.devices."6tb1".device = "/dev/disk/by-id/ata-WDC_WD60EFAX-68SHWN0_WD-WX31D29924PZ-part1";
boot.initrd.luks.devices."6tb2".device = "/dev/disk/by-id/ata-ST6000DM003-2CY186_ZR11WA9K-part1";
2023-11-03 15:23:05 +01:00
swapDevices = [ { device = "/swap/swapfile"; } ];
# 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.enp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}