diff --git a/README.md b/README.md index 36375303..0452aaa5 100644 --- a/README.md +++ b/README.md @@ -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 +# search on website is also supported: https://flathub.org/ +``` + ## Other Interesting Dotfiles Other configurations from where I learned and copied: diff --git a/flake.nix b/flake.nix index d5dc52e9..5c40e708 100644 --- a/flake.nix +++ b/flake.nix @@ -104,9 +104,6 @@ } ]; }; - - # 如果你在 x86_64-linux 平台上执行 nix build,那么默认会使用这个配置,或者也能通过 `.#` 参数来指定非 default 的配置 - # packages.x86_64-linux.default = }; }; } diff --git a/hosts/msi-rtx4090/default.nix b/hosts/msi-rtx4090/default.nix index 056457c9..5017df3c 100644 --- a/hosts/msi-rtx4090/default.nix +++ b/hosts/msi-rtx4090/default.nix @@ -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 diff --git a/hosts/nixos-test/default.nix b/hosts/nixos-test/default.nix index 4a3351d8..e0dd5042 100644 --- a/hosts/nixos-test/default.nix +++ b/hosts/nixos-test/default.nix @@ -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 diff --git a/modules/system.nix b/modules/system.nix index 5a66e7ff..93c8aace 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -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 = [