feat: modular zram

This commit is contained in:
2026-02-19 08:58:37 +01:00
parent 8d7848c0d3
commit f832903ada
5 changed files with 10 additions and 2 deletions

View File

@@ -57,6 +57,7 @@
gamingSystem = true;
# Currently supported: plasma, gnome, hyprland and none
desktopEnvironment = "gnome";
enableZram = true;
additionalModules = [
];
};
@@ -66,12 +67,14 @@
email = personalEmail;
workSystem = true;
desktopEnvironment = "gnome";
enableZram = true;
};
nixosConfigurations."bomba" = mkSystem "bomba" {
system = "x86_64-linux";
email = personalEmail;
user = username;
desktopEnvironment = "none";
enableZram = true;
};
};
}

View File

@@ -17,6 +17,7 @@ name:
gamingSystem ? false,
workSystem ? false,
desktopEnvironment ? "",
enableZram ? false,
additionalModules ? [ ],
}:
let
@@ -36,6 +37,7 @@ let
currentSystemDe = desktopEnvironment;
gamingSystem = gamingSystem;
workSystem = workSystem;
enableZram = enableZram;
nixvim = nixvim;
millennium = millennium;
nur = nur;

View File

@@ -48,6 +48,4 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
zramSwap.enable = true;
}

View File

@@ -6,6 +6,7 @@
}:
{
imports = [
./hardware.nix
./keyboard.nix
./security.nix
./services.nix

View File

@@ -0,0 +1,4 @@
{ enableZram, ... }:
{
zramSwap.enable = enableZram;
}