services/nix-ssh-serve: merge into global/nix

This commit is contained in:
Infinidoge 2024-07-26 20:53:37 -04:00
parent efb71f1d86
commit 0c93e1a60c
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 7 additions and 14 deletions

View file

@ -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 = {

View file

@ -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" ];
};
}