Fixed conditional

This commit is contained in:
James Patrick 2022-03-24 18:38:01 -04:00
parent 319ebd1240
commit de52515920

View File

@ -15,9 +15,11 @@ in with lib; {
};
};
config = mkIf (cfg.gui.enable || cfg.cli.enable) {
config = mkIf enable {
home-manager.users.james = {
home.packages = with pkgs; [ _1password _1password-gui ];
home.packages = with pkgs;
optionals (cfg.gui.enable) [ _1password-gui ]
++ optionals (cfg.cli.enable) [ _1password ];
};
};
}