From d94a77d35c39fb297b0cd0d033fbf23617e0c903 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Tue, 4 Jul 2023 15:56:50 +0200 Subject: [PATCH] configure kpp --- flake.nix | 6 +++++- modules/kpp.nix | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 modules/kpp.nix diff --git a/flake.nix b/flake.nix index 04919d3..55f9fbe 100755 --- a/flake.nix +++ b/flake.nix @@ -3,9 +3,11 @@ nixpkgs.url = github:nixos/nixpkgs/nixos-23.05; sops-nix.url = github:Mic92/sops-nix; sops-nix.inputs.nixpkgs.follows = "nixpkgs"; + kpp.url = "github:fsr/kpp"; + kpp.inputs.nixpkgs.follows = "nixpkgs"; # fsr-infoscreen.url = github:fsr/infoscreen; # some anonymous strukturer accidentally removed the flake.nix }; - outputs = { self, nixpkgs, sops-nix, ... }@inputs: + outputs = { self, nixpkgs, sops-nix, kpp, ... }@inputs: { #packages."aarch64-linux".sanddorn = self.nixosConfigurations.sanddorn.config.system.build.sdImage; packages."x86_64-linux".quitte = self.nixosConfigurations.quitte-vm.config.system.build.vm; @@ -36,11 +38,13 @@ system = "x86_64-linux"; modules = [ inputs.sops-nix.nixosModules.sops + inputs.kpp.nixosModules.default ./hosts/quitte/configuration.nix ./modules/options.nix ./modules/base.nix ./modules/sops.nix ./modules/ldap.nix + ./modules/kpp.nix # ./modules/keycloak.nix replaced by portunus ./modules/mail.nix ./modules/mailman.nix diff --git a/modules/kpp.nix b/modules/kpp.nix new file mode 100644 index 0000000..7767711 --- /dev/null +++ b/modules/kpp.nix @@ -0,0 +1,15 @@ +{ config, ... }: +let + domain = "kpp.${config.fsr.domain}"; +in +{ + services.kpp = { + enable = true; + hostName = domain; + }; + services.nginx.virtualHosts."${domain}" = { + enableACME = true; + forceSSL = true; + }; + +}