HermitCollective.nix/system/hardware-configuration.nix

32 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-03-06 09:25:15 +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-08-16 11:36:41 +00:00
[ (modulesPath + "/profiles/qemu-guest.nix")
2024-03-06 09:25:15 +00:00
];
2024-08-16 11:36:41 +00:00
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
2024-03-06 09:25:15 +00:00
boot.initrd.kernelModules = [ ];
2024-08-16 11:36:41 +00:00
boot.kernelModules = [ "kvm-amd" ];
2024-03-06 09:25:15 +00:00
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/94c7af9d-2a39-4ae1-9447-91b1bacec334";
fsType = "ext4";
};
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;
2024-08-16 11:36:41 +00:00
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
2024-03-06 09:25:15 +00:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}