thaylen-city: Add preferred fonts
This commit is contained in:
parent
907bf24ad4
commit
fc12b60c91
3 changed files with 20 additions and 10 deletions
|
@ -13,6 +13,16 @@
|
|||
};
|
||||
networking.computerName = "Thaylen City";
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
hack-font
|
||||
font-awesome
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
noto-fonts-extra
|
||||
roboto
|
||||
];
|
||||
|
||||
homebrew = {
|
||||
enable = true;
|
||||
casks = [
|
||||
|
|
|
@ -2,20 +2,11 @@
|
|||
:ensure nil ;; Not a real package, but a place to collect global settings for linux
|
||||
:demand t
|
||||
:config
|
||||
;; Font configuration
|
||||
(defun font-settings ()
|
||||
"Setup font settings."
|
||||
(when window-system (set-frame-font "Hack 9"))
|
||||
(set-fontset-font t 'symbol "Noto Color Emoji")
|
||||
(set-fontset-font t 'symbol "Symbola" nil 'append))
|
||||
;; Make sure DISPLAY is set correctly in env.
|
||||
(defun display-env-hack ()
|
||||
"Hack DISPLAY env variable back into env."
|
||||
(setenv "DISPLAY" ":0")
|
||||
)
|
||||
(if (daemonp)
|
||||
(progn
|
||||
(add-hook 'server-after-make-frame-hook #'font-settings)
|
||||
(add-hook 'server-after-make-frame-hook #'display-env-hack))
|
||||
(font-settings))
|
||||
(add-hook 'server-after-make-frame-hook #'display-env-hack))
|
||||
)
|
||||
|
|
|
@ -179,6 +179,15 @@
|
|||
(comp-deferred-compilation nil "Don't do native-comp at runtime")
|
||||
(project-vc-merge-submodules nil "Don't consider submodules as the same project")
|
||||
:config
|
||||
(defun font-settings ()
|
||||
"Setup font settings."
|
||||
(when window-system
|
||||
(progn (set-frame-font "Hack 9")
|
||||
(set-fontset-font t 'symbol "Noto Color Emoji"))))
|
||||
|
||||
(if (daemonp)
|
||||
(add-hook 'server-after-make-frame-hook #'font-settings)
|
||||
(font-settings))
|
||||
|
||||
;; Always display column number in mode line
|
||||
(column-number-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue