Initial commit

This commit is contained in:
2024-07-25 16:56:48 -04:00
commit b94111bc5a
12 changed files with 546 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{ lib, config, pkgs, ... }:
let
cfg = config.main-user;
in
{
options = {
main-user.enable = lib.mkEnableOption "enable user module";
main-user.userName = lib.mkOption {
default = "mbessette";
description = "username";
};
};
config = lib.mkIf cfg.enable {
users.users.${cfg.userName} = {
isNormalUser = true;
initialPassword = "12345";
description = "main user";
shell = pkgs.zsh;
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
};
};
}