🔧 epicurus: configure remote builder
This commit is contained in:
parent
fb409f98ba
commit
bf6612dfb8
@ -5,7 +5,11 @@ let
|
||||
|
||||
in
|
||||
{
|
||||
imports = [ <home-manager/nix-darwin> ./homebrew.nix ];
|
||||
imports = [
|
||||
<home-manager/nix-darwin>
|
||||
./homebrew.nix
|
||||
../../modules/builder
|
||||
];
|
||||
|
||||
# List packages installed in system profile. To search by name, run:
|
||||
# $ nix-env -qaP | grep wget
|
||||
@ -18,6 +22,7 @@ in
|
||||
# Auto upgrade nix package and the daemon service.
|
||||
services.nix-daemon.enable = true;
|
||||
|
||||
users.nix.configureBuildUsers = true;
|
||||
users.users.walkah = {
|
||||
home = "/Users/walkah";
|
||||
shell = pkgs.zsh;
|
||||
@ -46,6 +51,8 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
services.lorri.enable = true;
|
||||
|
||||
programs = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
|
11
modules/builder/default.nix
Normal file
11
modules/builder/default.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
nix.distributedBuilds = true;
|
||||
nix.buildMachines = [{
|
||||
hostName = "plato";
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
maxJobs = 12;
|
||||
speedFactor = 2;
|
||||
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||
}];
|
||||
}
|
Loading…
Reference in New Issue
Block a user