move SWCONFIG defn into per-device files
it doesn't work on qemu
This commit is contained in:
parent
d60aab728d
commit
e04ec2e959
3 changed files with 6 additions and 3 deletions
|
@ -18,7 +18,7 @@
|
|||
support into the kernel even if we're using TFTP root
|
||||
'';
|
||||
|
||||
module = { pkgs, config, ...}:
|
||||
module = { pkgs, config, lib, ...}:
|
||||
let
|
||||
inherit (pkgs.liminix.networking) interface;
|
||||
inherit (pkgs) openwrt;
|
||||
|
@ -151,6 +151,8 @@
|
|||
|
||||
PARTITION_ADVANCED = "y";
|
||||
PRINTK_TIME = "y";
|
||||
} // lib.optionalAttrs (config.system.service ? vlan) {
|
||||
SWCONFIG = "y";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
module = { pkgs, config, ...}:
|
||||
module = { pkgs, config, lib, ...}:
|
||||
let
|
||||
inherit (pkgs.liminix.networking) interface;
|
||||
inherit (pkgs.liminix.services) oneshot;
|
||||
|
@ -160,6 +160,8 @@
|
|||
|
||||
PARTITION_ADVANCED = "y";
|
||||
PRINTK_TIME = "y";
|
||||
} // lib.optionalAttrs (config.system.service ? vlan) {
|
||||
SWCONFIG = "y";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -36,6 +36,5 @@ in
|
|||
};
|
||||
config.kernel.config = {
|
||||
VLAN_8021Q = "y";
|
||||
SWCONFIG = "y"; # not always appropriate, some devices will use DSA
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue