feat: 配置 Hyprland 桌面环境、Noctalia Shell 与 Ghostty 终端,切换至 Lua 配置模式

This commit is contained in:
2026-05-31 20:23:18 +08:00
parent a0771a273e
commit 89748e482c
6 changed files with 320 additions and 17 deletions
+24 -2
View File
@@ -71,6 +71,7 @@
services.xserver.enable = true;
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
programs.hyprland.enable = true;
security.pam.services.login.kwallet = {
enable = true;
forceRun = true;
@@ -87,17 +88,29 @@
noto-fonts
noto-fonts-cjk-sans
noto-fonts-cjk-serif
sarasa-gothic # 更纱黑体,极其适合终端和编程
sarasa-gothic # 更纱黑体
lxgw-wenkai # 霞鹜文楷,非常漂亮的楷体
wqy_microhei
wqy_zenhei
nerd-fonts.symbols-only # 补全终端图标
];
fonts.fontconfig = {
enable = true;
defaultFonts = {
serif = [ "Noto Serif CJK SC" "Noto Serif" ];
serif = [ "Noto Serif CJK SC" "LXGW WenKai" "Noto Serif" ];
sansSerif = [ "Noto Sans CJK SC" "Noto Sans" ];
monospace = [ "Sarasa Term SC" "Noto Sans Mono CJK SC" ];
emoji = [ "Noto Color Emoji" ];
};
# 针对楷体的 fallback 专门配置
localConf = ''
<alias>
<family>kaiti</family>
<prefer>
<family>LXGW WenKai</family>
</prefer>
</alias>
'';
antialias = true;
hinting.enable = true;
hinting.style = "slight";
@@ -117,6 +130,10 @@
services.printing.enable = true;
services.flatpak.enable = true;
services.upower.enable = true;
services.power-profiles-daemon.enable = true;
services.gnome.evolution-data-server.enable = true;
hardware.bluetooth.enable = true;
# 压缩内存 swap,大小等于物理内存。
zramSwap = {
@@ -144,6 +161,11 @@
programs.nix-ld.enable = true;
virtualisation.docker.enable = true;
services.gnome.gnome-keyring.enable = true;
security.polkit.enable = true;
# 确保 PAM 能够自动解锁 gnome-keyring
security.pam.services.login.enableGnomeKeyring = true;
security.pam.services.sddm.enableGnomeKeyring = true;
# ── 系统级软件包 ────────────────────────────────────────────
environment.systemPackages = with pkgs; [