aboutsummaryrefslogtreecommitdiff
path: root/modules/services/openssh.nix
blob: c6a73cb94a996eab1a9fdc031bdd0e62e0d01267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  config,
  username,
  lib,
  ...
}:
{
  options.nx.services.openssh.enable = lib.mkEnableOption "Enable openssh service";
  config = lib.mkIf config.nx.services.openssh.enable {
		services.openssh = {
			enable = true;
			settings = {
				AllowUsers = [ username ];
			};
		};
  };
}