···1414 mkOption
1515 mkIf
1616 ;
1717- inherit (self.lib) filesystem;
1717+ inherit (self.lib) filesystem options;
18181919 # The identifier of the current system type, e.g. "x86_64-linux" or "aarch64-darwin"
2020 system = pkgs.stdenv.hostPlatform.system;
···2323 userSubmodule = types.submodule {
2424 options = {
2525 enable = mkEnableOption "this user.";
2626- isNormalUser = self.lib.mkBool true "Whether this user is considered a normal user.";
2727- isSystemUser = self.lib.mkBool false "Whether this user is considered a system user.";
2626+ isNormalUser = options.mkBool true "Whether this user is considered a normal user.";
2727+ isSystemUser = options.mkBool false "Whether this user is considered a system user.";
2828 initialPassword =
2929- self.lib.mkOpt (types.nullOr types.str) null
2929+ options.mkOpt (types.nullOr types.str) null
3030 "Plaintext insecure initial user password, generally not recommended.";
3131 password =
3232- self.lib.mkOpt (types.nullOr types.str) null
3232+ options.mkOpt (types.nullOr types.str) null
3333 "Plaintext insecure user password, generally not recommended.";
3434 hashedPasswordFile =
3535- self.lib.mkOpt (types.nullOr types.str) null
3535+ options.mkOpt (types.nullOr types.str) null
3636 "Secure, hashed user password stored in a separate file, recommended for production.";
3737 hashedPassword =
3838- self.lib.mkOpt (types.nullOr types.str) null
3838+ options.mkOpt (types.nullOr types.str) null
3939 "Hashed password, stored in plaintext, generally not recommended.";
4040 extraGroups =
4141- self.lib.mkOpt (types.listOf types.str) [ ]
4141+ options.mkOpt (types.listOf types.str) [ ]
4242 "List of additional groups this user belongs to.";
4343 };
4444 };