1

System: Declaratively define networkmanager profiles

This commit is contained in:
2025-06-10 20:58:18 +02:00
parent 10b389a72f
commit a4b389d652
4 changed files with 52 additions and 8 deletions

View File

@ -7,6 +7,8 @@ with lib;
with mylib.modules; {
enable = mkEnableOption "Systemd Network Configuration";
useNetworkManager = mkEnableOption "Use NetworkManager instead of systemd-networkd";
hostname = mkOption {
type = types.str;
description = "The System's Hostname";
@ -28,6 +30,17 @@ with mylib.modules; {
'';
};
profiles = mkOption {
type = types.attrs;
default = {};
description = "NetworkManager Profiles";
example = ''
"50-ether" = {
[...]
};
'';
};
wireguard-tunnels = mkOption {
type = types.attrs;
default = {};