v1
This commit is contained in:
parent
62df62c3aa
commit
db11846811
27 changed files with 887 additions and 64 deletions
18
modules/networking/networkd.nix
Normal file
18
modules/networking/networkd.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue