fix yubikey and gtrackmap

This commit is contained in:
Joakim Repomaa
2025-02-09 22:11:42 +02:00
parent a17b0b46b5
commit 7aad5b5bf0
11 changed files with 23 additions and 29 deletions

View File

@@ -1,9 +1,13 @@
{ lib, config, ... }:
{ lib, config, inputs, ... }:
let
cfg = config.modules.services.gtrackmap;
fqdn = "${cfg.subdomain}.${config.networking.domain}";
in
{
imports = [
inputs.gtrackmap.nixosModules.default
];
options.modules.services.gtrackmap = {
enable = lib.mkEnableOption "Enable GTrackmap";
subdomain = lib.mkOption {
@@ -15,7 +19,7 @@ in
};
};
config = {
config = lib.mkIf cfg.enable {
services.gtrackmap = {
enable = true;
inherit (cfg) port;