diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-03 15:59:16 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-03 15:59:16 +0100 |
| commit | f559671cae7b02526dedf7923b135c09e0d095d5 (patch) | |
| tree | 0f273fb13211c4aa7cae2add41e3aa2b1c6d7785 /hosts/wonderland/sops.nix | |
Inital commit ;P
Diffstat (limited to 'hosts/wonderland/sops.nix')
| -rw-r--r-- | hosts/wonderland/sops.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hosts/wonderland/sops.nix b/hosts/wonderland/sops.nix new file mode 100644 index 0000000..0ac9d3d --- /dev/null +++ b/hosts/wonderland/sops.nix @@ -0,0 +1,23 @@ +{ ... }: { + sops = { + age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; + defaultSopsFile = ../../secrets/credentials.json; + secrets = { + # FIXME: using mode 444 here is a hack so that spotifyd can cat the + # values out, but it obviously exposes the secrets to anyone that knows + # they are there. A better solution would be to override the spotifyd + # module to make the systemd service run the program with a group, and + # then give read priviledges to only that group. + # "spotify/password" = { + # mode = "444"; + # }; + # "spotify/username" = { + # mode = "444"; + # }; + "wireless.env" = { + sopsFile = ../../secrets/wireless.env; + format = "dotenv"; + }; + }; + }; # end of sops +} |
