remote builder works
This commit is contained in:
parent
ac1a0e7e42
commit
c545378c35
2 changed files with 10 additions and 8 deletions
|
|
@ -76,6 +76,7 @@
|
||||||
./modules/system/services/openssh.nix
|
./modules/system/services/openssh.nix
|
||||||
# ./modules/system/services/syncthing.nix
|
# ./modules/system/services/syncthing.nix
|
||||||
./modules/system/services/tailscale.nix
|
./modules/system/services/tailscale.nix
|
||||||
|
./modules/system/nix-cli
|
||||||
] #extra modules to be loaded by nixos
|
] #extra modules to be loaded by nixos
|
||||||
[
|
[
|
||||||
hyprland.homeManagerModules.default
|
hyprland.homeManagerModules.default
|
||||||
|
|
|
||||||
|
|
@ -2,22 +2,23 @@
|
||||||
config
|
config
|
||||||
, lib
|
, lib
|
||||||
, pkgs
|
, pkgs
|
||||||
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
# To use this feature add -j0 to any nix commad.
|
# To use this feature add -j0 to any nix commad.
|
||||||
hostName = "bob.local";
|
hostName = "10.18.1.60";
|
||||||
|
pubKey = "bob:cday7vAQb+UWE1gQOAOjqnXB8EdjkBt+/Ife/R0ylUY=";
|
||||||
in {
|
in {
|
||||||
nix = {
|
nix = {
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
settings = {
|
settings = {
|
||||||
trusted-public-keys = lib.mkAfter [
|
trusted-public-keys = lib.mkAfter [
|
||||||
# REMOTE MACHINE PUBLIC KEY WE GENERATE AFTER SETTING UP
|
pubKey
|
||||||
];
|
];
|
||||||
builders-use-substitutes = true;
|
builders-use-substitutes = true;
|
||||||
substituters = lib.mkAfter [
|
# substituters = lib.mkAfter [
|
||||||
"ssh-ng://nix-ssh@{hostname}"
|
# "ssh-ng://nix-ssh@${hostname}"
|
||||||
];
|
# ];
|
||||||
# allowed-users = [
|
# allowed-users = [
|
||||||
# "@wheel"
|
# "@wheel"
|
||||||
# "@builders"
|
# "@builders"
|
||||||
|
|
@ -42,9 +43,9 @@ in {
|
||||||
"kvm"
|
"kvm"
|
||||||
"benchmark"
|
"benchmark"
|
||||||
];
|
];
|
||||||
sshUser = "builder";
|
sshUser = "root";
|
||||||
sshKey = "/root/.ssh/id_ed25519";
|
sshKey = "/root/.ssh/id_ed25519";
|
||||||
# publicHostKey = config.local.keys.gerg-desktop_fingerprint;
|
# publicHostKey =
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue