secrets are hard

This commit is contained in:
Annika Merris 2024-05-12 11:06:32 -04:00
parent a7f18eab61
commit 0f3fa23b09
2 changed files with 18 additions and 8 deletions

View file

@ -121,14 +121,6 @@
};
# Install and setup spotifyd
sops.templates."spotifyd.conf".content = ''
[global]
username = "me@annikamerris.com"
password = "${config.sops.placeholder."spotifyd/settings/global/password"}"
use_mpris = true
device_name = "kim-nix"
device_type = "computer"
'';
systemd.user.services.spotifyd = {
Unit = {
Description = "spotify daemon";

View file

@ -96,6 +96,24 @@
];
};
# Configure secrets stuff
sops = {
defaultSopsFile = ../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/home/annika/.config/sops/age/keys.txt";
secrets."spotifyd/settings/global/password" = { };
};
sops.templates."spotifyd.conf".content = ''
[global]
username = "me@annikamerris.com"
password = "${config.sops.placeholder."spotifyd/settings/global/password"}"
use_mpris = true
device_name = "kim-nix"
device_type = "computer"
what = "huh"
'';
home-manager = {
extraSpecialArgs = { inherit inputs; };
users = {