feat: update README, add fonts

This commit is contained in:
ryan4yin
2023-05-14 18:29:32 +08:00
parent 0517d0e8df
commit a862e0a55d
5 changed files with 34 additions and 7 deletions

View File

@@ -33,6 +33,23 @@ sudo nixos-rebuild switch --flake .#nixos-test
sudo nixos-rebuild switch --flake .#msi-rtx4090
```
## Install Apps from Flatpak
We can install apps from flathub, which has a lot of apps that are not supported well in nixpkgs.
```bash
# Add the Flathub repository
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# install apps from flathub
flatpak install netease-cloud-music-gtk
# or you can search apps from flathub
flatpak search <keyword>
# search on website is also supported: https://flathub.org/
```
## Other Interesting Dotfiles
Other configurations from where I learned and copied:

View File

@@ -104,9 +104,6 @@
}
];
};
# 如果你在 x86_64-linux 平台上执行 nix build那么默认会使用这个配置或者也能通过 `.#<name>` 参数来指定非 default 的配置
# packages.x86_64-linux.default =
};
};
}

View File

@@ -28,6 +28,7 @@
#../../modules/i3.nix
../../modules/fcitx5
../../modules/nur-packages.nix
../../modules/fhs-fonts.nix
# Include the results of the hardware scan.
./hardware-configuration.nix

View File

@@ -23,7 +23,10 @@
../../modules/system.nix
../../modules/hyprland.nix
#../../modules/i3.nix
../../modules/fcitx5
../../modules/nur-packages.nix
../../modules/fhs-fonts.nix
# Include the results of the hardware scan.
./hardware-configuration.nix

View File

@@ -37,10 +37,19 @@
material-design-icons
font-awesome
# normal fonts
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
# Noto 系列字体是 Google 主导的名字的含义是「没有豆腐」no tofu因为缺字时显示的方框或者方框被叫作 tofu
# Noto 系列字族名只支持英文,命名规则是 Noto + Sans 或 Serif + 文字名称。
# 其中汉字部分叫 Noto Sans/Serif CJK SC/TC/HK/JP/KR最后一个词是地区变种。
noto-fonts # 大部分文字的常见样式,不包含汉字
noto-fonts-cjk # 汉字部分
noto-fonts-emoji # 彩色的表情符号字体
noto-fonts-extra # 提供额外的字重和宽度变种
# 思源系列字体是 Adobe 主导的。其中汉字部分被称为「思源黑体」和「思源宋体」,是由 Adobe + Google 共同开发的
source-sans # 无衬线字体,不含汉字。字族名叫 Source Sans 3 和 Source Sans Pro以及带字重的变体加上 Source Sans 3 VF
source-serif # 衬线字体,不含汉字。字族名叫 Source Code Pro以及带字重的变体
source-han-sans # 思源黑体
source-han-serif # 思源宋体
# nerdfonts
(nerdfonts.override { fonts = [