add sops, add secrets, add cinny, add restic, add invidious container
This commit is contained in:
parent
e27291baef
commit
d0ca050172
16 changed files with 348 additions and 297 deletions
|
@ -12,7 +12,7 @@ let
|
|||
in
|
||||
{
|
||||
options.${namespace}.system.gnupg = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to manage fonts.";
|
||||
enable = mkBoolOpt false "Whether or not to enable gnupg.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
24
modules/nixos/system/sops/default.nix
Normal file
24
modules/nixos/system/sops/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.system.sops;
|
||||
in
|
||||
{
|
||||
imports = [ inputs.sops-nix.nixosModules.sops ];
|
||||
|
||||
options.${namespace}.system.sops = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable sops support.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
sops.age.keyFile = "/home/philipp/.config/sops/age/keys.txt";
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue