fixup: backup secrets

This commit is contained in:
Tim Schubert 2025-07-21 21:25:30 +02:00
parent a45a48cf17
commit 215f4313bd
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -5,6 +5,7 @@
... ...
}: }:
let let
secretsPath = config.dadada.secrets.path;
xilinxJtag = pkgs.writeTextFile { xilinxJtag = pkgs.writeTextFile {
name = "xilinx-jtag"; name = "xilinx-jtag";
text = '' text = ''
@ -48,6 +49,9 @@ in
passphrasePath = config.age.secrets."${config.networking.hostName}-backup-passphrase-gs".path; passphrasePath = config.age.secrets."${config.networking.hostName}-backup-passphrase-gs".path;
}; };
age.secrets."${config.networking.hostName}-backup-passphrase-gs".file =
"${secretsPath}/${config.networking.hostName}-backup-passphrase-gs.age";
nixpkgs.config.android_sdk.accept_license = true; nixpkgs.config.android_sdk.accept_license = true;
programs.ssh.startAgent = true; programs.ssh.startAgent = true;

View file

@ -5,7 +5,6 @@
}: }:
let let
inputs = config.dadada.inputs; inputs = config.dadada.inputs;
secretsPath = config.dadada.secrets.path;
in in
with lib; with lib;
{ {
@ -49,7 +48,4 @@ with lib;
pulse.enable = true; pulse.enable = true;
}; };
services.pulseaudio.enable = false; services.pulseaudio.enable = false;
age.secrets."${config.networking.hostName}-backup-passphrase-gs".file =
"${secretsPath}/${config.networking.hostName}-backup-passphrase-gs.age";
} }