fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Naïm Favierssh: don't install a client by default (#4016)2d963854

master
523 B26 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.ssh = {
8      enable = true;
9      matchBlocks = {
10        remoteBindPathWithPort = {
11          remoteForwards = [{
12            # OK:
13            host.address = "127.0.0.1";
14            host.port = 3000;
15
16            # Error:
17            bind.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
18            bind.port = 3000;
19          }];
20        };
21      };
22    };
23
24    test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
25  };
26}