From ba907ef7b4f5962a11c20adb4036b6ddad26a000 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 22 Jun 2025 21:13:23 +0200 Subject: ... --- system-profiles/core/default.nix | 8 +------- system-profiles/nfsroot.nix | 2 +- system-profiles/zfs.nix | 5 +++-- 3 files changed, 5 insertions(+), 10 deletions(-) (limited to 'system-profiles') diff --git a/system-profiles/core/default.nix b/system-profiles/core/default.nix index 229a007e..e5f9dc16 100644 --- a/system-profiles/core/default.nix +++ b/system-profiles/core/default.nix @@ -180,13 +180,7 @@ in { }; environment.systemPackages = with pkgs; [ git-annex scutiger ]; } - ] ++ (optional (options ? system.switch.enableNg) { - system.switch = lib.mkDefault { - enable = false; - enableNg = true; - }; - }) - ++ (optional (options ? system.rebuild.enableNg) { + ] ++ (optional (options ? system.rebuild.enableNg) { system.rebuild.enableNg = lib.mkDefault true; }) ++ (optional (options ? services.userborn) { diff --git a/system-profiles/nfsroot.nix b/system-profiles/nfsroot.nix index b0116d61..12d5d2b4 100644 --- a/system-profiles/nfsroot.nix +++ b/system-profiles/nfsroot.nix @@ -1,4 +1,4 @@ -{ config, options, pkgs, lib, flake, flakeInputs, ... }: +{ config, options, pkgs, lib, flake, ... }: with lib; diff --git a/system-profiles/zfs.nix b/system-profiles/zfs.nix index a93dddd2..f3147f9e 100644 --- a/system-profiles/zfs.nix +++ b/system-profiles/zfs.nix @@ -1,7 +1,8 @@ -{ pkgs, lib, ... } : { +{ config, pkgs, lib, ... } : { config = { boot = { - kernelPackages = pkgs.linuxPackages_6_12; + kernelPackages = lib.mkIf (!config.boot.kernel.llvm.enable) pkgs.linuxPackages_6_12; + kernel.llvm.kernel = lib.mkIf config.boot.kernel.llvm.enable pkgs.linux_6_12; zfs.package = pkgs.zfs_2_3; supportedFilesystems.zfs = true; -- cgit v1.2.3