mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 09:04:07 +02:00
it seems to be working now
This commit is contained in:
parent
ec6c3a0a8b
commit
b4cf0acb44
11 changed files with 398 additions and 64 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue