mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
30 lines
504 B
Nix
30 lines
504 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.applications.codexDesktop;
|
|
in
|
|
{
|
|
imports = [
|
|
inputs.codex-desktop-linux.nixosModules.default
|
|
];
|
|
|
|
options.my.applications.codexDesktop = {
|
|
enable = lib.mkEnableOption "ChatGPT Desktop for Linux";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
my.applications.codex.enable = true;
|
|
|
|
programs.codexDesktopLinux = {
|
|
enable = true;
|
|
cliPackage = pkgs.llm-agents.codex;
|
|
computerUseUi.enable = true;
|
|
};
|
|
};
|
|
}
|