Refactor secrets
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -17,11 +17,11 @@ in
|
||||
home-manager.users.${user} = {
|
||||
sops = {
|
||||
secrets = {
|
||||
"jellyfin/admin".sopsFile = ../../../../../../../secrets/secrets.yaml;
|
||||
"jellyfin/authelia/password".sopsFile = ../../../../../../../secrets/secrets.yaml;
|
||||
"jellyfin/authelia/digest".sopsFile = ../../../../../../../secrets/secrets.yaml;
|
||||
"opensubtitles/username".sopsFile = ../../../../../../../../../secrets/personal/secrets.yaml;
|
||||
"opensubtitles/password".sopsFile = ../../../../../../../../../secrets/personal/secrets.yaml;
|
||||
"jellyfin/admin".sopsFile = "${inputs.secrets}/hosts/jupiter/secrets.yaml";
|
||||
"jellyfin/authelia/password".sopsFile = "${inputs.secrets}/hosts/jupiter/secrets.yaml";
|
||||
"jellyfin/authelia/digest".sopsFile = "${inputs.secrets}/hosts/jupiter/secrets.yaml";
|
||||
"opensubtitles/username".sopsFile = "${inputs.secrets}/personal/secrets.yaml";
|
||||
"opensubtitles/password".sopsFile = "${inputs.secrets}/personal/secrets.yaml";
|
||||
};
|
||||
|
||||
templates = {
|
||||
|
@@ -24,9 +24,9 @@ in
|
||||
home-manager.users.${user} = {
|
||||
sops = {
|
||||
secrets = {
|
||||
"jellyseerr/smtp".sopsFile = ../../../../../../../secrets/secrets.yaml;
|
||||
"jellyseerr/authelia/password".sopsFile = ../../../../../../../secrets/secrets.yaml;
|
||||
"jellyseerr/authelia/digest".sopsFile = ../../../../../../../secrets/secrets.yaml;
|
||||
"jellyseerr/smtp".sopsFile = "${inputs.secrets}/hosts/jupiter/secrets.yaml";
|
||||
"jellyseerr/authelia/password".sopsFile = "${inputs.secrets}/hosts/jupiter/secrets.yaml";
|
||||
"jellyseerr/authelia/digest".sopsFile = "${inputs.secrets}/hosts/jupiter/secrets.yaml";
|
||||
};
|
||||
|
||||
templates = {
|
||||
|
@@ -20,7 +20,7 @@ in
|
||||
{
|
||||
home-manager.users.${user} = {
|
||||
sops = {
|
||||
secrets."prowlarr/apiKey".sopsFile = ../../../../../../../secrets/secrets.yaml;
|
||||
secrets."prowlarr/apiKey".sopsFile = "${inputs.secrets}/hosts/jupiter/secrets.yaml";
|
||||
|
||||
templates = {
|
||||
prowlarr-env.content = ''
|
||||
|
@@ -21,7 +21,7 @@ in
|
||||
secrets = builtins.listToAttrs (
|
||||
builtins.map (radarr: {
|
||||
name = "${radarr.hostName}/apiKey";
|
||||
value.sopsFile = ../../../../../../../secrets/secrets.yaml;
|
||||
value.sopsFile = "${inputs.secrets}/hosts/jupiter/secrets.yaml";
|
||||
}) radarrs
|
||||
);
|
||||
|
||||
|
@@ -21,7 +21,7 @@ in
|
||||
secrets = builtins.listToAttrs (
|
||||
builtins.map (sonarr: {
|
||||
name = "${sonarr.hostName}/apiKey";
|
||||
value.sopsFile = ../../../../../../../secrets/secrets.yaml;
|
||||
value.sopsFile = "${inputs.secrets}/hosts/jupiter/secrets.yaml";
|
||||
}) sonarrs
|
||||
);
|
||||
|
||||
|
@@ -13,7 +13,7 @@ let
|
||||
in
|
||||
{
|
||||
home-manager.users.${user} = {
|
||||
sops.secrets."transmission/protonvpn".sopsFile = ../../../../../../../secrets/secrets.yaml;
|
||||
sops.secrets."transmission/protonvpn".sopsFile = "${inputs.secrets}/hosts/jupiter/secrets.yaml";
|
||||
|
||||
systemd.user.tmpfiles.rules = [
|
||||
"d /mnt/storage/private/storm/containers/storage/volumes/media/_data/downloads/transmission 755 storm storm"
|
||||
|
Reference in New Issue
Block a user