git-crypt: more tests

This commit is contained in:
Mateusz Słodkowicz 2024-03-03 01:23:53 +01:00
parent deaa785e1f
commit e702504dee
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
2 changed files with 3 additions and 2 deletions

View File

@ -2,8 +2,8 @@
{
imports =
[
(if (materusCfg.materusFlake.decrypted == true) then ./private else "")
];
] ++ (if (materusCfg.materusFlake.decrypted) then [ ./private ] else [] );
sops.age.generateKey = false;
sops.gnupg.home = null;

View File

@ -13,4 +13,5 @@ in
];
options.materus.materusArg = lib.mkOption {default = {};};
config._module.args.materusArg = config.materus.materusArg // materusArg;
config.warnings = lib.mkIf (!materusCfg.materusFlake.decrypted) ["Repository not decrytped, private configs not loaded, use crypt.sh to decrypt"];
}