feat: migrate nixos/base/boot
This commit is contained in:
parent
7201c083f0
commit
196af0549c
3 changed files with 22 additions and 10 deletions
17
modules/nixos/base/boot.nix
Normal file
17
modules/nixos/base/boot.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
5
modules/nixos/base/default.nix
Normal file
5
modules/nixos/base/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./boot.nix
|
||||
];
|
||||
}
|
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue