module: add nix-ssh-serve module
This commit is contained in:
parent
d1869bb076
commit
17f6c9c664
1 changed files with 13 additions and 0 deletions
13
modules/modules/services/nix-ssh-serve.nix
Normal file
13
modules/modules/services/nix-ssh-serve.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, ... }:
|
||||
with lib;
|
||||
{
|
||||
nix = {
|
||||
sshServe = {
|
||||
enable = mkDefault config.info.stationary;
|
||||
write = true;
|
||||
keys = config.user.openssh.authorizedKeys.keys;
|
||||
};
|
||||
|
||||
settings.trusted-users = [ "nix-ssh" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue