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 0169775..0000000 Binary files a/encrypted-test and /dev/null differ 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"); }; }