incus now behind enable flag
This commit is contained in:
parent
9fc3927c86
commit
9e3f2a5982
1 changed files with 26 additions and 29 deletions
|
|
@ -1,9 +1,17 @@
|
|||
{
|
||||
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.iscontainer.enable = lib.mkEnableOption "iscontainer" // {
|
||||
default = true;
|
||||
};
|
||||
config = lib.mkIf config.iscontainer.enable {
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks."50-eth0" = {
|
||||
|
||||
matchConfig.Name = "eth0";
|
||||
networkConfig = {
|
||||
DHCP = "ipv4";
|
||||
|
|
@ -14,21 +22,10 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
# firewall = {
|
||||
firewall.enable = false;
|
||||
# interfaces = {
|
||||
# ygg0 = {
|
||||
# allowedTCPPorts = [ 22 ];
|
||||
# allowedUDPPorts = [ ];
|
||||
# };
|
||||
# };
|
||||
|
||||
# # Default deny policy for all interfaces (including ygg0)
|
||||
# allowedTCPPorts = [ ];
|
||||
# allowedUDPPorts = [ ];
|
||||
# };
|
||||
dhcpcd.enable = false;
|
||||
useDHCP = false;
|
||||
useHostResolvConf = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue