summaryrefslogtreecommitdiff
path: root/hosts/p-body/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-24 06:53:12 -0400
committerseth <[email protected]>2023-05-24 06:53:12 -0400
commit632052e752becd11408ae909b8e70956cd259d64 (patch)
treeb6d94b19b8a9bfa1d2504dd1db0356d500ce54d6 /hosts/p-body/default.nix
parent7be1973f71ba26c667ebd09b9d007815bb2fd1f3 (diff)
atlas/p-body: enable github auth for wheel users
Diffstat (limited to 'hosts/p-body/default.nix')
-rw-r--r--hosts/p-body/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/hosts/p-body/default.nix b/hosts/p-body/default.nix
index e303e36..e4368b4 100644
--- a/hosts/p-body/default.nix
+++ b/hosts/p-body/default.nix
@@ -3,6 +3,7 @@
guzzle_api,
modulesPath,
pkgs,
+ self,
...
}: {
imports = [
@@ -25,6 +26,13 @@
hermetic = false;
};
+ age.secrets.authGH = {
+ file = "${self}/secrets/hosts/${config.networking.hostName}/authGH.age";
+ mode = "440";
+ owner = config.users.users.root.name;
+ inherit (config.users.users.hydra) group;
+ };
+
getchoo.server.secrets.enable = true;
networking = {
@@ -32,6 +40,10 @@
hostName = "p-body";
};
+ nix.extraOptions = ''
+ !include ${config.age.secrets.authGH.path}
+ '';
+
services = {
guzzle-api = {
enable = true;