adding sops to fix gotify-desktop after long last
This commit is contained in:
23
modules/features/sops/default.nix
Normal file
23
modules/features/sops/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
flake.nixosModules.sops = {config, ...}: {
|
||||
imports = [inputs.sops-nix.nixosModules.sops];
|
||||
|
||||
sops = {
|
||||
age.keyFile = "/etc/sops/age/keys.txt";
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
|
||||
secrets = {
|
||||
gotify-desktop-key = {
|
||||
path = "/run/secrets/gotify-desktop-key.txt";
|
||||
};
|
||||
};
|
||||
templates = {
|
||||
"gotify-desktop-key" = config.sops.placeholder.gotify-desktop-key;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user