mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-10 08:35:57 +08:00
remote builder janitor
This commit is contained in:
parent
4697a3c154
commit
3a116c299e
4 changed files with 8 additions and 10 deletions
|
|
@ -17,6 +17,10 @@ in
|
|||
home-manager.sharedModules = [
|
||||
"${homeMod}/all/vira.nix"
|
||||
# (self + /modules/home/all/dropbox.nix)
|
||||
|
||||
# Remote builders
|
||||
"${homeMod}/all/buildMachines"
|
||||
"${homeMod}/all/buildMachines/sincereintent.nix"
|
||||
];
|
||||
|
||||
nix.settings.sandbox = "relaxed";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
nix = {
|
||||
package = pkgs.nix;
|
||||
package = lib.mkDefault pkgs.nix;
|
||||
enable = true;
|
||||
distributedBuilds = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@
|
|||
mandatoryFeatures = [ ];
|
||||
|
||||
# We need this!
|
||||
sshKey = "/home/srid/.ssh/id_ed25519";
|
||||
sshKey = "/home/srid/.ssh/nix-remote-builder";
|
||||
|
||||
# This too!
|
||||
# Run on the remote machine:
|
||||
# nix run nixpkgs#base64 -w0 /etc/ssh/ssh_host_ed25519_key.pub
|
||||
# , base64 -w0 /etc/ssh/ssh_host_ed25519_key.pub
|
||||
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSU82S2Q2OG5LdFlqNVhTaWgveVlteE96M2o0WUdMUGQxUTE1cTF0dUdsZWUgCg==";
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Nix configuration is managed globally by nix-darwin.
|
||||
# Prevent $HOME nix.conf from disrespecting it.
|
||||
home.file.".config/nix/nix.conf".text = "";
|
||||
|
||||
# Global session path for all shells
|
||||
# Normally, we do this on macOS only. And it is not necessary on NixOS. Yet,
|
||||
# non-NixOS Linux will need it (when using the official Nix installer).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue