From 8902317d7f6d20361d96212a5e41621e90df8b67 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 7 Jan 2023 00:56:53 -0600 Subject: env/users: move user list out of sys/users.nix --- env/users/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 env/users/default.nix (limited to 'env/users/default.nix') diff --git a/env/users/default.nix b/env/users/default.nix new file mode 100644 index 0000000..60ee8d8 --- /dev/null +++ b/env/users/default.nix @@ -0,0 +1,25 @@ +{ lib, ... }: +with lib; { + options.local.users = with types; mkOption { + default = { }; + + type = attrsOf (submodule { + options = { + uid = mkOption { + type = int; + }; + + gid = mkOption { + type = int; + }; + + groups = mkOption { + type = listOf str; + default = [ ]; + }; + }; + }); + }; + + config.local.users = import ./users.nix; +} -- cgit v1.2.3