add home-manager
This commit is contained in:
@ -1,5 +1,14 @@
|
||||
{ lib, config, pkgs, userName, pubKeys }:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
name,
|
||||
pubKeys ? [],
|
||||
defaultShell ? "zsh",
|
||||
}:
|
||||
|
||||
{
|
||||
inherit name;
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
extraGroups = [
|
||||
@ -8,14 +17,12 @@
|
||||
(lib.mkIf config.networking.networkmanager.enable "networkmanager")
|
||||
(lib.mkIf config.programs.adb.enable "adbusers")
|
||||
(lib.mkIf config.programs.wireshark.enable "wireshark")
|
||||
(lib.mkIf config.programs.virtualisation.docker.enable "docker")
|
||||
(lib.mkIf config.virtualisation.docker.enable "docker")
|
||||
"libvirtd"
|
||||
"dialout"
|
||||
"plugdev"
|
||||
"uaccess"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
openssh.authorizedKeys.keys = [
|
||||
(lib.mkIf (pubKeys ? ${config.networking.hostName}) pubKeys.${config.networking.hostName})
|
||||
];
|
||||
shell = pkgs.${defaultShell};
|
||||
openssh.authorizedKeys.keys = pubKeys;
|
||||
}
|
Reference in New Issue
Block a user