Files
nixos-setup/modules/nixos/common/networking.nix
T
2024-08-18 21:11:59 -04:00

35 lines
638 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.skyg.core;
in
{
options = {
skyg.core = {
hostName = mkOption {
description = "Machine Hostname";
type = types.str;
};
};
};
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 = "client";
# Disable the flaky nm service
systemd.services.NetworkManager-wait-online.enable = false;
};
}