為了在 flake 項目中允許使用 非自由軟體,您需要在導入 Nixpkgs 時通過設置 config.allowUnfree = true; 來明確允許它。
config.allowUnfree = true;