From 54be77873121f213e1505cdf75769142b96d311c Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Sat, 14 Dec 2024 23:05:08 +0100 Subject: [PATCH] thrall: Extract mosh config --- hosts/igor/default.nix | 2 +- hosts/thrall/default.nix | 3 +-- modules/mosh.nix | 8 ++++++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 modules/mosh.nix diff --git a/hosts/igor/default.nix b/hosts/igor/default.nix index 0c51b03..0517cbf 100644 --- a/hosts/igor/default.nix +++ b/hosts/igor/default.nix @@ -16,6 +16,7 @@ ../../modules/ssh.nix ../../modules/tailscale ../../modules/vsftpd + ../../modules/mosh.nix ]; config.boot.loader.grub.enable = true; @@ -110,7 +111,6 @@ config.programs.firefox.enable = true; config.programs.git.enable = true; - config.programs.mosh.enable = true; config.programs.nm-applet.enable = true; # Define a user account. Don't forget to set a password with ‘passwd’. diff --git a/hosts/thrall/default.nix b/hosts/thrall/default.nix index 09bf600..c60c2e6 100644 --- a/hosts/thrall/default.nix +++ b/hosts/thrall/default.nix @@ -29,6 +29,7 @@ in ../../modules/ssh.nix ../../modules/hledger-web.nix ../../modules/tailscale + ../../modules/mosh.nix ]; # Use the GRUB 2 boot loader. @@ -89,7 +90,6 @@ in ]; allowedUDPPorts = [ 53 - 42666 ]; }; @@ -172,7 +172,6 @@ in enableSSHSupport = true; }; - programs.mosh.enable = true; programs.neovim = { enable = true; defaultEditor = true; diff --git a/modules/mosh.nix b/modules/mosh.nix new file mode 100644 index 0000000..d4c165f --- /dev/null +++ b/modules/mosh.nix @@ -0,0 +1,8 @@ +{ ... }: + +{ + programs.mosh = { + enable = true; + openFirewall = true; + }; +}