From 2be2aa013deaf0e613fc8b287a6922f93c6f48b6 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Tue, 5 Dec 2023 11:13:20 +0100 Subject: [PATCH] change staticids --- hosts/fw.cloonar.com/modules/statidids.nix | 35 ++++++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/hosts/fw.cloonar.com/modules/statidids.nix b/hosts/fw.cloonar.com/modules/statidids.nix index ce7715c..28ddfe0 100644 --- a/hosts/fw.cloonar.com/modules/statidids.nix +++ b/hosts/fw.cloonar.com/modules/statidids.nix @@ -1,10 +1,33 @@ -{}: { - config.ids = { - uids = { - unbound = 10001; +{ lib, ... }: +let + inherit (lib) types; +in +{ + options = { + ids.uids = lib.mkOption { + internal = true; + description = lib.mdDoc '' + The user IDs used in NixOS. + ''; + type = types.attrsOf types.int; }; - gids = { - unbound = 10001; + + ids.gids = lib.mkOption { + internal = true; + description = lib.mdDoc '' + The group IDs used in NixOS. + ''; + type = types.attrsOf types.int; + }; + }; + config = { + ids = { + uids = { + unbound = 10001; + }; + gids = { + unbound = 10001; + }; }; }; }