From 8aa0c19ba696b4938821514122ae60dcaf52c6b3 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Fri, 22 Oct 2021 21:40:39 +0200 Subject: [PATCH] builder: Fix issue NixOS was having --- modules/programs/distributed-build/builder.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/programs/distributed-build/builder.nix b/modules/programs/distributed-build/builder.nix index 6f79b14..0bd4eef 100644 --- a/modules/programs/distributed-build/builder.nix +++ b/modules/programs/distributed-build/builder.nix @@ -6,12 +6,16 @@ nix.trustedUsers = [ "builder" ]; # TODO: Specify a firewall rule to only allow this from my other NixOS machines - users.extraUsers."builder" = { - isSystemUser = true; - useDefaultShell = true; - openssh.authorizedKeys.keys = [ + users = { + groups.builder = {}; + extraUsers."builder" = { + group = "builder"; + isSystemUser = true; + useDefaultShell = true; + openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCYfZ6FF3I7Bc8h1VmRxNDHOL08OffetE4DaOZKgw3ZFYSYub80eGN14jevx4Ie525MptFIYbvO5FUcpXx3d6Dh7AE7WUsGzbvPPCmaRy/wiwn2mpCKWqSC3EVxabPakTfVD2+OWDVUW/LWDb2bK40NegBykxf9Vo7112lBFXD8xcq1p8cyhCaq/vsnWUr/8T5z029ySp5UnzuesqrXpfVwnBVzj7xaZizs3Y0bUxdP6vWQSqrTl9KXUveRt3AL+TG3ny4KESvFzGo4YZQCQ2WgCGWgf8SLeHm8UDp8h7dPWkzmT/y7ZSWKGp2R0VDklsjJQqi91l+NXBmKs/uLTVMVqGTYeO04z2mzwzI7aBLrN7A2n3/SmFHz6gW64BYkWNh6iRaDAnu0CgDM4rWyBD/vrgjlojJv6tmSCA3hNGm2ndRfsjiv49+K9NEAxkiijnf0277KHgPHstzlhFq6hYT9qEbaPtqfbKUeWMhj3FpqTHfNVznOXR6+bsGW7h28uLc= alexander@ayame" "ssh-rsa AAAAB3NzaC1yc2EAAAADA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