From 103076630500619cd545db234188438274f3c6fd Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Tue, 5 Dec 2023 11:14:31 +0100 Subject: [PATCH] fix ids --- hosts/fw.cloonar.com/modules/statidids.nix | 6 +++--- hosts/fw.cloonar.com/modules/unbound.nix | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hosts/fw.cloonar.com/modules/statidids.nix b/hosts/fw.cloonar.com/modules/statidids.nix index 28ddfe0..b132039 100644 --- a/hosts/fw.cloonar.com/modules/statidids.nix +++ b/hosts/fw.cloonar.com/modules/statidids.nix @@ -4,7 +4,7 @@ let in { options = { - ids.uids = lib.mkOption { + container-ids.uids = lib.mkOption { internal = true; description = lib.mdDoc '' The user IDs used in NixOS. @@ -12,7 +12,7 @@ in type = types.attrsOf types.int; }; - ids.gids = lib.mkOption { + container-ids.gids = lib.mkOption { internal = true; description = lib.mdDoc '' The group IDs used in NixOS. @@ -21,7 +21,7 @@ in }; }; config = { - ids = { + container-ids = { uids = { unbound = 10001; }; diff --git a/hosts/fw.cloonar.com/modules/unbound.nix b/hosts/fw.cloonar.com/modules/unbound.nix index 0ce5a1c..060f84b 100644 --- a/hosts/fw.cloonar.com/modules/unbound.nix +++ b/hosts/fw.cloonar.com/modules/unbound.nix @@ -133,10 +133,10 @@ in { users.users.unbound = { group = "unbound"; isSystemUser = true; - uid = config.ids.uids.unbound; + uid = config.container-ids.uids.unbound; }; users.groups.unbound = { - gid = config.ids.gids.unbound; + gid = config.container-ids.gids.unbound; }; security.acme.certs."${domain}" = { @@ -175,10 +175,10 @@ in { users.users.unbound = { group = "unbound"; isSystemUser = true; - uid = config.ids.uids.unbound; + uid = config.container-ids.uids.unbound; }; users.groups.unbound = { - gid = config.ids.gids.unbound; + gid = config.container-ids.gids.unbound; }; services.unbound = { enable = true;