Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
chore: update secrets Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmSyAhUACgkQuFOtpdp7 v3pEkA/+L7YA72tFCLX1+siCo7EvRFkTo/lqxtXm0ragwt5a0m45i5evlaz4Gq24 EpFZSO6Aj7+KkiwalJk9ObdedHFPqxkKbETZBbT1G0h+in2dBUuyA8EOPRNFChh2 I+P3ZLOOl1I2YUHqL7E5KlFIYF/SUCsbAnflaCXg8lXmbpRCJ2goZ5eQb0MxRtpM jyp2snT9Mpb1R3gLxsTD3iGA/07GX5fIIuyRbsGxKPCtzH+MI50UxGHHAQc9Dal+ WbuQpdE5nH+tXtBa/EUhHccJRIh5v427JsUsCQvcvQT1eNjc5LzM45NEoUDHA+Zf Hga9sqCeykTUYm+iCA3W9WHEgweQtV3KTp4VYJkCCYHSTwmaETe94qu6CsdOdE0n lEvokfQBOxxLazm1CuX9nKFF9aRbM9gDxHMmfZMohYTW+hfvWTQPvM6TGIHPyqKA TLccDwGG0/JqDgzVHNsyrbwwe19JozHhPjC+nSDewe+/oaoSqeeJyqxl1mnxqnRC JLGfDvjsPyGV4zmjqt3/cL8O/Lq0Splqzp6aNVI4LOrhlUW1z7HNniNGUNhsNZcq O+wrw/sFCEyubcY8w9c1Unn5QsAsA6SrI4x1bhtDGQ5Lu358cFk/oQneiB+MxHpO GlgbVIzWVorDSnOpSSHgFeEgLWffJulWipMvx2U78zPw6LWYwo0= =IRqt -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
1 changed files, 9 additions(+), 12 deletions(-)
M flake.nix -> flake.nix
diff --git a/flake.nix b/flake.nix
index c5f166c84b708fdb4f04cac9b075a676ffd9b141..5fc780ea7d2840a252b51f60349e647c8af7559d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -37,8 +37,14 @@     commonConfig = {
       config,
       pkgs,
       ...
+    agenix.url = "github:ryantm/agenix";
 
+      userSecret = path: {
+        file = path;
+        owner = username;
+      };
     home-manager.inputs.nixpkgs.follows = "nixpkgs";
+    home-manager.url = "github:nix-community/home-manager";
       config = {
         nixpkgs.overlays = [overlays];
         home-manager = {
@@ -50,19 +56,10 @@             flakePath = "/home/${username}/.config/nixpkgs";
           };
         };
         age.secrets = {
-  inputs = {
     agenix.url = "github:ryantm/agenix";
-            file = ./secrets/shared/ssh-config.age;
-            owner = username;
-          };
-          ssh-config-work = {
-            file = ./secrets/shared/ssh-config-work.age;
-            owner = username;
-          };
-          spotify-pw = {
+    home-manager.inputs.nixpkgs.follows = "nixpkgs";
-            file = ./secrets/shared/spotify-pw.age;
+          ssh-config-work = userSecret ./secrets/shared/ssh-config-work.age;
-            owner = username;
-          };
+          spotify-pw = userSecret ./secrets/shared/spotify-pw.age;
         };
       };
     };