summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
Diffstat (limited to 'env')
-rw-r--r--env/default.nix6
-rw-r--r--env/users/default.nix25
-rw-r--r--env/users/users.nix1
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.