diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-08 22:21:38 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-08 22:21:38 +0900 |
| commit | 551122e5da0f8ca51ffc7da0cb063c627f34ebf7 (patch) | |
| tree | 518ae49863b7e5650752527d2f5a2c8b378b2121 | |
| parent | 0d3da1f6237c6ab314569d50b7797ad3c68d11bc (diff) | |
| download | dotfiles-551122e5da0f8ca51ffc7da0cb063c627f34ebf7.tar.gz dotfiles-551122e5da0f8ca51ffc7da0cb063c627f34ebf7.tar.zst dotfiles-551122e5da0f8ca51ffc7da0cb063c627f34ebf7.zip | |
home-manager: manage font files by Nix
| -rw-r--r-- | README | 10 | ||||
| -rw-r--r-- | flake.lock | 6 | ||||
| -rw-r--r-- | home-manager/modules/common.nix | 4 |
3 files changed, 11 insertions, 9 deletions
@@ -26,12 +26,11 @@ $ sudo apt upgrade $ ./bootstrap akashi +$ fc-cache -fv + $ sudo adduser $(whoami) docker $ cargo install alacritty - -$ curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share/fonts}"/SourceHanCodeJP.ttc --create-dirs https://github.com/adobe-fonts/source-han-code-jp/releases/latest/download/SourceHanCodeJP.ttc -$ fc-cache -fv ``` ## PC 168 @@ -44,11 +43,10 @@ $ brew install libiconv $ ./bootstrap pc168 -$ brew install --cask alacritty - -$ curl -fLo ~/Library/Fonts/SourceHanCodeJP.ttc --create-dirs https://github.com/adobe-fonts/source-han-code-jp/releases/latest/download/SourceHanCodeJP.ttc $ sudo atsutil databases -remove +$ brew install --cask alacritty + $ /usr/local/opt/ncurses/bin/infocmp tmux-256color > /var/tmp/tmux-256color.info $ tic -xe tmux-256color /var/tmp/tmux-256color.info @@ -63,11 +63,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1751970608, - "narHash": "sha256-VqJN+Gl4Iqm+HTjboUf0sNUGQ32Y23358qAsTluf5lI=", + "lastModified": 1751980497, + "narHash": "sha256-LEJBKo9VwSLPWwKeXleeSQKZXBAAbESPX5iN2eWXwfs=", "owner": "nsfisis", "repo": "nur-packages", - "rev": "3676d489fbf39380e9f59d6abd4c20725180c4cc", + "rev": "7b625b804f580968d5836d01db262401eb38e321", "type": "github" }, "original": { diff --git a/home-manager/modules/common.nix b/home-manager/modules/common.nix index 140550b..231555e 100644 --- a/home-manager/modules/common.nix +++ b/home-manager/modules/common.nix @@ -102,6 +102,10 @@ in ".zshrc".source = ../config/zsh/.zshrc; "bin/__claude-code-notify".source = ../../bin/__claude-code-notify; "bin/tmux-pane-idx".source = ../../bin/tmux-pane-idx; + + "${if env.os == "macos" then "Library/Fonts/" else ".local/share/fonts/"}/SourceHanCodeJP.ttc" = { + source = "${nurpkgs.source-han-code-jp}/share/fonts/SourceHanCodeJP.ttc"; + }; }; home.sessionVariables = rec { |
