From ea7c223797d282c06ffb7cc79cac9ce1172fc514 Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Sun, 20 Mar 2022 23:13:28 +0100 Subject: [PATCH] added mc7 --- systems/mc7/configuration.nix | 11 ++++++++ systems/mc7/hardware-configuration.nix | 39 ++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 systems/mc7/configuration.nix create mode 100644 systems/mc7/hardware-configuration.nix diff --git a/systems/mc7/configuration.nix b/systems/mc7/configuration.nix new file mode 100644 index 0000000..17dda60 --- /dev/null +++ b/systems/mc7/configuration.nix @@ -0,0 +1,11 @@ +{ config, pkgs, ... }: +{ + imports = + [ + ./hardware-configuration.nix + ./modules/generic.nix + ./modules/borg.nix + ]; + + system.stateVersion = "22.05"; +} diff --git a/systems/mc7/hardware-configuration.nix b/systems/mc7/hardware-configuration.nix new file mode 100644 index 0000000..cacb2bb --- /dev/null +++ b/systems/mc7/hardware-configuration.nix @@ -0,0 +1,39 @@ +# 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 = [ ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "vmw_pvscsi" "floppy" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + boot.loader.grub.device = "/dev/sda"; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/126b990a-4493-4dfd-a2f8-5392454e1760"; + fsType = "btrfs"; + options = [ "compress-force=zstd" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/46a8cf4d-679a-44bc-a3b1-886331c133d8"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + # 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. + networking.useDHCP = lib.mkDefault false; + networking.interfaces.ens192.useDHCP = lib.mkDefault true; + networking.hostName = "mc7"; + + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}