nix-conf/modules/user/jopejoe1/default.nix
2023-03-02 13:52:03 +01:00

25 lines
748 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 libsForQt5.ark element-desktop ];
};
};
}