blob: b11dee09382aa281d9722a79b9f3d02f81b93b65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
config,
lib,
username,
...
}:
let
cfg = config.os.srv.sops;
in
{
options.os.srv.sops.enable = lib.mkEnableOption "enables sops-nix secret storing";
config = lib.mkIf cfg.enable {
sops = {
defaultSopsFile = ../../secrets.yaml;
defaultSopsFormat = "yaml";
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
secrets = {
"syncthing/gui_password" = {
owner = config.services.syncthing.user;
};
"obs/websocket_password" = {
owner = username;
};
"git/email" = {
owner = username;
};
};
};
};
}
|