materusPC: secrets test

This commit is contained in:
Mateusz Słodkowicz 2024-03-03 00:03:02 +01:00
parent 36e1db6cb1
commit cf78dd369e
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
4 changed files with 5 additions and 3 deletions

1
.gitattributes vendored
View File

@ -1 +1,2 @@
**/private/** filter=git-crypt diff=git-crypt
encrypted-test filter=git-crypt diff=git-crypt

View File

@ -1,8 +1,8 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, materusCfg, ... }:
{
imports =
[
./private
(if (materusCfg.materusFlake.encrypted == "decrypted") then ./private else "")
];
sops.age.generateKey = false;

BIN
encrypted-test Normal file

Binary file not shown.

View File

@ -54,9 +54,10 @@
outputs = inputs @ { self, nixpkgs, home-manager, nur, ... }:
{
rec {
nixosConfigurations = import ./configurations/host { inherit inputs; materusFlake = self; };
homeConfigurations = import ./configurations/home { inherit inputs; materusFlake = self; };
selfPath = ./.;
encrypted = builtins.readFile (selfPath + "/encrypted-test");
};
}