We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4beb32 commit 84e8b2aCopy full SHA for 84e8b2a
modules/nixos/networking/default.nix
@@ -4,7 +4,11 @@
4
./broadcom.nix
5
./intel.nix
6
];
7
- config = lib.mkIf (builtins.length (config.facter.report.network_interface or [ ]) > 0) {
+
8
+ options.facter.detected.dhcp.enable = lib.mkEnableOption "Facter dhcp module" // {
9
+ default = builtins.length config.facter.report.network_interface or [ ] > 0;
10
+ };
11
+ config = lib.mkIf config.facter.detected.dhcp.enable {
12
networking.useDHCP = lib.mkDefault true;
13
networking.useNetworkd = lib.mkDefault true;
14
};
0 commit comments