import secrets right
This commit is contained in:
parent
9175694ea4
commit
8b449ec721
2 changed files with 11 additions and 6 deletions
|
|
@ -4,6 +4,10 @@ let
|
|||
cfg = config.nyxs-nix.services.k3s;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./secrets.nix
|
||||
];
|
||||
|
||||
options.nyxs-nix.services.k3s = with types; {
|
||||
enable = mkEnableOption "Enable the vrrp quotes service";
|
||||
|
||||
|
|
@ -15,9 +19,6 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
imports = [
|
||||
./secrets.nix
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
6443 # k3s, api server
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
{ config, ... }:
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.nyxs-nix.services.k3s;
|
||||
in
|
||||
{
|
||||
sops.templates = {
|
||||
sops.templates = mkIf cfg.enable {
|
||||
"authentik-secrets.yaml" = {
|
||||
content = ''
|
||||
apiVersion: v1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue