summaryrefslogtreecommitdiff
path: root/system-profiles
diff options
context:
space:
mode:
Diffstat (limited to 'system-profiles')
-rw-r--r--system-profiles/bcachefs.nix10
-rw-r--r--system-profiles/core/default.nix5
-rw-r--r--system-profiles/zfs.nix4
-rw-r--r--system-profiles/zswap.nix25
4 files changed, 28 insertions, 16 deletions
diff --git a/system-profiles/bcachefs.nix b/system-profiles/bcachefs.nix
index be12bf20..6090c56d 100644
--- a/system-profiles/bcachefs.nix
+++ b/system-profiles/bcachefs.nix
@@ -2,15 +2,5 @@
2 config = { 2 config = {
3 boot.supportedFilesystems.bcachefs = true; 3 boot.supportedFilesystems.bcachefs = true;
4 environment.systemPackages = with pkgs; [ bcachefs-tools ]; 4 environment.systemPackages = with pkgs; [ bcachefs-tools ];
5
6 boot.kernelPatches = [
7 {
8 name = "bcachefs-casefold-fix";
9 patch = null;
10 structuredExtraConfig = with lib.kernel; {
11 UNICODE = lib.mkOverride 90 no;
12 };
13 }
14 ];
15 }; 5 };
16} 6}
diff --git a/system-profiles/core/default.nix b/system-profiles/core/default.nix
index e5f9dc16..258dd32d 100644
--- a/system-profiles/core/default.nix
+++ b/system-profiles/core/default.nix
@@ -180,10 +180,7 @@ in {
180 }; 180 };
181 environment.systemPackages = with pkgs; [ git-annex scutiger ]; 181 environment.systemPackages = with pkgs; [ git-annex scutiger ];
182 } 182 }
183 ] ++ (optional (options ? system.rebuild.enableNg) { 183 ] ++ (optional (options ? services.userborn) {
184 system.rebuild.enableNg = lib.mkDefault true;
185 })
186 ++ (optional (options ? services.userborn) {
187 services.userborn = { 184 services.userborn = {
188 enable = lib.mkDefault true; 185 enable = lib.mkDefault true;
189 passwordFilesLocation = lib.mkDefault "/var/lib/nixos"; 186 passwordFilesLocation = lib.mkDefault "/var/lib/nixos";
diff --git a/system-profiles/zfs.nix b/system-profiles/zfs.nix
index d4a2175f..c20acb9a 100644
--- a/system-profiles/zfs.nix
+++ b/system-profiles/zfs.nix
@@ -1,8 +1,8 @@
1{ config, pkgs, lib, ... } : { 1{ config, pkgs, lib, ... } : {
2 config = { 2 config = {
3 boot = { 3 boot = {
4 kernelPackages = lib.mkDefault pkgs.linuxPackages_6_12; 4 kernelPackages = lib.mkDefault pkgs.linuxPackages_6_18;
5 zfs.package = lib.mkDefault pkgs.zfs_2_3; 5 zfs.package = lib.mkDefault pkgs.zfs_2_4;
6 6
7 supportedFilesystems.zfs = true; 7 supportedFilesystems.zfs = true;
8 }; 8 };
diff --git a/system-profiles/zswap.nix b/system-profiles/zswap.nix
new file mode 100644
index 00000000..ac141f55
--- /dev/null
+++ b/system-profiles/zswap.nix
@@ -0,0 +1,25 @@
1{ ... }:
2
3{
4 config = {
5 boot.kernelParams = [
6 "zswap.enabled=1"
7 "zswap.compressor=zstd"
8 "zswap.zpool=zsmalloc"
9 "zswap.max_pool_percent=25"
10 "zswap.accept_threshold_percent=90"
11 "zswap.shrinker_enabled=1"
12 ];
13
14 boot.initrd.kernelModules = [ "zstd" "zsmalloc" ];
15
16 boot.kernel.sysfs.module.zswap.parameters = {
17 enabled = true;
18 compressor = "zstd";
19 zpool = "zsmalloc";
20 max_pool_percent = 25;
21 accept_threshold_percent = 90;
22 shrinker_enabled = true;
23 };
24 };
25}