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"; + }; +}