From 14c1b77f91e3c0e3c0d34885254045b89ccccf31 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Fri, 19 Nov 2021 11:39:04 +0100 Subject: [PATCH] added github-runner --- flake.lock | 12 ++++++------ hosts/architect/default.nix | 1 + hosts/architect/githubrunner.nix | 9 +++++++++ hosts/architect/network.nix | 13 ++++++------- hosts/architect/overseerr.nix | 13 +++++++++++++ 5 files changed, 35 insertions(+), 13 deletions(-) create mode 100644 hosts/architect/githubrunner.nix create mode 100644 hosts/architect/overseerr.nix diff --git a/flake.lock b/flake.lock index d0d9a71..f36ebb7 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nixos-unstable": { "locked": { - "lastModified": 1635702959, - "narHash": "sha256-ZKxX9DjJJGJqq20pE4dIj1G4ssCLVXXRFerM6lNuF0k=", + "lastModified": 1636800699, + "narHash": "sha256-SwbyVxXffu3G2ulJIbTf0iQfqhbGbdml4Dyv5j9BiAI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e544ee88fa4590df75e221e645a03fe157a99e5b", + "rev": "2fa862644fc15ecb525eb8cd0a60276f1c340c7c", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1635719588, - "narHash": "sha256-pWjdy0NheM97NsPE6+jUnr5LYyeA0sBGTdw4mfXMGZQ=", + "lastModified": 1636792033, + "narHash": "sha256-5RwKd3+OolhWAPUQG9SNoptr9eks8j2oukKgjAo5NQA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f0869b1a2c0b150aac26e10bb5c2364ffb2e804f", + "rev": "68d4f5970b69b0fd0a95c57c8d0ab4b2b68fb9aa", "type": "github" }, "original": { diff --git a/hosts/architect/default.nix b/hosts/architect/default.nix index 300cd86..4d9b1cb 100644 --- a/hosts/architect/default.nix +++ b/hosts/architect/default.nix @@ -27,6 +27,7 @@ in ./prowlarr.nix ./plex.nix ./transmission.nix + ./githubrunner.nix ]; time.timeZone = "Europe/Rome"; diff --git a/hosts/architect/githubrunner.nix b/hosts/architect/githubrunner.nix new file mode 100644 index 0000000..1ae2e7d --- /dev/null +++ b/hosts/architect/githubrunner.nix @@ -0,0 +1,9 @@ +{ ... }: + +{ + services.github-runner = { + enable = true; + url = "https://github.com/ropfuscator/ropfuscator"; + tokenFile = "/secrets/github-runner/token"; + }; +} diff --git a/hosts/architect/network.nix b/hosts/architect/network.nix index bac9952..709c8d5 100644 --- a/hosts/architect/network.nix +++ b/hosts/architect/network.nix @@ -29,9 +29,7 @@ rec { peppiniell-wg = "10.3.0.10"; padulino-wg = "10.3.0.11"; shield-wg = "10.3.0.12"; - angelino-wg = "10.3.0.13"; - pepos_one-wg = "10.3.0.14"; - pepos_two-wg = "10.3.0.15"; + pepos-wg = "10.3.0.15"; salvatore-wg = "10.3.0.16"; papa-wg = "10.3.0.17"; defy-wg = "10.3.0.18"; @@ -45,18 +43,19 @@ rec { mikeylaptop-wg = "10.3.0.26"; andrewdesktop-wg = "10.3.0.27"; jacopo-wg = "10.3.0.28"; + frznn-wg = "10.3.0.29"; eleonora-wg = "10.3.0.100"; angellane-wg = "10.3.0.200"; hotpottino-wg = "10.3.0.201"; dodino-wg = "10.3.0.202"; - boogino-wg = "10.3.0.203"; + wolfsonhouse-wg = "10.3.0.203"; # groups - gdevices-wg = [ galuminum-wg oneplus-wg ipad-wg gbeast-wg peppiniell-wg padulino-wg angelino-wg ]; - routers-wg = [ hotpottino-wg angellane-wg dodino-wg ]; + gdevices-wg = [ galuminum-wg oneplus-wg ipad-wg gbeast-wg peppiniell-wg padulino-wg ]; + routers-wg = [ hotpottino-wg angellane-wg dodino-wg wolfsonhouse-wg ]; c2c-wg = [ ] ++ gdevices-wg; towan-wg = [ shield-wg parisaphone-wg parisapc-wg ] ++ gdevices-wg ++ routers-wg; - gamenet-wg = [ andrew-wg galuminum-wg gbeast-wg mikey-wg andrewdesktop-wg mikeylaptop-wg ]; + gamenet-wg = [ andrew-wg galuminum-wg gbeast-wg mikey-wg andrewdesktop-wg mikeylaptop-wg flavio-wg salvatore-wg ]; # domains sonarrdomain = "htson.giugl.io"; diff --git a/hosts/architect/overseerr.nix b/hosts/architect/overseerr.nix new file mode 100644 index 0000000..08fa25b --- /dev/null +++ b/hosts/architect/overseerr.nix @@ -0,0 +1,13 @@ +{...}: + +{ + virtualisation.oci-containers.containers."overseerr" = { + image = "sctx/overseerr:latest"; + volumes = [ "/var/lib/overseerr:/app/config" ]; + environment = { + "LOG_LEVEL" = "debug"; + "TZ" = "Europe/Rome"; + }; + #ports = [ "5055:5055" ]; + }; +}