Make antigravity-cli optional
Missing from nixos-26.05
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user