From 698fab3921e856477c4c612b018171a2d3f20f03 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Fri, 9 Aug 2024 19:17:04 +0200 Subject: [PATCH] nix: set up remote builds --- hosts/nemo/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hosts/nemo/default.nix b/hosts/nemo/default.nix index dc4024d..66a7bc3 100644 --- a/hosts/nemo/default.nix +++ b/hosts/nemo/default.nix @@ -188,5 +188,22 @@ ]; }; + users.users.nixremote = { + name = "nixremote"; + isSystemUser = true; + shell = pkgs.bashInteractive; + group = "nixremote"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEJjhHem/l3p/79Rqo3Wtk9ksxmt7Q/pkRdnXiNzP4Cf" + ]; + }; + users.groups.nixremote = { }; + + nix.settings.trusted-users = [ + "dln" + "lsjostro" + "nixremote" + ]; + system.stateVersion = "24.05"; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion }