Rename module directories

This commit is contained in:
SebastianStork 2024-06-30 22:47:18 +02:00
parent 4c0ce1f479
commit 83638c33e2
36 changed files with 2 additions and 2 deletions

28
modules/nixos/geoclue.nix Normal file
View file

@ -0,0 +1,28 @@
{ config, lib, ... }:
{
options.myConfig.geoclue.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.geoclue.enable {
sops = {
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}
'';
};
};
services.geoclue2 = {
enable = true;
appConfig.gammastep = {
isAllowed = true;
isSystem = false;
};
};
};
}