From e449ce8c565b85a9660d796ad8b138d9598b92c6 Mon Sep 17 00:00:00 2001 From: materus Date: Sun, 3 Mar 2024 00:26:24 +0100 Subject: [PATCH] git-cryp: test --- configurations/host/materusPC/secrets/default.nix | 2 +- encrypted-test | Bin 31 -> 0 bytes flake.nix | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 encrypted-test diff --git a/configurations/host/materusPC/secrets/default.nix b/configurations/host/materusPC/secrets/default.nix index b2408f2..146c965 100644 --- a/configurations/host/materusPC/secrets/default.nix +++ b/configurations/host/materusPC/secrets/default.nix @@ -2,7 +2,7 @@ { imports = [ - (if (materusCfg.materusFlake.encrypted == "decrypted") then ./private else "") + (if (materusCfg.materusFlake.decrypted == true) then ./private else "") ]; sops.age.generateKey = false; diff --git a/encrypted-test b/encrypted-test deleted file mode 100644 index 0169775ff83b5ec87a17038158bc80b2c801f804..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 31 ncmZQ@_Y83kiVO&0c;Q`T{p^fZH}ky12J-7!Bfpl2EPo0Bu+|KZ diff --git a/flake.nix b/flake.nix index a72e12a..283e7c7 100644 --- a/flake.nix +++ b/flake.nix @@ -57,7 +57,7 @@ rec { nixosConfigurations = import ./configurations/host { inherit inputs; materusFlake = self; }; homeConfigurations = import ./configurations/home { inherit inputs; materusFlake = self; }; - selfPath = ./.; - encrypted = builtins.readFile (selfPath + "/encrypted-test"); + selfPath = self; + decrypted = builtins.pathExists (selfPath + "/decrypted"); }; }