mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 07:28:12 +09:00
fix
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
imports = [
|
||||
./power.nix
|
||||
./secure-boot.nix
|
||||
./uefi.nix
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.my.features.boot.power;
|
||||
in
|
||||
{
|
||||
options.my.features.boot.power = {
|
||||
enable = lib.mkEnableOption "Power management";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.system.power.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.my.features.boot.secureBoot;
|
||||
in
|
||||
{
|
||||
options.my.features.boot.secureBoot = {
|
||||
enable = lib.mkEnableOption "Secure boot (lanzaboote)";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.system.secure-boot.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.my.features.boot.uefi;
|
||||
in
|
||||
{
|
||||
options.my.features.boot.uefi = {
|
||||
enable = lib.mkEnableOption "UEFI boot support";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.system.boot.uefi.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user