Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/94605dcadefeaff6b35c8931c9f38e4f4dc7ad0a' (2025-03-20) → 'github:nix-community/home-manager/717030011980e9eb31eb8ce011261dd532bce92c' (2025-03-30) • Updated input 'lix-module': 'b90bf629bb
.tar.gz?narHash=sha256-YMLrcBpf0TR5r/eaqm8lxzFPap2TxCor0ZGcK3a7%2Bb8%3D&rev=b90bf629bbd835e61f1317b99e12f8c831017006' (2025-01-18) → '868d97695b
.tar.gz?narHash=sha256-fprwZKE1uMzO9tiWWOrmLWBW3GPkMayQfb0xOvVFIno%3D&rev=868d97695bab9d21f6070b03957bcace249fbe3c' (2025-03-25) • Updated input 'lix-module/lix': '2837da71ec
.tar.gz?narHash=sha256-CCKIAE84dzkrnlxJCKFyffAxP3yfsOAbdvydUGqq24g%3D&rev=2837da71ec1588c1187d2e554719b15904a46c8b' (2025-01-18) → '079528098f
.tar.gz?narHash=sha256-pgDJZjj4jpzkFxsqBTI/9Yb0n3gW%2BDvDtuv9SwQZZcs%3D&rev=079528098f5998ba13c88821a2eca1005c1695de' (2025-01-18) • Updated input 'nix-darwin': 'github:LnL7/nix-darwin/2d9b63316926aa130a5a51136d93b9be28808f26' (2025-03-19) → 'github:LnL7/nix-darwin/53d0f0ed11487a4476741fde757d0feabef4cc4e' (2025-03-29) • Updated input 'nix-index-database': 'github:nix-community/nix-index-database/2cfb4e1ca32f59dd2811d7a6dd5d4d1225f0955c' (2025-03-17) → 'github:nix-community/nix-index-database/b3696bfb6c24aa61428839a99e8b40c53ac3a82d' (2025-03-30) • Updated input 'nix-vscode-extensions': 'github:nix-community/nix-vscode-extensions/fee770e654c49d69aacbdaf291c8af819a67bb35' (2025-03-20) → 'github:nix-community/nix-vscode-extensions/67cb5eb0efdeeb23a5635a6f41069d577a66f754' (2025-03-30) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/3549532663732bfd89993204d40543e9edaec4f2' (2025-03-18) → 'github:nixos/nixpkgs/6c5963357f3c1c840201eda129a99d455074db04' (2025-03-27) • Updated input 'nixpkgs-stable': 'github:nixos/nixpkgs/6c8e4e4546146ddf05e9433ca560fa6260d00a14' (2025-03-18) → 'github:nixos/nixpkgs/453afb364c2283e67601d88de7f80132e7322eb7' (2025-03-28)
87 lines
2.0 KiB
Nix
87 lines
2.0 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
nixSettings = {
|
|
connect-timeout = 60;
|
|
download-attempts = 10;
|
|
cores = 4;
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
fallback = true;
|
|
keep-outputs = true;
|
|
keep-going = true;
|
|
log-lines = 25;
|
|
max-jobs = 5;
|
|
};
|
|
in
|
|
{
|
|
ids.gids.nixbld = 350;
|
|
nix = {
|
|
enable = true;
|
|
package = pkgs.lix;
|
|
extraOptions = ''
|
|
keep-outputs = true
|
|
keep-derivations = true
|
|
'';
|
|
optimise.automatic = true;
|
|
settings = nixSettings // {
|
|
max-free = 1000000000;
|
|
min-free = 128000000;
|
|
warn-dirty = false;
|
|
trusted-users = [ "@admin" ];
|
|
trusted-substituters = [
|
|
"https://cache.nixos.org"
|
|
"https://nix-community.cachix.org"
|
|
"https://cache.lix.systems"
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
|
];
|
|
};
|
|
distributedBuilds = true;
|
|
linux-builder = {
|
|
enable = true;
|
|
package = pkgs.darwin.linux-builder-x86_64;
|
|
systems = [ "x86_64-linux" ];
|
|
ephemeral = true;
|
|
maxJobs = 5;
|
|
config = (
|
|
{ pkgs, ... }:
|
|
{
|
|
users.extraGroups.docker.members = builtins.map (i: "nixbld" + builtins.toString i) (
|
|
pkgs.lib.genList (i: i + 1) 32
|
|
);
|
|
virtualisation = {
|
|
docker.enable = true;
|
|
darwin-builder = {
|
|
diskSize = 50 * 1024;
|
|
memorySize = 8 * 1024;
|
|
};
|
|
cores = 8;
|
|
};
|
|
nix.package = pkgs.lix;
|
|
nix.settings = nixSettings // {
|
|
sandbox = false;
|
|
trusted-users = [ "builder" ];
|
|
};
|
|
nixpkgs.config.allowUnfree = true;
|
|
environment.systemPackages = [ pkgs.htop ];
|
|
}
|
|
);
|
|
};
|
|
};
|
|
nixpkgs = {
|
|
hostPlatform = "aarch64-darwin";
|
|
config.allowUnfree = true;
|
|
};
|
|
}
|