added mc4

This commit is contained in:
mc-fucker 2021-11-06 13:01:22 +01:00
parent 35bd7166a6
commit 52f4872545
3 changed files with 34 additions and 1 deletions

View file

@ -21,7 +21,7 @@ in
zramSwap = {
enable = true;
memoryPercent = 250;
memoryPercent = 200;
algorithm = "lzo-rle";
};

View file

@ -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

View file

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