From e9cd013911c78e20743e39ee5cfac38be33e1ed9 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Mon, 17 Feb 2025 20:23:36 -0800 Subject: [PATCH] fix(nixos): Don't change kernel on servers --- modules/nixos/base/boot/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/nixos/base/boot/default.nix b/modules/nixos/base/boot/default.nix index cbe5f9d..e0b099d 100644 --- a/modules/nixos/base/boot/default.nix +++ b/modules/nixos/base/boot/default.nix @@ -1,3 +1,8 @@ -{pkgs, ...}: { - boot.kernelPackages = pkgs.linuxPackages_xanmod; +{ + pkgs, + lib, + config, + ... +}: { + boot.kernelPackages = lib.mkIf (!config.marleyos.isServer) pkgs.linuxPackages_xanmod; }