Moved mosh to root
This commit is contained in:
parent
dbdf0bb77b
commit
90b66e147b
|
@ -1,10 +1,6 @@
|
||||||
{ pkgs, ... }: {
|
{
|
||||||
programs.ssh.enable = true;
|
programs.ssh.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
mosh # SSH replacement for slow connections
|
|
||||||
];
|
|
||||||
|
|
||||||
# TODO: persistence
|
# TODO: persistence
|
||||||
# home.persistence = {
|
# home.persistence = {
|
||||||
# "/persist/home/adrielus".directories = [ ".ssh" ];
|
# "/persist/home/adrielus".directories = [ ".ssh" ];
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# This setups a SSH server.
|
# This setups a SSH server.
|
||||||
|
# TODO: persistence
|
||||||
{ outputs, config, lib, ... }:
|
{ outputs, config, lib, ... }:
|
||||||
let
|
let
|
||||||
# Record containing all the hosts
|
# Record containing all the hosts
|
||||||
|
@ -40,6 +41,9 @@ in
|
||||||
# Passwordless sudo when SSH'ing with keys
|
# Passwordless sudo when SSH'ing with keys
|
||||||
security.pam.enableSSHAgentAuth = true;
|
security.pam.enableSSHAgentAuth = true;
|
||||||
|
|
||||||
|
# SSH on slow connections
|
||||||
|
programs.mosh.enable = true;
|
||||||
|
|
||||||
# Add each host in this repo to the knownHosts list
|
# Add each host in this repo to the knownHosts list
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
knownHosts = lib.pipe hosts [
|
knownHosts = lib.pipe hosts [
|
||||||
|
|
Loading…
Reference in a new issue