summaryrefslogtreecommitdiff
path: root/env/users
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-01-07 00:56:53 -0600
committerAlejandro Soto <alejandro@34project.org>2023-01-07 00:59:36 -0600
commit8902317d7f6d20361d96212a5e41621e90df8b67 (patch)
tree56f1af9b763eebd5abd69283fc7cf7c7c607845c /env/users
parente8cf4d176137edc6558bae9b6a5d0a5a1c573fe8 (diff)
env/users: move user list out of sys/users.nix
Diffstat (limited to 'env/users')
-rw-r--r--env/users/default.nix25
-rw-r--r--env/users/users.nix1
2 files changed, 26 insertions, 0 deletions
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.