blob: 7964e8bdbd1e1246539c26d58a0d9cc52a6748e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ config, lib, ... }:
{
options.szpont.network = {
enable = lib.mkEnableOption "system-wide networking setup";
hostName = lib.mkOption {
type = lib.types.str;
default = "nixos";
description = "The hostname for this specific machine.";
};
};
config = lib.mkIf config.szpont.network.enable {
networking = {
hostName = config.szpont.network.hostName;
networkmanager = {
enable = true;
wifi.macAddress = "stable-ssid";
ethernet.macAddress = "stable-ssid";
};
firewall = {
enable = true;
};
};
systemd.services."NetworkManager-wait-online".enable = false;
};
}
|