2024-11-11 01:02:55 +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";
|
|
|
|
extraGroups = [ "wheel" "networkmanager" "docker" ];
|
|
|
|
packages = with pkgs; [
|
|
|
|
kdePackages.kate
|
|
|
|
thunderbird
|
|
|
|
keepassxc
|
|
|
|
macchina
|
|
|
|
z-lua
|
|
|
|
logseq # REQUIRES TEMPORARY INSECURE ELECTRON
|
|
|
|
signal-desktop
|
2024-11-11 05:52:53 +00:00
|
|
|
ddev
|
|
|
|
vscodium
|
2024-11-11 01:02:55 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|