users/jan: add conditions for extra groups

This commit is contained in:
Dmitriy Pleshevskiy 2022-10-10 07:46:24 +03:00
parent 389fe7413f
commit 5ad41a6a08
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -13,8 +13,8 @@ let secrets = import ./secrets.nix; in
isNormalUser = true;
extraGroups = [
"wheel" # Enable sudo for the user.
"networkmanager"
"docker"
(lib.mkIf config.networking.networkmanager.enable "networkmanager")
(lib.mkIf config.virtualisation.docker.enable "docker")
];
shell = pkgs.zsh;
inherit (secrets) initialHashedPassword;