added mc5

This commit is contained in:
mc-fucker 2021-12-03 13:35:37 +01:00
parent bf0807f781
commit 576267e458
4 changed files with 47 additions and 5 deletions

View file

@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
./modules/generic.nix
];
system.stateVersion = "21.11";
}
# vim: set et ts=2 sw=2 ai:

View file

@ -0,0 +1,35 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-label/nixos";
fsType = "btrfs";
};
swapDevices = [ ];
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
fileSystems."/boot" = { device = "/dev/disk/by-uuid/D4F8-75CA"; fsType = "vfat"; };
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
networking.hostName = "mc5";
}
# vim: set et ts=2 sw=2 ai:

View file

@ -1,8 +1,4 @@
# 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, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports =
[ (modulesPath + "/profiles/qemu-guest.nix") [ (modulesPath + "/profiles/qemu-guest.nix")