Skip to content

Commit

Permalink
add hm-fonts tip
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed May 18, 2024
1 parent 8317bb9 commit 65cb88c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
8 changes: 7 additions & 1 deletion en/home-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ To view help from terminal,

```sh
$ man home-configuration.nix
```
```

## Sub-pages

```query
children:.
```
21 changes: 21 additions & 0 deletions en/tips/hm-fonts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Installing fonts using home-manager

Whethere you are on #[[macos|macOS]] or [[nixos|NixOS]], you can install and setup fonts in an unified fashion using [[nix|Nix]] using #[[home-manager|home-manager]].

To do this, add:

```nix
{
home.packages = [
# Fonts
cascadia-code
];
fonts.fontconfig.enable = true;
}
```

The above installs the [Cascadia Code](https://x.com/dhh/status/1791920107637354964) font.

>[!tip] Verify on macOS
> To confirm that the font was successfully installed on [[macos]], you can open the "Font Book" app and search for the font.

0 comments on commit 65cb88c

Please sign in to comment.