From 724594d19a239f837bbe80588f51aceeb8757e12 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Fri, 14 Jul 2023 21:19:01 -0500 Subject: [PATCH] chore: update secrets Signed-off-by: jolheiser --- flake.nix | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/flake.nix b/flake.nix index c5f166c..5fc780e 100644 --- a/flake.nix +++ b/flake.nix @@ -37,7 +37,12 @@ config, pkgs, ... - }: { + }: let + userSecret = path: { + file = path; + owner = username; + }; + in { config = { nixpkgs.overlays = [overlays]; home-manager = { @@ -49,18 +54,9 @@ }; }; age.secrets = { - ssh-config = { - file = ./secrets/shared/ssh-config.age; - owner = username; - }; - ssh-config-work = { - file = ./secrets/shared/ssh-config-work.age; - owner = username; - }; - spotify-pw = { - file = ./secrets/shared/spotify-pw.age; - owner = username; - }; + ssh-config = userSecret ./secrets/shared/ssh-config.age; + ssh-config-work = userSecret ./secrets/shared/ssh-config-work.age; + spotify-pw = userSecret ./secrets/shared/spotify-pw.age; }; }; };