more cleanup
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
{ config, lib, namespace, ... }:
|
||||
with lib;
|
||||
let
|
||||
# inherit (lib.${namespace}) mkOpt;
|
||||
inherit (lib.${namespace}) mkOpt;
|
||||
cfg = config.${namespace}.boot.systemd-boot;
|
||||
in
|
||||
{
|
||||
options.${namespace}.boot.systemd-boot = {
|
||||
enable = mkEnableOption "enable systemd-boot";
|
||||
|
||||
configLimit = mkOpt types.int 10 "Number of boot items to keep";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
@@ -14,7 +16,7 @@ in
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
enable = mkDefault true;
|
||||
configurationLimit = mkDefault 10;
|
||||
configurationLimit = cfg.configLimit;
|
||||
};
|
||||
|
||||
efi = {
|
||||
|
||||
Reference in New Issue
Block a user