From e3d5388a1b929977eadf52eb0c46d3d768c3d13c Mon Sep 17 00:00:00 2001 From: reidlab Date: Fri, 18 Aug 2023 17:25:09 -0700 Subject: [PATCH 1/4] add mosh support --- hosts/server/configuration.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 528c187..839f852 100755 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -59,6 +59,9 @@ }; }; + # Services - Mosh + services.mosh.enable = true; + # Services - Nginx services.nginx = { package = pkgs.openresty; From bd197cf4450578381abdb6fdd90ad4bdb4d824ac Mon Sep 17 00:00:00 2001 From: reidlab Date: Fri, 18 Aug 2023 17:26:42 -0700 Subject: [PATCH 2/4] fix mosh --- hosts/server/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 839f852..11953ad 100755 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -60,7 +60,7 @@ }; # Services - Mosh - services.mosh.enable = true; + programs.mosh.enable = true; # Services - Nginx services.nginx = { From 8cfd5f80afd333bf3596c8ba80f082c3ce4c97ea Mon Sep 17 00:00:00 2001 From: reidlab Date: Fri, 18 Aug 2023 18:06:38 -0700 Subject: [PATCH 3/4] update mosh/ssh --- hosts/server/configuration.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 11953ad..69a9e93 100755 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, luaOlder, buildLuarocksPackage, lua, fetchgit, ... }: +{ config, lib, pkgs, ... }: { imports = @@ -50,18 +50,20 @@ ]; }; + # Programs + # Programs - Mosh + programs.mosh.enable = true; + # Services # Services - Openssh services.openssh = { enable = true; settings = { PermitRootLogin = "no"; + PasswordAuthentication = true; }; }; - # Services - Mosh - programs.mosh.enable = true; - # Services - Nginx services.nginx = { package = pkgs.openresty; From a6727718589db9895311bc2e3ba07ffa29eefd5a Mon Sep 17 00:00:00 2001 From: reidlab Date: Sat, 19 Aug 2023 02:55:52 -0700 Subject: [PATCH 4/4] update todo --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index 9eb9296..1a7dd6d 100755 --- a/readme.md +++ b/readme.md @@ -4,6 +4,7 @@ Nix Flake dotfiles used on my server. ## Todo +* Use [home-manager](https://github.com/nix-community/home-manager) * Fix high memory usage on gitea, this may be something with using Argon2? [source](https://discourse.gitea.io/t/how-to-reduce-memory-usage/2947/3) * Make it so our secrets consist upon reboot (currently just our wifi password, have to set every reboot) (maybe with [Agenix](https://github.com/ryantm/agenix) + [Age](https://github.com/FiloSottile/age)? * Make everything __modular__.