mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
I don't know if i like this
This commit is contained in:
parent
c6a9144ffe
commit
1b62d16ddc
63 changed files with 369 additions and 294 deletions
41
nixosModules/boot/other.nix
Normal file
41
nixosModules/boot/other.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
lib,
|
||||
self',
|
||||
pkgs,
|
||||
config,
|
||||
}:
|
||||
{
|
||||
options.local.bootConfig.disable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf (!config.local.bootConfig.disable) {
|
||||
boot = {
|
||||
loader = {
|
||||
grub.configurationLimit = 10;
|
||||
systemd-boot = {
|
||||
configurationLimit = 10;
|
||||
enable = lib.mkDefault true;
|
||||
consoleMode = "max";
|
||||
editor = false;
|
||||
};
|
||||
|
||||
efi.canTouchEfiVariables = lib.mkDefault true;
|
||||
};
|
||||
plymouth = {
|
||||
enable = lib.mkDefault true;
|
||||
theme = "breeze";
|
||||
logo = "${self'.packages.images}/logo.png";
|
||||
};
|
||||
};
|
||||
systemd.services.efibootmgr = {
|
||||
reloadIfChanged = false;
|
||||
restartIfChanged = false;
|
||||
stopIfChanged = false;
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${lib.getExe' pkgs.efibootmgr "efibootmgr"} -t 0";
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue