...to be honest, I'm not quite sure this makes ANY sense
This commit is contained in:
parent
3146ba0781
commit
d655642142
6 changed files with 53 additions and 46 deletions
34
hosts/default/main-user.nix
Normal file
34
hosts/default/main-user.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue