From 9894536b34337585e892b65d1b26cab20f25779e Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Mon, 22 Jul 2024 20:01:02 -0400 Subject: [PATCH] aly: move secrets to secrets.nix --- homes/aly/default.nix | 1 + homes/aly/mail/default.nix | 5 ----- homes/aly/secrets.nix | 6 ++++++ 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 homes/aly/secrets.nix diff --git a/homes/aly/default.nix b/homes/aly/default.nix index 0209164c..73471165 100644 --- a/homes/aly/default.nix +++ b/homes/aly/default.nix @@ -11,6 +11,7 @@ in { imports = [ ./firefox ./mail + ./secrets.nix ./windowManagers self.homeManagerModules.default self.inputs.agenix.homeManagerModules.default diff --git a/homes/aly/mail/default.nix b/homes/aly/mail/default.nix index 197c9951..4058b4cb 100644 --- a/homes/aly/mail/default.nix +++ b/homes/aly/mail/default.nix @@ -6,11 +6,6 @@ }: let mkPassword = secret: "${lib.getExe' pkgs.coreutils "cat"} ${secret}"; in { - age.secrets = { - achacegaGmail.file = ../../../secrets/mail/achacega_gmail.age; - alyraffaufFastmail.file = ../../../secrets/mail/alyraffauf_fastmail.age; - }; - accounts.email.accounts = { "alyraffauf@fastmail.com" = { address = "alyraffauf@fastmail.com"; diff --git a/homes/aly/secrets.nix b/homes/aly/secrets.nix new file mode 100644 index 00000000..fcb8a41c --- /dev/null +++ b/homes/aly/secrets.nix @@ -0,0 +1,6 @@ +{ + age.secrets = { + achacegaGmail.file = ../../secrets/mail/achacega_gmail.age; + alyraffaufFastmail.file = ../../secrets/mail/alyraffauf_fastmail.age; + }; +}