feat: add nix configs for data collections

lean
htran 2023-07-08 20:43:20 -07:00
parent 5b61ab39f9
commit 22a78899ed
1 changed files with 27 additions and 0 deletions

27
nix/repo/nixConfig.nix Normal file
View File

@ -0,0 +1,27 @@
{inputs, cell}: let
# decorator for now, for data collecting :)
nix-conf = a: a;
in {
"htran@mbp" = nix-conf ''
accept-flake-config = true
experimental-features = nix-command flakes
post-build-hook = /etc/nix/upload-to-cache.sh
trusted-users = root htran hungtran hwtr
max-jobs = 8
cores = 12
# default is true for Linux, false for every one else
# https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-sandbox
sandbox = true
'';
"hungtran@mba-m2" = nix-conf ''
accept-flake-config = true
experimental-features = nix-command flakes
post-build-hook = /etc/nix/upload-to-cache.sh
trusted-users = root htran hungtran hwtr
max-jobs = 7
cores = 8
# default is true for Linux, false for every one else
# https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-sandbox
sandbox = true
'';
}