This commit is contained in:
Lucy Hochkamp 2025-03-23 16:02:52 +01:00
parent 62df62c3aa
commit db11846811
No known key found for this signature in database
27 changed files with 887 additions and 64 deletions

View file

@ -0,0 +1,18 @@
{
pkgs,
config,
lib,
...
}:
let
cfg = config.xyno.networking.networkd;
in
{
options.xyno.networking.networkd.enable = lib.mkEnableOption "enable systemd networkd";
options.xyno.networking.networkd.enableWifi = lib.mkEnableOption "enable iwd";
config = lib.mkIf cfg.enable {
systemd.network.enable = true;
networking.useNetworkd = true;
networking.wireless.iwd.enable = cfg.enableWifi;
};
}