From d2fdccd8e75691eb1163f3119b069dce38a19984 Mon Sep 17 00:00:00 2001 From: Emmet Date: Sun, 4 Jun 2023 10:52:24 -0500 Subject: [PATCH] Setup nix logo for doom dashboard --- flake.nix | 2 +- user/app/doom-emacs/config.el | 2 +- user/app/doom-emacs/doom.nix | 7 +++++-- user/app/doom-emacs/doom.org | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index f0181e2..f8cdbf9 100644 --- a/flake.nix +++ b/flake.nix @@ -31,7 +31,7 @@ theme = "ayu-dark"; themePolarityPath = "/themes/"+theme+"/polarity.txt"; - themePolarity = builtins.readFile (./. + themePolarityPath); + themePolarity = lib.removeSuffix "\n" (builtins.readFile (./. + themePolarityPath)); backgroundUrlPath = "/themes/"+theme+"/backgroundurl.txt"; backgroundUrl = builtins.readFile (./. + backgroundUrlPath); backgroundSha256Path = "/themes/"+theme+"/backgroundsha256.txt"; diff --git a/user/app/doom-emacs/config.el b/user/app/doom-emacs/config.el index 795cee4..dae03e5 100644 --- a/user/app/doom-emacs/config.el +++ b/user/app/doom-emacs/config.el @@ -59,7 +59,7 @@ (setq custom-file null-device) ;; Fancy splash image -(setq fancy-splash-image "./arch.png") +(setq fancy-splash-image "~/.emacs.d/dashboard-logo.png") (setq +doom-dashboard-menu-sections '(("Open org roam overview" :icon diff --git a/user/app/doom-emacs/doom.nix b/user/app/doom-emacs/doom.nix index 06e0e3c..8581aa8 100644 --- a/user/app/doom-emacs/doom.nix +++ b/user/app/doom-emacs/doom.nix @@ -1,5 +1,7 @@ -{ config, lib, pkgs, eaf, eaf-browser, org-nursery, ... }: - +{ config, lib, pkgs, eaf, eaf-browser, org-nursery, myThemePolarity, ... }: +let + myDashboardLogo = ./. + "/nix-" + myThemePolarity + ".png"; +in { programs.doom-emacs = { enable = true; @@ -42,4 +44,5 @@ home.file.".emacs.d/org-nursery" = { source = "${org-nursery}"; }; + home.file.".emacs.d/dashboard-logo.png".source = myDashboardLogo; } diff --git a/user/app/doom-emacs/doom.org b/user/app/doom-emacs/doom.org index e399437..961c497 100644 --- a/user/app/doom-emacs/doom.org +++ b/user/app/doom-emacs/doom.org @@ -111,7 +111,7 @@ I use this functionality to load my private config file with non-public informat (setq custom-file null-device) ;; Fancy splash image -(setq fancy-splash-image "./arch.png") +(setq fancy-splash-image "~/.emacs.d/dashboard-logo.png") (setq +doom-dashboard-menu-sections '(("Open org roam overview" :icon