networking: added option to disable waiting for network
This commit is contained in:
parent
23f6d58671
commit
190e7c9cda
|
@ -14,6 +14,7 @@
|
|||
hostname = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
networking.disableWaitOnline = lib.mkEnableOption "disable waiting for network";
|
||||
networking.externalInterface = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "eth0";
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
profile = {
|
||||
hostname = "homeserver";
|
||||
networking.externalInterface = "enp9s0";
|
||||
networking.disableWaitOnline = true;
|
||||
user = {
|
||||
name = "homeserver";
|
||||
fullName = "Homeserver";
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
security.sudo.wheelNeedsPassword = config.profile.security.sudo.wheelNeedsPassword;
|
||||
networking.hostName = config.profile.hostname;
|
||||
systemd.services.NetworkManager-wait-online.enable = !config.profile.networking.disableWaitOnline;
|
||||
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
|
Loading…
Reference in a new issue