Skip to content

Commit

Permalink
Merge pull request #61 from britter/fix-dhcp-detection
Browse files Browse the repository at this point in the history
networking: fix incorrect report path for network_interfaces
  • Loading branch information
brianmcgee authored Nov 12, 2024
2 parents d0e205e + cbbb0f7 commit 505386d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nixos/networking/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
];

options.facter.detected.dhcp.enable = lib.mkEnableOption "Facter dhcp module" // {
default = builtins.length config.facter.report.network_interface or [ ] > 0;
default = builtins.length config.facter.report.hardware.network_interface or [ ] > 0;
};
config = lib.mkIf config.facter.detected.dhcp.enable {
networking.useDHCP = lib.mkDefault true;
Expand Down

0 comments on commit 505386d

Please sign in to comment.