mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add networking option
This commit is contained in:
parent
0e6f928345
commit
1d63a46291
1 changed files with 28 additions and 19 deletions
|
@ -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 = [];};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue