feat: try to fix fcitx5

This commit is contained in:
ryan4yin
2023-05-07 17:48:26 +08:00
parent 381f0c5123
commit 79c424e08e
28 changed files with 76 additions and 93 deletions

View File

@@ -19,13 +19,13 @@
extra-substituters = [
"https://nix-community.cachix.org"
"https://nixpkgs-wayland.cachix.org"
"https://nixos-cn.cachix.org"
# "https://nixos-cn.cachix.org"
];
extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
"nixos-cn.cachix.org-1:L0jEaL6w7kwQOPlLoCR3ADx+E3Q8SEFEcB9Jaibl0Xg="
# "nixos-cn.cachix.org-1:L0jEaL6w7kwQOPlLoCR3ADx+E3Q8SEFEcB9Jaibl0Xg="
];
};
@@ -47,12 +47,12 @@
# community wayland nixpkgs
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
# nixos-cn 提供了一些国内常用的程序包,如 qq wechat dingtalk 等
nixos-cn = {
url = "github:nixos-cn/flakes";
# 强制 nixos-cn 和该 flake 使用相同版本的 nixpkgs
inputs.nixpkgs.follows = "nixpkgs";
};
# # nixos-cn 提供了一些国内常用的程序包,如 qq wechat dingtalk 等
# nixos-cn = {
# url = "github:nixos-cn/flakes";
# # 强制 nixos-cn 和该 flake 使用相同版本的 nixpkgs
# inputs.nixpkgs.follows = "nixpkgs";
# };
};
# outputs 的参数都是 inputs 中定义的依赖项,可以通过它们的名称来引用。
@@ -63,7 +63,7 @@
nixpkgs,
nixpkgs-stable,
home-manager,
nixos-cn,
# nixos-cn,
...
}: {
# 名为 nixosConfigurations 的 outputs 会在执行 `nixos-rebuild switch --flake .` 时被使用
@@ -88,7 +88,7 @@
# nix flake 的 modules 系统可将配置模块化,提升配置的可维护性
# 默认只能传上面这四个参数,如果需要传其他参数,必须使用 specialArgs
specialArgs = {
inherit nixos-cn;
# inherit nixos-cn;
inherit nixpkgs-stable;
};
modules = [
@@ -121,7 +121,7 @@
system = "x86_64-linux";
specialArgs = {
inherit nixos-cn;
# inherit nixos-cn;
inherit nixpkgs-stable;
};
modules = [