about summary refs log tree commit diff
path: root/nix/lib
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-03-25 15:59:11 +0100
committerEmile <git@emile.space>2024-03-25 15:59:11 +0100
commitf9356316e94b8f452c8e4657e956394a144db186 (patch)
treeb44a4fa4c0b47801d891c0c0aa4eb1a57fda52cd /nix/lib
parent422ba043192c78e4385d34d15e7ec78147683f30 (diff)
removed the test script for playing around with secrets
Diffstat (limited to 'nix/lib')
-rw-r--r--nix/lib/sec.nix25
1 files changed, 0 insertions, 25 deletions
diff --git a/nix/lib/sec.nix b/nix/lib/sec.nix
deleted file mode 100644
index 5469f3d..0000000
--- a/nix/lib/sec.nix
+++ /dev/null
@@ -1,25 +0,0 @@
-{ pkgs ? import <nixpkgs> {} }:
-
-let
-a = name:
-	let
-		secretsPath = ../hosts + "/${name}/secrets";
-	in {
-		age.secrets = pkgs.lib.mapAttrs'
-			(filename: _:
-				pkgs.lib.nameValuePair (pkgs.lib.removeSuffix ".age" filename)
-				{
-					file = secretsPath + "/${filename}";
-				}
-			)
-			(pkgs.lib.filterAttrs
-				(name: type:
-					(type == "regular") &&
-					(pkgs.lib.hasSuffix ".age" name) )
-				(if builtins.pathExists secretsPath
-				 then builtins.readDir secretsPath
-				 else {} )
-			);
-	};
-in
-{ b = a "corrino"; }