Skip to content

Commit

Permalink
actually enable systemd networking if selected
Browse files Browse the repository at this point in the history
if we set `local.networking = "systemd"` we should actually do something
with that.
DirectXMan12 committed Dec 28, 2024
1 parent 2dd67e2 commit eb6a34c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/common/default.nix
Original file line number Diff line number Diff line change
@@ -22,7 +22,8 @@ with lib;
};

# TODO: refactor this into a separate module
config = mkIf (config.local.networking == "networkmanager") {
networking.networkmanager.enable = true;
config = {
networking.networkmanager.enable = config.local.networking == "networkmanager";
systemd.network.enable = config.local.networking == "systemd";
};
}

0 comments on commit eb6a34c

Please sign in to comment.