mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-08 18:26:56 +01:00
25 lines
748 B
Nix
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 ];
|
|
};
|
|
};
|
|
}
|