diff --git a/nixosConfigurations/gerg-desktop/services/vocard/secrets.yaml b/nixosConfigurations/gerg-desktop/services/vocard/secrets.yaml index ba4b672..1ad9001 100644 --- a/nixosConfigurations/gerg-desktop/services/vocard/secrets.yaml +++ b/nixosConfigurations/gerg-desktop/services/vocard/secrets.yaml @@ -20,8 +20,8 @@ sops: WC9NVmdtWjlWSWN6dUwwMFdPRmpxWG8Ka0i27kBbA4p835RWsEPIghFTwxo4elOz PL0TnuMNnl66TJiD0x6oRMn8tb6wQIAqGxBt9Jb2lj24eXCtzfGbEg== -----END AGE ENCRYPTED FILE----- - lastmodified: "2025-03-02T22:44:35Z" - mac: ENC[AES256_GCM,data:dwm0LX9/56Vy2r962RrQx+NNUoTBOs80Jvo25+ZKnixZUPuUdeNS0VXdFRMXLQiUEBzTIBhfVYOzAjSq3XwFvR1q+sQyYizmCLowHnPcicu/0j9qlNRtIItMRk21LMwytG57OgRFLs1RGnvhAYanLyGrqm2mHUWlKKd6C8BdgiE=,iv:UBIYoZyMp2A1hKiWd9+akuxnnAg/TTHYSaiWkInso0I=,tag:Mcfykfj9aKzpf47Pr2XExw==,type:str] + lastmodified: "2025-03-03T00:10:49Z" + mac: ENC[AES256_GCM,data:41um/6Fa0HqCVO/qj7/geUXWWOlXFZFt552W/T/hlsiUoebyPa4RgGVPcs332vuP+bgb4ELeJ0bsVqUFTtEbkfjaij9HT+BZIhImu8ZGKs/ZNkofw1s6h+kIVH4uf/sXYqMEATfHhSFqEoWsGsuL57i4llKzPBqsSyhdB4FeXDs=,iv:T3mt5lZmIT208gaCywsiuZ+Le/3BSDLL2UDxLExsEwE=,tag:jfpFXmcRNzJZCSAdZB4K7g==,type:str] pgp: [] unencrypted_suffix: _unencrypted version: 3.9.4 diff --git a/nixosConfigurations/gerg-desktop/services/vocard/vocard.nix b/nixosConfigurations/gerg-desktop/services/vocard/vocard.nix index 0fa1967..db2ef35 100644 --- a/nixosConfigurations/gerg-desktop/services/vocard/vocard.nix +++ b/nixosConfigurations/gerg-desktop/services/vocard/vocard.nix @@ -45,15 +45,13 @@ "@spotify_client_secret@" "@password@" ] - (builtins.attrValues { - inherit (config.sops.placeholder) - "vocard/token" - "vocard/client_id" - "vocard/spotify_client_id" - "vocard/spotify_client_secret" - "vocard/password" - ; - }) + (map (x: config.sops.placeholder.${x}) [ + "vocard/token" + "vocard/client_id" + "vocard/spotify_client_id" + "vocard/spotify_client_secret" + "vocard/password" + ]) (builtins.readFile ./settings.json); }; };