mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 11:08:55 -05:00
Moving Some Config Stuffs
This commit is contained in:
parent
cdf1c024c0
commit
0d899739c0
1 changed files with 30 additions and 30 deletions
|
|
@ -14,38 +14,38 @@
|
||||||
pkgs.spotifyd
|
pkgs.spotifyd
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
sops = {
|
||||||
sops = {
|
secrets."spotifyd/settings/global/password" = { };
|
||||||
secrets."spotifyd/settings/global/password" = { };
|
|
||||||
|
|
||||||
templates = {
|
templates = {
|
||||||
"spotifyd.conf" = {
|
"spotifyd.conf" = {
|
||||||
owner = "annika";
|
owner = "annika";
|
||||||
content = ''
|
content = ''
|
||||||
[global]
|
[global]
|
||||||
username = "me@annikamerris.com"
|
username = "me@annikamerris.com"
|
||||||
password = "${config.sops.placeholder."spotifyd/settings/global/password"}"
|
password = "${config.sops.placeholder."spotifyd/settings/global/password"}"
|
||||||
use_mpris = true
|
use_mpris = true
|
||||||
device_name = "kim-nix"
|
device_name = "kim-nix"
|
||||||
device_type = "computer"
|
device_type = "computer"
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Install and setup spotifyd
|
||||||
|
# sops.templates.
|
||||||
|
systemd.user.services.spotifyd = {
|
||||||
|
description = "spotify daemon";
|
||||||
|
documentation = [ "https://github.com/Spotifyd/spotifyd" ];
|
||||||
|
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart =
|
||||||
|
"${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path ${config.sops.templates."spotifyd.conf".path}";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = 12;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Install and setup spotifyd
|
|
||||||
# sops.templates.
|
|
||||||
systemd.user.services.spotifyd = {
|
|
||||||
description = "spotify daemon";
|
|
||||||
documentation = [ "https://github.com/Spotifyd/spotifyd" ];
|
|
||||||
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart =
|
|
||||||
"${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path ${config.sops.templates."spotifyd.conf".path}";
|
|
||||||
Restart = "always";
|
|
||||||
RestartSec = 12;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue