mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Treat secret names as strings
This commit is contained in:
parent
285367da58
commit
e333333914
4 changed files with 9 additions and 7 deletions
|
|
@ -4,14 +4,16 @@
|
|||
|
||||
config = lib.mkIf config.myConfig.geoclue.enable {
|
||||
sops = {
|
||||
secrets.geolocation-api-key = { };
|
||||
secrets."geolocation-api-key" = { };
|
||||
|
||||
templates."geoclue-location-service.conf" = {
|
||||
owner = "geoclue";
|
||||
path = "/etc/geoclue/conf.d/location-service.conf";
|
||||
content = ''
|
||||
[wifi]
|
||||
url=https://www.googleapis.com/geolocation/v1/geolocate?key=${config.sops.placeholder.geolocation-api-key}
|
||||
url=https://www.googleapis.com/geolocation/v1/geolocate?key=${
|
||||
config.sops.placeholder."geolocation-api-key"
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue