From 70c1648caf799b2ff1b22a3a717413bbb1aa88f0 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Tue, 15 Jul 2025 16:56:00 +0700 Subject: [PATCH] clanServices: users -> remove isNormalUser option, set automatically nix fmt --- clanServices/users/default.nix | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/clanServices/users/default.nix b/clanServices/users/default.nix index f40be3d1c..f70efb513 100644 --- a/clanServices/users/default.nix +++ b/clanServices/users/default.nix @@ -11,7 +11,7 @@ roles.default = { interface = - { config, lib, ... }: + { lib, ... }: { options = { user = lib.mkOption { @@ -37,23 +37,6 @@ - `clan vars get ` ''; }; - regularUser = lib.mkOption { - type = lib.types.bool; - default = config.user != "root"; - defaultText = lib.literalExpression "config.user != \"root\""; - example = false; - description = '' - Whether the user should be a regular user or a system user. - - Regular users are normal users that can log in and have a home directory. - - System users are used for system services and do not have a home directory. - - !!! Warning - `root` cannot be a regular user. - You must set this to `false` for `root` - ''; - }; groups = lib.mkOption { type = lib.types.listOf lib.types.str; default = [ ]; @@ -91,7 +74,7 @@ }: { users.users.${settings.user} = { - isNormalUser = settings.regularUser; + isNormalUser = if settings.user == "root" then false else true; extraGroups = settings.groups; hashedPasswordFile =