wip refactor
This commit is contained in:
parent
7e7f04574b
commit
26cc522363
4 changed files with 72 additions and 1152 deletions
18
common/options.nix
Normal file
18
common/options.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
ccfg = import ./config.nix;
|
||||
cfg_path = "${ccfg.custom_config_key}";
|
||||
cfg = config.${cfg_path};
|
||||
in
|
||||
{
|
||||
options.${cfg_path} = {
|
||||
systemName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The name of the system.";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue