From e6074bc314c53d56b296312297b42aa5edf2b7d0 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 24 Feb 2023 00:45:34 +0100 Subject: [PATCH] Add peerix --- flake.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/flake.nix b/flake.nix index 97452a3..f3bf109 100644 --- a/flake.nix +++ b/flake.nix @@ -79,6 +79,13 @@ inputs.utils.follows = "flake-utils"; }; + peerix = { + url = github:cid-chan/peerix; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-compat.follows = "flake-compat"; + inputs.flake-utils.follows = "flake-utils"; + }; + # Dependcies flake-compat = { url = github:edolstra/flake-compat; @@ -115,12 +122,20 @@ systems.modules = with inputs; [ home-manager.nixosModules.home-manager nur.nixosModules.nur + peerix.nixosModules.peerix { home-manager = { useGlobalPkgs = true; useUserPackages = true; }; system.stateVersion = "23.05"; + services.peerix = { + enable = true; + openFirewall = true; + privateKeyFile = ./peerix-private; + publicKeyFile = ./peerix-public; + publicKey = "peerix-kami:4DwMEXpwqOWq+fj8gF435FbYGzMkKoMQAUk/0OX0Y0g="; + }; } ];