feat: migrate nixos/base/boot

This commit is contained in:
punkfairie 2025-05-25 15:15:10 -07:00
parent 7201c083f0
commit 196af0549c
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
3 changed files with 22 additions and 10 deletions

View file

@ -0,0 +1,17 @@
{
pkgs,
lib,
config,
...
}: {
boot = {
kernelPackages =
lib.mkIf (!config.marleyos.profiles.server.enable)
pkgs.linuxPackages_xanmod;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
}

View file

@ -0,0 +1,5 @@
{
imports = [
./boot.nix
];
}

View file

@ -1,10 +0,0 @@
{
pkgs,
lib,
config,
...
}: {
boot.kernelPackages = lib.mkIf (!config.marleyos.isServer) pkgs.linuxPackages_xanmod;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}