services/nix-ssh-serve: merge into global/nix
This commit is contained in:
parent
efb71f1d86
commit
0c93e1a60c
2 changed files with 7 additions and 14 deletions
|
@ -10,7 +10,7 @@ in
|
|||
|
||||
settings = {
|
||||
allowed-users = [ "*" ];
|
||||
trusted-users = [ "root" "@wheel" "remotebuild" ];
|
||||
trusted-users = [ "root" "@wheel" "remotebuild" "nix-ssh" ];
|
||||
|
||||
system-features = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||
experimental-features = [ "flakes" "nix-command" "impure-derivations" "no-url-literals" ];
|
||||
|
@ -64,6 +64,12 @@ in
|
|||
extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
|
||||
sshServe = {
|
||||
enable = mkDefault true;
|
||||
write = true;
|
||||
keys = config.user.openssh.authorizedKeys.keys;
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.config = {
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
with lib;
|
||||
{
|
||||
nix = {
|
||||
sshServe = {
|
||||
enable = mkDefault true;
|
||||
write = true;
|
||||
keys = config.user.openssh.authorizedKeys.keys;
|
||||
};
|
||||
|
||||
settings.trusted-users = [ "nix-ssh" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue