linuxware/hardware-configuration.nix

42 lines
1.6 KiB
Nix
Raw Normal View History

2023-11-05 04:53:31 -03: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-08-14 10:51:16 -03:00
[ (modulesPath + "/installer/scan/not-detected.nix")
2023-11-05 04:53:31 -03:00
];
2024-05-21 15:53:44 -03:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" ];
2023-11-05 04:53:31 -03:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2024-08-14 10:51:16 -03:00
{ device = "/dev/disk/by-uuid/796d5ad8-db83-4c4f-883d-2f1f4f1937de";
2023-11-05 04:53:31 -03:00
fsType = "ext4";
};
2024-02-28 06:48:35 -03:00
boot.initrd.luks.devices."luks-94d233be-889a-46a4-9c20-b7f026980cbf".device = "/dev/disk/by-uuid/94d233be-889a-46a4-9c20-b7f026980cbf";
2023-11-05 04:53:31 -03:00
fileSystems."/boot" =
2024-08-14 10:51:16 -03:00
{ device = "/dev/disk/by-uuid/CA05-302F";
2023-11-05 04:53:31 -03:00
fsType = "vfat";
2024-05-21 15:53:44 -03:00
options = [ "fmask=0022" "dmask=0022" ];
2023-11-05 04:53:31 -03:00
};
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;
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
2024-02-28 06:48:35 -03:00
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
2023-11-05 04:53:31 -03:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2024-05-21 15:53:44 -03:00
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2023-11-05 04:53:31 -03:00
}