From 30219401b0bf67de0b7b82140690a962d7ec0c84 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 18 Jul 2024 18:21:16 -0400 Subject: [PATCH] Infini-DL360: add ssh neofetch --- hosts/Infini-DL360/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hosts/Infini-DL360/default.nix b/hosts/Infini-DL360/default.nix index cbd046a..cb29b69 100644 --- a/hosts/Infini-DL360/default.nix +++ b/hosts/Infini-DL360/default.nix @@ -129,6 +129,16 @@ group = "nogroup"; }; + users.users.neofetch = { + description = "SSH Neofetch"; + isSystemUser = true; + group = "nogroup"; + hashedPassword = "$y$j9T$pixfaOyCz4Sbf8KE8AGVk.$TQKPzMvPan8qrO08kqjuJZO4LlUY7Yjxho0wIbcsmV3"; # :) + shell = pkgs.bash; + }; + + security.pam.services.sshd.allowNullPassword = true; + systemd.tmpfiles.settings."30-external" = { "/srv/external".d = { user = "root"; group = "root"; }; "/srv/external/incoming".d = { user = "incoming"; group = "incoming"; mode = "0770"; }; @@ -154,5 +164,13 @@ PermitTunnel no GatewayPorts no PasswordAuthentication no + + Match user neofetch + ForceCommand ${pkgs.hyfetch}/bin/neowofetch --config ${config.home-manager.users.infinidoge.xdg.configFile."neofetch/config.conf".source} --backend ascii + PermitTTY no + DisableForwarding yes + AuthenticationMethods none + KbdInteractiveAuthentication yes + PermitEmptyPasswords yes ''; }