options follow my.schema to avoid conflicts
This commit is contained in:
18
modules/services/network.nix
Normal file
18
modules/services/network.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
options.my.services.network.enable = lib.mkEnableOption "enable";
|
||||
config = lib.mkIf config.my.services.network.enable {
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
enableIPv6 = false;
|
||||
networkmanager.enable = true;
|
||||
extraHosts = ''
|
||||
192.168.1.64 workstation
|
||||
192.168.1.69 server
|
||||
192.168.1.100 miniserver
|
||||
'';
|
||||
firewall = { enable = true; };
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user