Skip to content

Commit

Permalink
[carcosa] Create a user to execute remote builds
Browse files Browse the repository at this point in the history
This is so I can downsize yuggoth, as it doesn't really need to be big
enough to compile bookdb & bookmarks
  • Loading branch information
barrucadu committed Dec 11, 2024
1 parent 28a4e4f commit 24ea2f1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hosts/carcosa/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,21 @@ in
nixfiles.bookmarks.remoteSync.receive.authorizedKeys =
[ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIChVw9DPLafA3lCLCI4Df9rYuxedFQTXAwDOOHUfZ0Ac remote-sync@nyarlathotep" ];


###############################################################################
## Remote Builds
###############################################################################

users.extraUsers.nix-remote-builder = {
home = "/var/lib/nix-remote-builder";
createHome = true;
isSystemUser = true;
shell = pkgs.bashInteractive;
group = "nogroup";
};
nix.settings.trusted-users = [ config.users.extraUsers.nix-remote-builder.name ];


###############################################################################
## Miscellaneous
###############################################################################
Expand Down

0 comments on commit 24ea2f1

Please sign in to comment.