mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-27 14:42:35 -05:00
migrate secrets to new structure
This commit is contained in:
parent
957225dd0d
commit
ca8a707ae2
7 changed files with 124 additions and 96 deletions
|
|
@ -3,11 +3,13 @@ let
|
|||
in
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
sopsFolder = builtins.toString inputs.nix-secrets + "/sops";
|
||||
frigateConfig = pkgs.writeText "config.yaml" (
|
||||
lib.generators.toYAML { } {
|
||||
auth.reset_admin_password = true; # roll the admin password every restart, depend on user accounts for long-lived access
|
||||
|
|
@ -200,7 +202,9 @@ in
|
|||
FRIGATE_JWT_SECRET=${config.sops.placeholder."frigate/jwt"}
|
||||
'';
|
||||
secrets = {
|
||||
"frigate/jwt" = { };
|
||||
"frigate/jwt" = {
|
||||
sopsFile = "${sopsFolder}/services.yaml";
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue