try
This commit is contained in:
@@ -1,8 +1,31 @@
|
|||||||
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
uids = {
|
|
||||||
unbound = 10001;
|
options.cids = {
|
||||||
|
uids = lib.mkOption {
|
||||||
|
readOnly = true;
|
||||||
|
description = lib.mdDoc ''
|
||||||
|
The user IDs used for containers.
|
||||||
|
'';
|
||||||
|
type = lib.types.attrsOf types.int;
|
||||||
|
};
|
||||||
|
|
||||||
|
gids = lib.mkOption {
|
||||||
|
readOnly = true;
|
||||||
|
description = lib.mdDoc ''
|
||||||
|
The group IDs used for containers.
|
||||||
|
'';
|
||||||
|
type = lib.types.attrsOf types.int;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
gids = {
|
config = {
|
||||||
unbound = 10001;
|
cids = {
|
||||||
|
uids = {
|
||||||
|
unbound = 10001;
|
||||||
|
};
|
||||||
|
gids = {
|
||||||
|
unbound = 10001;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
let
|
let
|
||||||
cids = import [../modules/staticids.nix];
|
|
||||||
domain = "ns.cloonar.com";
|
domain = "ns.cloonar.com";
|
||||||
cfg = {
|
cfg = {
|
||||||
server = {
|
server = {
|
||||||
@@ -134,10 +133,10 @@ in {
|
|||||||
users.users.unbound = {
|
users.users.unbound = {
|
||||||
group = "unbound";
|
group = "unbound";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
uid = cids.uids.unbound;
|
uid = config.cids.uids.unbound;
|
||||||
};
|
};
|
||||||
users.groups.unbound = {
|
users.groups.unbound = {
|
||||||
gid = cids.gids.unbound;
|
gid = config.cids.gids.unbound;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme.certs."${domain}" = {
|
security.acme.certs."${domain}" = {
|
||||||
@@ -176,10 +175,10 @@ in {
|
|||||||
users.users.unbound = {
|
users.users.unbound = {
|
||||||
group = "unbound";
|
group = "unbound";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
uid = cids.uids.unbound;
|
uid = config.cids.uids.unbound;
|
||||||
};
|
};
|
||||||
users.groups.unbound = {
|
users.groups.unbound = {
|
||||||
gid = cids.gids.unbound;
|
gid = config.cids.gids.unbound;
|
||||||
};
|
};
|
||||||
services.unbound = {
|
services.unbound = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user