mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
replace Codex Desktop with ChatGPT
This commit is contained in:
@@ -1,10 +1,5 @@
|
|||||||
{ inputs, ... }:
|
_: {
|
||||||
{
|
|
||||||
description = "Codex Desktop for Linux";
|
description = "Codex Desktop for Linux";
|
||||||
|
|
||||||
includes = [ "applications.codex" ];
|
includes = [ "applications.codex" ];
|
||||||
|
|
||||||
imports.nixos = [
|
|
||||||
inputs.codex-desktop-linux.nixosModules.default
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,38 +3,8 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
system = pkgs.stdenv.hostPlatform.system;
|
|
||||||
desktopPackage = inputs.codex-desktop-linux.packages.${system}.codex-desktop.override {
|
|
||||||
enableComputerUseUi = false;
|
|
||||||
linuxFeatureIds = [
|
|
||||||
"appshots"
|
|
||||||
"open-target-discovery"
|
|
||||||
"remote-mobile-control"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
bundledCodex = pkgs.writeShellScriptBin "codex" ''
|
|
||||||
exec ${desktopPackage}/opt/codex-desktop/resources/codex "$@"
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.bubblewrap
|
inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.chatgpt
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.codexDesktopLinux = {
|
|
||||||
enable = true;
|
|
||||||
package = desktopPackage;
|
|
||||||
cliPackage = bundledCodex;
|
|
||||||
remoteControl = {
|
|
||||||
enable = true;
|
|
||||||
package = bundledCodex;
|
|
||||||
};
|
|
||||||
remoteMobileControl.enable = true;
|
|
||||||
computerUseUi.enable = false;
|
|
||||||
linuxFeatures = [
|
|
||||||
"appshots"
|
|
||||||
"open-target-discovery"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ in
|
|||||||
"google-chrome"
|
"google-chrome"
|
||||||
"code"
|
"code"
|
||||||
"dev.zed.Zed"
|
"dev.zed.Zed"
|
||||||
"codex-desktop"
|
"chatgpt"
|
||||||
"vesktop"
|
"vesktop"
|
||||||
];
|
];
|
||||||
show_all_outputs = true;
|
show_all_outputs = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user