From 51ba0ae296f4a04fa4258b7636056708faf035b3 Mon Sep 17 00:00:00 2001 From: Emelie Graven Date: Thu, 18 Nov 2021 16:13:10 +0100 Subject: [PATCH] Add user for automatic drone deployments of nix aalborg website --- config/hosts/wind/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/hosts/wind/configuration.nix b/config/hosts/wind/configuration.nix index 4645a59..c86d71a 100644 --- a/config/hosts/wind/configuration.nix +++ b/config/hosts/wind/configuration.nix @@ -40,6 +40,14 @@ ]; }; + users.users.deploy = { + isNormalUser = true; + extraGroups = [ "nginx" ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILk4m1uJzxd7pDmMZgnZxqD6lEIfVPf+I4tKPo0jJJrK deploy@drone.data.coop" + ]; + }; + security.sudo.wheelNeedsPassword = false; environment.systemPackages = with pkgs; [