mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 05:03:23 -05:00
secrets are hard
This commit is contained in:
parent
a7f18eab61
commit
0f3fa23b09
2 changed files with 18 additions and 8 deletions
|
|
@ -121,14 +121,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Install and setup spotifyd
|
# 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 = {
|
systemd.user.services.spotifyd = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "spotify daemon";
|
Description = "spotify daemon";
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
users = {
|
users = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue