mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-20 03:34:07 +02:00
30 lines
769 B
Nix
30 lines
769 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; [
|
|
kate
|
|
carla
|
|
xdg-ninja
|
|
ark
|
|
];
|
|
};
|
|
};
|
|
}
|