nixos-config/systems/mc6/hardware-configuration.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2022-02-24 21:04:49 +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, ... }:
2022-02-24 20:26:11 +01:00
{
2022-02-24 21:04:49 +01:00
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
2022-03-04 13:11:38 +01:00
system.stateVersion = "22.05";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
2022-02-24 21:04:49 +01:00
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2022-03-04 13:11:38 +01:00
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/vda";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-02-24 21:04:49 +01:00
fileSystems."/" =
{ device = "/dev/disk/by-label/nixos";
fsType = "btrfs";
options = [ "compress-force=zstd" ];
};
2022-03-04 13:11:38 +01:00
fileSystems."/boot" =
{ device = "/dev/disk/by-label/boot";
fsType = "ext4";
};
2022-02-24 21:04:49 +01:00
swapDevices = [ ];
2022-03-04 13:11:38 +01:00
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
2022-02-24 21:04:49 +01:00
networking.useDHCP = lib.mkDefault false;
networking.interfaces.ens3.useDHCP = lib.mkDefault true;
networking.hostName = "mc6";
2022-02-24 20:26:11 +01:00
}
2022-03-04 13:11:38 +01:00
# vim: set et ts=2 sw=2 ai: