diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index e1c91fa0..34d51b56 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -110,6 +110,7 @@ security = { age.enable = true; sops.enable = true; + certs.enable = true; }; }; @@ -124,8 +125,6 @@ age.sshKeyPaths = ["/home/sako/.ssh/id_ed25519"]; }; - security.pki.certificateFiles = [./trust/homelab.pem]; - networking.wireguard.interfaces = { }; diff --git a/modules/security/certs/default.nix b/modules/security/certs/default.nix new file mode 100644 index 00000000..1b72a884 --- /dev/null +++ b/modules/security/certs/default.nix @@ -0,0 +1,19 @@ +{ + outputs, + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.modules.security.certs; +in { + options.modules.security.certs = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + security.pki.certificateFiles = [./trust/homelab.pem]; + }; +} diff --git a/modules/security/certs/default.nix~ b/modules/security/certs/default.nix~ new file mode 100644 index 00000000..e69de29b diff --git a/modules/security/certs/trust/homelab.pem b/modules/security/certs/trust/homelab.pem new file mode 100644 index 00000000..cf67031a --- /dev/null +++ b/modules/security/certs/trust/homelab.pem @@ -0,0 +1,22 @@ +-----BEGIN CERTIFICATE----- +MIIDjTCCAnUCFHMHoQwSTvnFMmBpncLHmiB5gITGMA0GCSqGSIb3DQEBCwUAMIGC +MQswCQYDVQQGEwJBRTENMAsGA1UECAwEWm9uZTENMAsGA1UEBwwEaG9tZTERMA8G +A1UECgwIYmFzZW1lbnQxDTALBgNVBAsMBHRydWUxETAPBgNVBAMMCHNha28uYm94 +MSAwHgYJKoZIhvcNAQkBFhFzYWtvQGlzc29jb29sLmNvbTAeFw0yMzA1MTMxNTIx +MzdaFw0yODA1MTExNTIxMzdaMIGCMQswCQYDVQQGEwJBRTENMAsGA1UECAwEWm9u +ZTENMAsGA1UEBwwEaG9tZTERMA8GA1UECgwIYmFzZW1lbnQxDTALBgNVBAsMBHRy +dWUxETAPBgNVBAMMCHNha28u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