feat: include atm-tui in NixOS ATM deployments
Add atm-tui as a flake input and include it in environment.systemPackages for both live and installed NixOS configs. The TUI will be available as 'atm-tui' on PATH after deployment — no more manual SCP. The binary is pushed to cachix alongside the ATM app, so douro pulls it from the binary cache on upgrade (no local compilation needed). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a21865ff20
commit
2cc0acfdef
2 changed files with 32 additions and 1 deletions
12
flake.nix
12
flake.nix
|
|
@ -23,9 +23,15 @@
|
|||
# Determinate Nix — ensures douro uses same nix version as dev machines
|
||||
# so cachix binary cache hits match (nix 2.33 hashes == nix 2.33 hashes)
|
||||
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/3";
|
||||
|
||||
# ATM TUI — operator management tool
|
||||
atm-tui = {
|
||||
url = "git+ssh://forgejo@git.atitlan.io/aiolabs/atm-tui.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, flake-utils, rust-overlay, devenv, determinate }:
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, flake-utils, rust-overlay, devenv, determinate, atm-tui }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
|
|
@ -71,6 +77,7 @@
|
|||
modules = [
|
||||
./deploy/nixos/live.nix
|
||||
determinate.nixosModules.default
|
||||
{ environment.systemPackages = [ atm-tui.packages.${system}.default ]; }
|
||||
];
|
||||
};
|
||||
|
||||
|
|
@ -101,6 +108,9 @@
|
|||
appDir = "${atm-app}";
|
||||
};
|
||||
|
||||
# Operator TUI for local machine management
|
||||
environment.systemPackages = [ atm-tui.packages.${system}.default ];
|
||||
|
||||
# Electron sandbox needs unprivileged user namespaces
|
||||
boot.kernel.sysctl."kernel.unprivileged_userns_clone" = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue