From dcfa0599143461ff97d9ce173a0b238d5468ef4f Mon Sep 17 00:00:00 2001 From: xnm Date: Wed, 16 Oct 2024 20:06:13 +0300 Subject: [PATCH] added `mosh` package and module --- nixos/flake.nix | 1 + nixos/mosh.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 nixos/mosh.nix diff --git a/nixos/flake.nix b/nixos/flake.nix index b3b1901..55323b8 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -46,6 +46,7 @@ ./networking.nix # ./mac-randomize.nix # ./open-ssh.nix + ./mosh.nix ./firewall.nix ./dns.nix # ./vpn.nix diff --git a/nixos/mosh.nix b/nixos/mosh.nix new file mode 100644 index 0000000..e1f8e21 --- /dev/null +++ b/nixos/mosh.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: + +{ + # programs.mosh = { + # enable = true; + # programs.mosh.openFirewall = false; + # }; + + # services.openssh = { + # settings = { + # PasswordAuthentication = false; + # KbdInteractiveAuthentication = false; + # PermitRootLogin = "no"; + # AllowUsers = [ "xnm" ]; + # }; + # }; + + environment.systemPackages = with pkgs; [ + mosh + ]; +}