core/boot: dont setup systemd-boot on servers
This commit is contained in:
parent
d3bb2e0e57
commit
5a0e7a92f4
1 changed files with 35 additions and 26 deletions
|
@ -1,30 +1,39 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
boot = {
|
lib,
|
||||||
loader = {
|
config,
|
||||||
timeout = 0;
|
...
|
||||||
systemd-boot = {
|
}: let
|
||||||
enable = true;
|
inherit (lib.modules) mkIf;
|
||||||
consoleMode = "2";
|
inherit (config.local.profiles) server;
|
||||||
|
in {
|
||||||
|
config = mkIf (!server.enable) {
|
||||||
|
boot = {
|
||||||
|
loader = {
|
||||||
|
timeout = 0;
|
||||||
|
systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
consoleMode = "2";
|
||||||
|
};
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
|
plymouth = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
[Daemon]
|
||||||
|
DeviceScale=2
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
consoleLogLevel = 0;
|
||||||
|
initrd.systemd.enable = true;
|
||||||
|
initrd.verbose = false;
|
||||||
|
|
||||||
|
kernelParams = [
|
||||||
|
"quiet"
|
||||||
|
"systemd.show_status=auto"
|
||||||
|
"rd.udev.log_level=3"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
plymouth = {
|
|
||||||
enable = true;
|
|
||||||
extraConfig = ''
|
|
||||||
[Daemon]
|
|
||||||
DeviceScale=2
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
consoleLogLevel = 0;
|
|
||||||
initrd.systemd.enable = true;
|
|
||||||
initrd.verbose = false;
|
|
||||||
|
|
||||||
kernelParams = [
|
|
||||||
"quiet"
|
|
||||||
"systemd.show_status=auto"
|
|
||||||
"rd.udev.log_level=3"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue