dotfiles-nixos/nixos/machines/lpt-mans/hardware-configuration.nix

41 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2023-06-11 15:57:47 +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 =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2023-06-11 16:01:58 +00:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
2023-06-11 15:57:47 +00:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2023-06-11 16:01:58 +00:00
{ device = "/dev/disk/by-uuid/db297c82-b312-418e-a676-8184d1f05e8d";
2023-06-11 15:57:47 +00:00
fsType = "ext4";
};
2023-06-11 16:01:58 +00:00
boot.initrd.luks.devices."luks-0af9e769-eebd-452a-bf39-96fbc998e6d5".device = "/dev/disk/by-uuid/0af9e769-eebd-452a-bf39-96fbc998e6d5";
2023-06-11 15:57:47 +00:00
2023-06-11 16:01:58 +00:00
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/4172-0C69";
2023-06-11 15:57:47 +00: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;
2023-06-11 16:01:58 +00:00
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
2023-06-11 15:57:47 +00:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}