From ee4adecd45d573259b88d2ad1a8cb53a7fbde70a Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 13 Jun 2024 01:44:23 +0800 Subject: [PATCH] nixos/aristotle: disallow aliases --- home/applications/fcitx5/default.nix | 2 +- hosts/aristotle/anti-feature.nix | 2 ++ hosts/aristotle/default.nix | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/home/applications/fcitx5/default.nix b/home/applications/fcitx5/default.nix index bedce72..468c56c 100644 --- a/home/applications/fcitx5/default.nix +++ b/home/applications/fcitx5/default.nix @@ -7,7 +7,7 @@ enabled = "fcitx5"; fcitx5.addons = (with pkgs; [ - fcitx5-chinese-addons + libsForQt5.fcitx5-chinese-addons fcitx5-tokyonight ]) ++ (with inputs.berberman.packages.${pkgs.stdenv.hostPlatform.system}; [ diff --git a/hosts/aristotle/anti-feature.nix b/hosts/aristotle/anti-feature.nix index 0a2222a..36c5353 100644 --- a/hosts/aristotle/anti-feature.nix +++ b/hosts/aristotle/anti-feature.nix @@ -1,5 +1,7 @@ {lib, ...}: { nixpkgs.config = { + allowAliases = false; + allowNonSource = false; allowNonSourcePredicate = pkg: builtins.elem (lib.getName pkg) [ diff --git a/hosts/aristotle/default.nix b/hosts/aristotle/default.nix index d566587..7a9411b 100644 --- a/hosts/aristotle/default.nix +++ b/hosts/aristotle/default.nix @@ -1,7 +1,6 @@ { pkgs, inputs, - config, ... }: { imports = [