Infini-DL360/ssh: substitute model into neofetch config
This commit is contained in:
parent
85d539f5ae
commit
6a6cfe89b4
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue