added env and used env in config for more robust builds

This commit is contained in:
2026-10-20 11:51:56 -04:00
parent 863b47e663
commit 9a2a269984
4 changed files with 32 additions and 18 deletions

View File

@@ -1,18 +1,23 @@
{ config, pkgs, ... }:
let
system = builtins.getEnv "SYSTEM_ARCH";
stateVersion = builtins.getEnv "SYSTEM_STATE_VERSION";
primaryUser = builtins.getEnv "SYSTEM_PRIMARY_USER";
in
{
imports = [
./cli-tools.nix
];
nixpkgs.hostPlatform = "aarch64-darwin";
nixpkgs.hostPlatform = system;
nix.enable = false;
nix.settings.experimental-features = "nix-command flakes";
system.stateVersion = 6;
system.primaryUser = "briannelson";
system.stateVersion = stateVersion;
system.primaryUser = primaryUser;
environment.systemPackages = with pkgs; [
ffmpeg