feat: add nixos configuration

This commit is contained in:
hhhh hgfh 2026-10-03 13:15:51 +00:00
parent f0ed8873f6
commit 52b53c8069
14 changed files with 272 additions and 2 deletions

View file

@ -0,0 +1,29 @@
{ codexPkgs, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
clang
cmake
codexPkgs.codex
gcc
git
gitui
meson
neovim
ninja
tree-sitter
vim
];
systemd.user.services.codex-background-server = {
description = "Codex background app server";
wantedBy = [ "default.target" ];
unitConfig.ConditionUser = "hhhh";
serviceConfig = {
ExecStart = "/run/current-system/sw/bin/codex app-server --listen unix://";
WorkingDirectory = "%h";
Restart = "on-failure";
RestartSec = 3;
};
};
}