WIP refactor

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-16 23:25:18 -05:00
parent 6381cb0ea1
commit 7e7f04574b
13 changed files with 1150 additions and 166 deletions

View file

@ -5,13 +5,19 @@
}:
let
ccfg = import ../config.nix;
cfg_path = "${ccfg.custom_config_key}".boot.systemd;
cfg = config.${cfg_path};
cfg_path = [
ccfg.custom_config_key
"boot"
"systemd"
];
cfg = lib.attrsets.getAttrFromPath cfg_path config;
in
{
options.${cfg_path} = {
enable = lib.mkEnableOption "Systemd bootloader";
};
options =
{ }
// lib.attrsets.setAttrByPath cfg_path {
enable = lib.mkEnableOption "Systemd bootloader";
};
config = lib.mkIf cfg.enable {
boot.loader = {
systemd-boot = {