try
This commit is contained in:
parent
1d42a1c405
commit
96138e0099
2 changed files with 6 additions and 6 deletions
|
|
@ -3,7 +3,7 @@ let
|
||||||
inherit (lib) types;
|
inherit (lib) types;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.containers = {
|
options.services = {
|
||||||
ids.uids = lib.mkOption {
|
ids.uids = lib.mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
|
|
@ -21,7 +21,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
containers.ids = {
|
services.ids = {
|
||||||
uids = {
|
uids = {
|
||||||
unbound = 10001;
|
unbound = 10001;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -133,10 +133,10 @@ in {
|
||||||
users.users.unbound = {
|
users.users.unbound = {
|
||||||
group = "unbound";
|
group = "unbound";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
uid = config.containers.ids.uids.unbound;
|
uid = config.services.ids.uids.unbound;
|
||||||
};
|
};
|
||||||
users.groups.unbound = {
|
users.groups.unbound = {
|
||||||
gid = config.containers.ids.gids.unbound;
|
gid = config.services.ids.gids.unbound;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme.certs."${domain}" = {
|
security.acme.certs."${domain}" = {
|
||||||
|
|
@ -175,10 +175,10 @@ in {
|
||||||
users.users.unbound = {
|
users.users.unbound = {
|
||||||
group = "unbound";
|
group = "unbound";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
uid = config.containers.ids.uids.unbound;
|
uid = config.services.ids.uids.unbound;
|
||||||
};
|
};
|
||||||
users.groups.unbound = {
|
users.groups.unbound = {
|
||||||
gid = config.containers.ids.gids.unbound;
|
gid = config.services.ids.gids.unbound;
|
||||||
};
|
};
|
||||||
services.unbound = {
|
services.unbound = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue