nix-conf/modules/user/jopejoe1/default.nix
2023-02-27 16:30:19 +01:00

25 lines
717 B
Nix

{ options, config, pkgs, lib, ... }:
with lib;
#with lib.internal;
let cfg = config.custom.user.jopejoe1;
in
{
options.custom.user.jopejoe1 = with types; {
enable = mkBoolOpt false "Enable the user jopejoe1";
};
config = mkIf cfg.enable {
#custom.user.jopejoe1.home.enable = true;
users.users.jopejoe1 = {
isNormalUser = true;
description = "jopejoe1";
#initialPassword = "password"; 🚫
#openssh.authorizedKeys.keys = [];
extraGroups = [ "wheel"]
++ lib.optionals config.custom.hardware.printing.enable [ "scanner" "lp"]
++ lib.optional config.networking.networkmanager.enable "networkmanger";
packages = with pkgs; [ git kate];
};
};
}