added mc4
This commit is contained in:
parent
35bd7166a6
commit
52f4872545
3 changed files with 34 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ in
|
|||
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
memoryPercent = 250;
|
||||
memoryPercent = 200;
|
||||
algorithm = "lzo-rle";
|
||||
};
|
||||
|
||||
|
|
|
|||
16
systems/mc4/configuration.nix
Normal file
16
systems/mc4/configuration.nix
Normal 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
|
||||
17
systems/mc4/hardware-configuration.nix
Normal file
17
systems/mc4/hardware-configuration.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue