distributed-build: move to modules/config/nix
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
imports = [
|
||||
# ./minecraft.nix
|
||||
./nix-ssh-serve.nix
|
||||
# ./nix-ssh-serve.nix
|
||||
];
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
{config, ...}: {
|
||||
nix = let
|
||||
inherit (builtins) readFile;
|
||||
inherit (config.users.users) user;
|
||||
in {
|
||||
sshServe = {
|
||||
enable = true;
|
||||
keys = map (f: readFile f) user.openssh.authorizedKeys.keyFiles;
|
||||
# protocol = "ssh-ng";
|
||||
trusted = true;
|
||||
write = true;
|
||||
};
|
||||
};
|
||||
security.pam.sshAgentAuth.enable = true;
|
||||
}
|
Reference in New Issue
Block a user