Infini-DL360/ssh: substitute model into neofetch config

This commit is contained in:
Infinidoge 2024-11-18 11:24:09 -05:00
parent 85d539f5ae
commit 6a6cfe89b4
Signed by: Infinidoge
SSH key fingerprint: SHA256:EMoPe5e2dO0gEvtBb2xkZTz5dkyL0rBmuiGTKG5s96E

View file

@ -1,6 +1,12 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
cfg = config.services.openssh; cfg = config.services.openssh;
neofetchConfig = pkgs.substituteAll {
src = ./neofetch.conf;
inherit (config.info) model;
};
in in
{ {
users.users = { users.users = {
@ -64,7 +70,7 @@ in
PasswordAuthentication no PasswordAuthentication no
Match user neofetch Match user neofetch
ForceCommand ${pkgs.hyfetch}/bin/neowofetch --config ${./neofetch.conf} --backend ascii ForceCommand ${pkgs.hyfetch}/bin/neowofetch --config ${neofetchConfig} --backend ascii
PermitTTY no PermitTTY no
DisableForwarding yes DisableForwarding yes
AuthenticationMethods none AuthenticationMethods none