2024-08-02 21:55:48 +00:00
|
|
|
{ config, lib, ... }:
|
2024-05-17 00:08:57 +00:00
|
|
|
{
|
|
|
|
# Give root user access to run remote builds
|
|
|
|
home-manager.users.root = {
|
|
|
|
home.stateVersion = "24.05";
|
2024-10-02 14:45:56 +00:00
|
|
|
programs = {
|
|
|
|
ssh = lib.mkIf config.nix.distributedBuilds {
|
|
|
|
enable = true;
|
|
|
|
matchBlocks = config.secrets.users.root.sshConfig;
|
|
|
|
};
|
|
|
|
git.extraConfig = {
|
|
|
|
safe.directory = "${config.secrets.nixConfigFolder}/.git";
|
|
|
|
};
|
2024-05-17 00:08:57 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|