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";
|
2024-11-11 05:53:17 +00:00
|
|
|
description = lib.mkDefault "Just a normal admin";
|
2024-12-08 03:17:13 +00:00
|
|
|
# groups: wheel => sudo access, dialout => serial access
|
2024-11-11 01:02:55 +00:00
|
|
|
extraGroups = [ "wheel" "networkmanager" "docker" ];
|
|
|
|
packages = with pkgs; [
|
2024-12-08 03:17:13 +00:00
|
|
|
#kdePackages.kate # ... why did I add this?
|
|
|
|
thunderbird # email client
|
|
|
|
keepassxc # passwords!
|
|
|
|
macchina # like *fetch - display basics
|
|
|
|
z-lua # jump around directories (be careful with same-named ones!)
|
2024-11-11 01:02:55 +00:00
|
|
|
logseq # REQUIRES TEMPORARY INSECURE ELECTRON
|
2024-12-08 03:17:13 +00:00
|
|
|
signal-desktop # messaging
|
|
|
|
ddev # local docker dev awesome
|
|
|
|
vscodium # vs code editor, but free
|
|
|
|
# go to 2.17 when no more servers w/python issues (elizabeth)
|
|
|
|
ansible_2_16 # deployment/automation
|
|
|
|
#python311Full # troubleshooting ansible things.
|
|
|
|
#python311Packages.ansible
|
|
|
|
# php added for ansible composer build temporarily
|
|
|
|
# switch to an ansible build environment instead.
|
|
|
|
php81
|
|
|
|
php81Packages.composer
|
|
|
|
php81Packages.composer
|
|
|
|
php81Extensions.zip
|
|
|
|
php81Extensions.xml
|
|
|
|
php81Extensions.dom
|
|
|
|
php81Extensions.bz2
|
|
|
|
php81Extensions.yaml
|
|
|
|
php81Extensions.zlib
|
|
|
|
php81Extensions.zstd
|
|
|
|
php81Extensions.intl
|
|
|
|
php81Extensions.curl
|
|
|
|
php81Extensions.posix
|
2024-11-11 01:02:55 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|