Skip to content

Commit

Permalink
Fixed openssh
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus-kirk committed Feb 26, 2024
1 parent 10c6746 commit c9eb47c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nixarr/openssh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ in {
'';
};

config = mkIf cfg.enable {
systemd.services.openssh = mkIf (cfg.vpn.enable && config.services.openssh.enable) {
config = mkIf (cfg.vpn.enable && config.services.openssh.enable) {
util-nixarr.vpnnamespace = {
portMappings = builtins.map (x: { From = x; To = x; }) config.services.openssh.ports;
openUdpPorts = config.services.openssh.ports;
openTcpPorts = config.services.openssh.ports;
};

systemd.services.openssh = {
bindsTo = [ "[email protected]" ];
requires = [ "network-online.target" ];
after = [ "wg.service" ];
Expand Down

0 comments on commit c9eb47c

Please sign in to comment.