fix: use a better namespace

This commit is contained in:
silver 2023-10-09 18:04:01 +01:00
parent 9f94b5b551
commit 8ea737d57b
3 changed files with 5 additions and 5 deletions

View file

@ -18,8 +18,8 @@ with lib; let
create_skynet_email = accounts: (map (account: "${account}@skynet.ie") accounts);
create_skynet_email_admin = create_skynet_email config.users.admin;
create_skynet_email_committee = create_skynet_email config.users.committee;
create_skynet_email_admin = create_skynet_email config.skynet.users.admin;
create_skynet_email_committee = create_skynet_email config.skynet.users.committee;
in {
imports = [
./dns.nix

View file

@ -91,7 +91,7 @@ in {
};
host_port = "127.0.0.1:${port_backend}";
users = config.users;
users = config.skynet.users;
};
};
}

View file

@ -2,7 +2,7 @@
with lib; let
port_backend = "8087";
in {
options = {
options.skynet = {
users = {
admin = mkOption rec {
type = types.listOf types.str;
@ -32,7 +32,7 @@ in {
};
};
config = {
config.skynet = {
users = {
admin = [
"silver"