Make antigravity-cli optional

Missing from nixos-26.05
This commit is contained in:
2026-07-06 17:05:43 +00:00
parent 7debc16e21
commit d47b6f7d7d
2 changed files with 11 additions and 7 deletions
+8 -6
View File
@@ -9,12 +9,14 @@
home.username = primaryUser;
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
stow
wget
antigravity-cli
yubikey-manager
];
home.packages =
with pkgs;
[
stow
wget
yubikey-manager
]
++ lib.optional (pkgs ? antigravity-cli) antigravity-cli;
home.activation.stowLegacy = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
if [ -d "$HOME/dotfiles/legacy" ]; then
+3 -1
View File
@@ -46,6 +46,8 @@ let
in
{
options.programs.jailed-agy = {
enable = lib.mkEnableOption "jailed-agy wrapper";
extraPackages = lib.mkOption {
type = lib.types.listOf lib.types.package;
default = [ ];
@@ -53,7 +55,7 @@ in
};
};
config = {
config = lib.mkIf config.programs.jailed-agy.enable {
environment.systemPackages = [
(jail "jailed-agy" pkgs.antigravity-cli (
with jail.combinators;