modularize system config
This commit is contained in:
parent
3a278d7077
commit
d7453265a1
14 changed files with 217 additions and 180 deletions
21
modules/system/bootloader.nix
Normal file
21
modules/system/bootloader.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ pkgs, legacy-boot, ... }: {
|
||||
boot = {
|
||||
plymouth.enable = true;
|
||||
loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot = {
|
||||
enable = !legacy-boot;
|
||||
configurationLimit = 3;
|
||||
sortKey = "z-nixos";
|
||||
editor = false;
|
||||
};
|
||||
grub = {
|
||||
enable = legacy-boot;
|
||||
device = "/dev/sda";
|
||||
useOSProber = true;
|
||||
default = "saved";
|
||||
theme = "${pkgs.libsForQt5.breeze-grub}/grub/themes/breeze";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue