nixos-config/main-user.nix

25 lines
426 B
Nix
Raw Normal View History

2024-11-10 19:52:40 +00:00
{ lib, config, pkgs, ... }:
let
cfg = config.main-user;
in
{
options.main-user = {
enable = lib.mkEnableOption "enable main-user module";
userName = lib.mkOption {
default = "submin";
description = ''
username
'';
}
}
config = lib.mkIf cfg.enable {
users.users.${cfg.userName} = {
isNormalUser = true;
initialPassword = "B@dC0d3MangFIX|T";
description = "Just a normal admin";
};
};
};