{ config, lib, ... }: let cfg = config.skyg.core; in { options = { skyg.core = { hostName = lib.mkOption { description = "Machine Hostname"; type = lib.types.str; }; tailscaleRouting = lib.mkOption { type = lib.types.str; default = "client"; }; }; }; config = { # Define hostname. networking.hostName = cfg.hostName; # Enable networking networking.networkmanager.enable = true; # NFS Support services.nfs.server.enable = true; # Tailscale services.tailscale.enable = true; services.tailscale.useRoutingFeatures = cfg.tailscaleRouting; # Disable the flaky nm service systemd.services.NetworkManager-wait-online.enable = false; }; }