it seems to be working now

This commit is contained in:
Robin Appelman 2025-10-31 01:46:47 +01:00
commit b4cf0acb44
11 changed files with 398 additions and 64 deletions

View file

@ -30,13 +30,13 @@ in {
type = types.listOf (types.submodule ({config, ...}: {
options = {
source = mkOption {
type = types.oneOf[types.port types.str];
type = types.oneOf [types.port types.str];
default = config.destination;
defaultText = "<destination>";
description = "source port, address or socket outside the namespace";
};
destination = mkOption {
type = types.oneOf[types.port types.str];
type = types.oneOf [types.port types.str];
description = "target port or address inside the namespace";
};
};
@ -53,7 +53,6 @@ in {
# symlink instead of passing `configFile` directly to netnsd to allow changing the config without changing the path
environment.etc."netnsd/netnsd.toml".source = configFile;
systemd.services.netcsctl = {
reloadTriggers = [configFile];