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, ... }:
|
{ 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue