fix yubikey and gtrackmap
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user