diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-01-07 00:56:53 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-01-07 00:59:36 -0600 |
| commit | 8902317d7f6d20361d96212a5e41621e90df8b67 (patch) | |
| tree | 56f1af9b763eebd5abd69283fc7cf7c7c607845c /env | |
| parent | e8cf4d176137edc6558bae9b6a5d0a5a1c573fe8 (diff) | |
env/users: move user list out of sys/users.nix
Diffstat (limited to 'env')
| -rw-r--r-- | env/default.nix | 6 | ||||
| -rw-r--r-- | env/users/default.nix | 25 | ||||
| -rw-r--r-- | env/users/users.nix | 1 |
3 files changed, 32 insertions, 0 deletions
diff --git a/env/default.nix b/env/default.nix new file mode 100644 index 0000000..0290518 --- /dev/null +++ b/env/default.nix @@ -0,0 +1,6 @@ +{ lib, ... }: +with lib; { + imports = [ + ./users + ]; +} 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; +} diff --git a/env/users/users.nix b/env/users/users.nix new file mode 100644 index 0000000..1bb3788 --- /dev/null +++ b/env/users/users.nix @@ -0,0 +1 @@ +# This file has been lustrated. |
