🚧 Initial work on generating homeConfigurations output + syntax changes

This commit is contained in:
Jo 2025-03-25 23:46:13 +01:00
parent f139b88c0b
commit f89cbcc552
12 changed files with 131 additions and 106 deletions

View file

@ -1,16 +1,13 @@
{
lib,
...
}:
{
{lib, ...}: {
# Create a NixOS module option on a single line.
mkOpt =
type: default: description:
lib.mkOption { inherit type default description; };
mkOpt = type: default: description:
lib.mkOption {inherit type default description;};
mkBool =
default: description:
lib.mkOption { inherit default description; type = lib.types.bool; };
mkBool = default: description:
lib.mkOption {
inherit default description;
type = lib.types.bool;
};
# Todo: add mkIfElse function
}