From 576267e4585e530d90cc3ab689ab8ae91b293f26 Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Fri, 3 Dec 2021 13:35:37 +0100 Subject: [PATCH] added mc5 --- systems/mc5/configuration.nix | 11 ++++++++ systems/mc5/hardware-configuration.nix | 35 ++++++++++++++++++++++++++ systems/vpn/configuration.nix | 2 +- systems/vpn/hardware-configuration.nix | 4 --- 4 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 systems/mc5/configuration.nix create mode 100644 systems/mc5/hardware-configuration.nix diff --git a/systems/mc5/configuration.nix b/systems/mc5/configuration.nix new file mode 100644 index 0000000..267300a --- /dev/null +++ b/systems/mc5/configuration.nix @@ -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: diff --git a/systems/mc5/hardware-configuration.nix b/systems/mc5/hardware-configuration.nix new file mode 100644 index 0000000..3eaebc6 --- /dev/null +++ b/systems/mc5/hardware-configuration.nix @@ -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: diff --git a/systems/vpn/configuration.nix b/systems/vpn/configuration.nix index 88298da..267300a 100644 --- a/systems/vpn/configuration.nix +++ b/systems/vpn/configuration.nix @@ -1,7 +1,7 @@ { config, pkgs, ... }: { imports = - [ + [ ./hardware-configuration.nix ./modules/generic.nix ]; diff --git a/systems/vpn/hardware-configuration.nix b/systems/vpn/hardware-configuration.nix index 40e8fe8..e22e828 100644 --- a/systems/vpn/hardware-configuration.nix +++ b/systems/vpn/hardware-configuration.nix @@ -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, ... }: - { imports = [ (modulesPath + "/profiles/qemu-guest.nix")