From 52f4872545dbb3f7c9f07991a613da46cab62a64 Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Sat, 6 Nov 2021 13:01:22 +0100 Subject: [PATCH] added mc4 --- modules/generic.nix | 2 +- systems/mc4/configuration.nix | 16 ++++++++++++++++ systems/mc4/hardware-configuration.nix | 17 +++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 systems/mc4/configuration.nix create mode 100644 systems/mc4/hardware-configuration.nix diff --git a/modules/generic.nix b/modules/generic.nix index b10ad58..22efbb2 100644 --- a/modules/generic.nix +++ b/modules/generic.nix @@ -21,7 +21,7 @@ in zramSwap = { enable = true; - memoryPercent = 250; + memoryPercent = 200; algorithm = "lzo-rle"; }; diff --git a/systems/mc4/configuration.nix b/systems/mc4/configuration.nix new file mode 100644 index 0000000..5b61f8e --- /dev/null +++ b/systems/mc4/configuration.nix @@ -0,0 +1,16 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ config, pkgs, ... }: +{ + imports = + [ + ./hardware-configuration.nix + ./modules/generic.nix + ]; + + system.stateVersion = "21.05"; +} + +# vim: set et ts=2 sw=2 ai diff --git a/systems/mc4/hardware-configuration.nix b/systems/mc4/hardware-configuration.nix new file mode 100644 index 0000000..e7f0247 --- /dev/null +++ b/systems/mc4/hardware-configuration.nix @@ -0,0 +1,17 @@ +{ modulesPath, ... }: +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader.grub = { + efiSupport = true; + efiInstallAsRemovable = true; + device = "nodev"; + }; + fileSystems."/boot" = { device = "/dev/disk/by-uuid/C2EB-7223"; fsType = "vfat"; }; + boot.initrd.kernelModules = [ "nvme" ]; + fileSystems."/" = { device = "/dev/sda3"; fsType = "xfs"; }; + networking = { + useDHCP = false; + interfaces.enp0s3.useDHCP = true; + hostName = "mc4"; + }; +}