This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-07 18:16:49 -06:00
parent 88f2d95e6a
commit 7bcaca441a
5 changed files with 1920 additions and 68 deletions

View file

@ -1,15 +1,15 @@
{
custom_config_key,
config,
lib,
...
}:
let
cfg = config."${custom_config_key}".boot.grub;
ccfg = import ../config.nix;
cfg = config.${ccfg.custom_config_key}.boot.grub;
in
with lib;
{
options."${custom_config_key}".boot.grub = {
options.${ccfg.custom_config_key}.boot.grub = {
enable = mkEnableOption "Grub bootloader";
device = mkOption {
type = types.str;

View file

@ -1,16 +1,16 @@
{
custom_config_key,
config,
lib,
...
}:
let
cfg_path = "${custom_config_key}".boot.systemd;
cfg = config.${cfg_path};
# ccfg = import ../config.nix;
# cfg_path = "${custom_config_key}".boot.systemd;
cfg = config.ringofstorms_common.boot.systemd;
in
with lib;
{
options.${cfg_path} = {
options.ringofstorms_common.boot.systemd = {
enable = mkEnableOption "Systemd bootloader";
};
config = mkIf cfg.enable {

View file

@ -13,35 +13,20 @@
outputs =
{
ros-neovim,
ros_neovim,
...
}:
{
nixosModules = {
default =
{
config,
lib,
pkgs,
...
}:
let
custom_config_key = "ringofstorms_common";
in
{
options = {
};
imports = [
./boot/grub.nix
# ./boot/grub.nix
./boot/systemd.nix
];
config = {
specialArgs = {
inherit custom_config_key;
};
};
};
};
};