refactor
This commit is contained in:
@@ -1,18 +1,9 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.modules.services.tailscale;
|
||||
cfg = config.services.tailscale;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
modules.services.tailscale = {
|
||||
enable = lib.mkEnableOption "Enable Tailscale";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "server";
|
||||
};
|
||||
services.tailscale.useRoutingFeatures = "server";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user