nixos/aristotle: disallow aliases

This commit is contained in:
Guanran Wang 2024-06-13 01:44:23 +08:00
parent 1403595ae1
commit ee4adecd45
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
3 changed files with 3 additions and 2 deletions

View file

@ -7,7 +7,7 @@
enabled = "fcitx5"; enabled = "fcitx5";
fcitx5.addons = fcitx5.addons =
(with pkgs; [ (with pkgs; [
fcitx5-chinese-addons libsForQt5.fcitx5-chinese-addons
fcitx5-tokyonight fcitx5-tokyonight
]) ])
++ (with inputs.berberman.packages.${pkgs.stdenv.hostPlatform.system}; [ ++ (with inputs.berberman.packages.${pkgs.stdenv.hostPlatform.system}; [

View file

@ -1,5 +1,7 @@
{lib, ...}: { {lib, ...}: {
nixpkgs.config = { nixpkgs.config = {
allowAliases = false;
allowNonSource = false; allowNonSource = false;
allowNonSourcePredicate = pkg: allowNonSourcePredicate = pkg:
builtins.elem (lib.getName pkg) [ builtins.elem (lib.getName pkg) [

View file

@ -1,7 +1,6 @@
{ {
pkgs, pkgs,
inputs, inputs,
config,
... ...
}: { }: {
imports = [ imports = [