Merge pull request 'style: avoid usage of top-level "with lib;"' (#195) from style-avoid-top-level-lib into main
Reviewed-on: #195 Reviewed-by: Hendrik Sokolowski <hensoko@noreply.git.pub.solar>
This commit is contained in:
commit
1235a4f878
|
@ -13,7 +13,11 @@
|
||||||
./users.nix
|
./users.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options.pub-solar-os = with lib; {
|
options.pub-solar-os =
|
||||||
|
let
|
||||||
|
inherit (lib) mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
adminEmail = mkOption {
|
adminEmail = mkOption {
|
||||||
description = "Email address to use for administrative stuff like ACME";
|
description = "Email address to use for administrative stuff like ACME";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
|
|
@ -5,7 +5,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
options.pub-solar-os.networking = with lib; {
|
options.pub-solar-os.networking =
|
||||||
|
let
|
||||||
|
inherit (lib) mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
domain = mkOption {
|
domain = mkOption {
|
||||||
description = "domain on which all services should run. This defaults to pub.solar";
|
description = "domain on which all services should run. This defaults to pub.solar";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
|
|
@ -6,7 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
options.pub-solar-os.authentication = with lib; {
|
options.pub-solar-os.authentication =
|
||||||
|
let
|
||||||
|
inherit (lib) mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
username = mkOption {
|
username = mkOption {
|
||||||
description = "Username for the adminstrative user";
|
description = "Username for the adminstrative user";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
options.pub-solar-os.auth = with lib; {
|
options.pub-solar-os.auth = {
|
||||||
enable = mkEnableOption "Enable keycloak to run on the node";
|
enable = lib.mkEnableOption "Enable keycloak to run on the node";
|
||||||
|
|
||||||
realm = mkOption {
|
realm = lib.mkOption {
|
||||||
description = "Name of the realm";
|
description = "Name of the realm";
|
||||||
type = types.str;
|
type = lib.types.str;
|
||||||
default = config.pub-solar-os.networking.domain;
|
default = config.pub-solar-os.networking.domain;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue