fix(nvim): check if desktop is enabled on top of sshd
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-02-15 19:26:07 -05:00
parent 15869b4e5e
commit 06f62b8b38

View file

@ -14,6 +14,7 @@ self: {
cfg = config.programs.neovim; cfg = config.programs.neovim;
flakeEnv = config.programs.bash.sessionVariables.FLAKE; flakeEnv = config.programs.bash.sessionVariables.FLAKE;
isServer = osConfig.roles.server.sshd.enable or false; isServer = osConfig.roles.server.sshd.enable or false;
isDesktop = osConfig.roles.desktop.enable or false;
githubCSS = pkgs.fetchurl { githubCSS = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/OzakIOne/markdown-github-dark/5bd0bcf3ad20cf9f58591f97a597fd68fc699f8e/style.css"; url = "https://raw.githubusercontent.com/OzakIOne/markdown-github-dark/5bd0bcf3ad20cf9f58591f97a597fd68fc699f8e/style.css";
@ -81,7 +82,7 @@ in {
mdToHTML = "pandoc --standalone --embed-resource --highlight-style=breezedark --css ${githubCSS} %docroot% -o /tmp/%outputfile%"; mdToHTML = "pandoc --standalone --embed-resource --highlight-style=breezedark --css ${githubCSS} %docroot% -o /tmp/%outputfile%";
mdToHTMLViewer = mdToHTMLViewer =
if isServer if isServer && !isDesktop
then then
concatStringsSep " " [ concatStringsSep " " [
"${pkgs.nodePackages.live-server}/bin/live-server" "${pkgs.nodePackages.live-server}/bin/live-server"