mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 01:18:30 +09:00
Add central Nix builder and binary cache
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{
|
||||
inputs,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
{
|
||||
flake.deploy = {
|
||||
nodes.nix-builder = {
|
||||
hostname = "nix-builder";
|
||||
sshUser = "moons";
|
||||
user = "root";
|
||||
|
||||
interactiveSudo = true;
|
||||
remoteBuild = true;
|
||||
autoRollback = true;
|
||||
magicRollback = true;
|
||||
|
||||
profiles.system.path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.nix-builder;
|
||||
};
|
||||
};
|
||||
|
||||
perSystem =
|
||||
{ system, ... }:
|
||||
{
|
||||
apps.deploy = inputs.deploy-rs.apps.${system}.default;
|
||||
checks = inputs.deploy-rs.lib.${system}.deployChecks self.deploy;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user