This commit is contained in:
2026-05-30 23:37:40 +09:00
parent 394638638d
commit 3ff532f9e5
61 changed files with 708 additions and 36 deletions
+7
View File
@@ -0,0 +1,7 @@
{
imports = [
./power.nix
./secure-boot.nix
./uefi.nix
];
}
+13
View File
@@ -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;
};
}
+13
View File
@@ -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;
};
}
+13
View File
@@ -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;
};
}