Allow Clubs and Socs to have accounts again #49
1 changed files with 12 additions and 6 deletions
18
flake.nix
18
flake.nix
|
@ -54,12 +54,13 @@
|
||||||
SSH_ROOT = "skynet_old";
|
SSH_ROOT = "skynet_old";
|
||||||
|
|
||||||
# special categories of users
|
# special categories of users
|
||||||
USERS_ADMIN = lib.strings.concatStringsSep "," cfg.users.admin;
|
USERS_ADMIN = lib.strings.concatStringsSep "," cfg.users.admin;
|
||||||
USERS_COMMITTEE = lib.strings.concatStringsSep "," cfg.users.committee;
|
USERS_COMMITTEE = lib.strings.concatStringsSep "," cfg.users.committee;
|
||||||
USERS_TRAINEE = lib.strings.concatStringsSep "," cfg.users.trainee;
|
USERS_TRAINEE = lib.strings.concatStringsSep "," cfg.users.trainee;
|
||||||
USERS_LIFETIME = lib.strings.concatStringsSep "," cfg.users.lifetime;
|
USERS_LIFETIME = lib.strings.concatStringsSep "," cfg.users.lifetime;
|
||||||
USERS_BANNED = lib.strings.concatStringsSep "," cfg.users.banned;
|
USERS_BANNED = lib.strings.concatStringsSep "," cfg.users.banned;
|
||||||
USERS_RESTRICTED = lib.strings.concatStringsSep "," cfg.users.restricted;
|
USERS_RESTRICTED = lib.strings.concatStringsSep "," cfg.users.restricted;
|
||||||
|
USERS_CLUBS_SOCIETIES = lib.strings.concatStringsSep "," cfg.users.clubs_societies;
|
||||||
};
|
};
|
||||||
|
|
||||||
service_name = script: lib.strings.sanitizeDerivationName("${cfg.user}@${script}");
|
service_name = script: lib.strings.sanitizeDerivationName("${cfg.user}@${script}");
|
||||||
|
@ -162,6 +163,11 @@
|
||||||
default = [];
|
default = [];
|
||||||
description = "array of restricted user accounts";
|
description = "array of restricted user accounts";
|
||||||
};
|
};
|
||||||
|
clubs_societies = mkOption rec {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [];
|
||||||
|
description = "array of accounts for Clubs and Societies";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
host_port = mkOption rec {
|
host_port = mkOption rec {
|
||||||
|
|
Loading…
Reference in a new issue