mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-18 18:19:12 +00:00
hosts/ni/networking/setup: open ports 20000-30000 for userland services
It's a long story but this would be great to initialize local services from different users. Except that there is only one for the most part anyways.
This commit is contained in:
parent
18a5b73978
commit
d16dd2d575
@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, foodogsquaredLib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
hostCfg = config.hosts.ni;
|
hostCfg = config.hosts.ni;
|
||||||
@ -170,6 +170,13 @@ in
|
|||||||
protocols = [ "tcp" ];
|
protocols = [ "tcp" ];
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# This is for user-specific services that would need to be exposed to
|
||||||
|
# the local network.
|
||||||
|
userland = {
|
||||||
|
value = foodogsquaredLib.nixos.makeRange 20000 30000;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user