From f9356316e94b8f452c8e4657e956394a144db186 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 25 Mar 2024 15:59:11 +0100 Subject: removed the test script for playing around with secrets --- nix/lib/sec.nix | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 nix/lib/sec.nix 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 {} }: - -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"; } -- cgit 1.4.1