Files
nixos-setup/modules/nixos/common/networking.nix
T
2025-05-30 23:26:29 -04:00

28 lines
525 B
Nix

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