简化stable/unstable切换的方式;增加兼容性代码,根据版本引用

This commit is contained in:
2025-05-05 18:59:34 +08:00
parent e6891f9f8e
commit c133e5637f
12 changed files with 113 additions and 93 deletions

View File

@@ -29,17 +29,19 @@
source-han-serif # 思源宋体
# wqy_zenhei # 文泉驿正黑
] ++ (
# nerdfonts
nerd-fonts.jetbrains-mono
# (nerdfonts.override {
# fonts = [
# # "FiraCode"
# "JetBrainsMono"
# # "Iosevka"
# ];
# })
];
if lib.versionAtLeast config.system.stateVersion "25.05" then
[ nerd-fonts.jetbrains-mono ]
else [
(nerdfonts.override {
fonts = [
# "FiraCode"
"JetBrainsMono"
# "Iosevka"
];
})
]
);
};
}