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/default.nix | 6 ++++++ env/users/default.nix | 25 +++++++++++++++++++++++++ env/users/users.nix | 1 + 3 files changed, 32 insertions(+) create mode 100644 env/default.nix create mode 100644 env/users/default.nix create mode 100644 env/users/users.nix (limited to 'env') 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. -- cgit v1.2.3