22 lines
721 B
Nix
22 lines
721 B
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: let
|
||
|
cfg = config.lily.users.lily;
|
||
|
# interpolated_secrets = import ../../secrets/interpolated_secrets.nix;
|
||
|
in {
|
||
|
options.lily.users.lily.enable = lib.mkEnableOption "activate user lily";
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
users.users.lily = {
|
||
|
home = "/home/lily";
|
||
|
isNormalUser = true;
|
||
|
# hashedPasswordFile = lib.mkIf config.lily.sops config.sops.secrets."users/lily/hashedPassword".path;
|
||
|
extraGroups = ["wheel" "openrazer" "docker"] ++ lib.optionals config.networking.networkmanager.enable ["networkmanager"];
|
||
|
shell = pkgs.zsh;
|
||
|
};
|
||
|
# sops.secrets."users/lily/hashedPassword" = lib.mkIf config.lily.sops { neededForUsers = true; };
|
||
|
};
|
||
|
}
|