cleanup nas I think or something
This commit is contained in:
27
modules/nixos/boot/systemd-boot/default.nix
Normal file
27
modules/nixos/boot/systemd-boot/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, lib, namespace, ... }:
|
||||
with lib;
|
||||
let
|
||||
# inherit (lib.${namespace}) mkOpt;
|
||||
cfg = config.${namespace}.boot.systemd-boot;
|
||||
in
|
||||
{
|
||||
options.${namespace}.boot.systemd-boot = {
|
||||
enable = mkEnableOption "enable systemd-boot";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
enable = mkDefault true;
|
||||
configurationLimit = mkDefault 10;
|
||||
};
|
||||
|
||||
efi = {
|
||||
canTouchEfiVariables = mkDefault true;
|
||||
efiSysMountPoint = "/boot";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user