aboutsummaryrefslogtreecommitdiff
path: root/modules/user/options.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/options.nix')
-rw-r--r--modules/user/options.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/user/options.nix b/modules/user/options.nix
new file mode 100644
index 0000000..f5c7a5f
--- /dev/null
+++ b/modules/user/options.nix
@@ -0,0 +1,23 @@
+{
+ config,
+ lib,
+ ...
+}: let
+ inherit (lib) mkOption types;
+in {
+ options = {
+ collinux.user = {
+ name = mkOption {
+ type = types.str;
+ };
+ password = mkOption {
+ type = types.str;
+ description = "hashed password for user";
+ };
+ isAdmin = mkOption {
+ type = types.bool;
+ default = true;
+ };
+ };
+ };
+}