feat: add nixos configuration
This commit is contained in:
parent
f0ed8873f6
commit
52b53c8069
14 changed files with 272 additions and 2 deletions
29
nixos/modules/packages/development.nix
Normal file
29
nixos/modules/packages/development.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue