From 75234938904e78d3bead534672056b92866313fd Mon Sep 17 00:00:00 2001 From: dadada Date: Fri, 3 Feb 2023 19:26:10 +0100 Subject: [PATCH] move GS backup client config --- nixos/modules/profiles/backup.nix | 6 ------ nixos/modules/profiles/laptop.nix | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/nixos/modules/profiles/backup.nix b/nixos/modules/profiles/backup.nix index dc57f96..88dfab5 100644 --- a/nixos/modules/profiles/backup.nix +++ b/nixos/modules/profiles/backup.nix @@ -9,12 +9,6 @@ in sshIdentityFile = config.age.secrets."${config.networking.hostName}-backup-ssh-key".path; }; - dadada.backupClient.gs = { - enable = true; - passphrasePath = config.age.secrets."${config.networking.hostName}-backup-passphrase-gs".path; - }; - age.secrets."${config.networking.hostName}-backup-passphrase".file = "${secretsPath}/${config.networking.hostName}-backup-passphrase.age"; - age.secrets."${config.networking.hostName}-backup-passphrase-gs".file = "${secretsPath}/${config.networking.hostName}-backup-passphrase-gs.age"; age.secrets."${config.networking.hostName}-backup-ssh-key".file = "${secretsPath}/${config.networking.hostName}-backup-ssh-key.age"; } diff --git a/nixos/modules/profiles/laptop.nix b/nixos/modules/profiles/laptop.nix index 07e93b6..b7264cd 100644 --- a/nixos/modules/profiles/laptop.nix +++ b/nixos/modules/profiles/laptop.nix @@ -72,4 +72,11 @@ with lib; { pulse.enable = true; }; hardware.pulseaudio.enable = false; + + dadada.backupClient.gs = { + enable = true; + 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"; }