add networking option

This commit is contained in:
Aditya 2024-04-11 11:11:14 +05:30
parent 0e6f928345
commit 1d63a46291
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU

View file

@ -1,4 +1,12 @@
_: {
{
config,
lib,
...
}: {
options = {
networking.enable = lib.mkEnableOption "enable networking";
};
config = lib.mkIf config.networking.enable {
networking = {
hostname = "bridge";
@ -20,4 +28,5 @@ _: {
nameservers = ["1.1.1.1" "9.9.9.9"];
bridges = {incusbr0.interfaces = [];};
};
};
}