From 6a6cfe89b47a9002ab602689af44cad26d3c91e9 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 18 Nov 2024 11:24:09 -0500 Subject: [PATCH] Infini-DL360/ssh: substitute model into neofetch config --- hosts/Infini-DL360/ssh.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/Infini-DL360/ssh.nix b/hosts/Infini-DL360/ssh.nix index ff9cb23..271e06d 100644 --- a/hosts/Infini-DL360/ssh.nix +++ b/hosts/Infini-DL360/ssh.nix @@ -1,6 +1,12 @@ { config, pkgs, ... }: let cfg = config.services.openssh; + + neofetchConfig = pkgs.substituteAll { + src = ./neofetch.conf; + + inherit (config.info) model; + }; in { users.users = { @@ -64,7 +70,7 @@ in PasswordAuthentication no Match user neofetch - ForceCommand ${pkgs.hyfetch}/bin/neowofetch --config ${./neofetch.conf} --backend ascii + ForceCommand ${pkgs.hyfetch}/bin/neowofetch --config ${neofetchConfig} --backend ascii PermitTTY no DisableForwarding yes AuthenticationMethods none