feat: Change nix formatter to alejandra

This commit is contained in:
ulic-youthlic 2025-11-09 06:25:03 +08:00
parent 0b8b647f05
commit b4c3dfec42
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
229 changed files with 2528 additions and 2884 deletions

View file

@ -5,24 +5,21 @@
pkgs,
lib,
...
}:
{
}: {
config = {
environment.etc =
with lib;
environment.etc = with lib;
pipe inputs [
(mapAttrs' (
name: value:
lib.nameValuePair "nix/inputs/${name}" {
source = value;
}
lib.nameValuePair "nix/inputs/${name}" {
source = value;
}
))
];
nixpkgs = {
config = {
allowUnfree = true;
allowInsecurePredicate =
p:
allowInsecurePredicate = p:
builtins.elem (lib.getName p) [
# for neochat
"olm"
@ -30,22 +27,25 @@
"immersive-translate"
];
packageOverrides = p: {
kdePackages = p.kdePackages // {
inherit
((import inputs.nixpkgs-455083 {
localSystem = {
inherit (pkgs.stdenv.hostPlatform) system;
};
config = {
allowUnfree = true;
allowInsecurePredicate = p: builtins.elem (lib.getName p) [ "olm" ];
};
}).kdePackages
)
neochat
;
};
intel-vaapi-driver = p.intel-vaapi-driver.override { enableHybridCodec = true; };
kdePackages =
p.kdePackages
// {
inherit
(
(import inputs.nixpkgs-455083 {
localSystem = {
inherit (pkgs.stdenv.hostPlatform) system;
};
config = {
allowUnfree = true;
allowInsecurePredicate = p: builtins.elem (lib.getName p) ["olm"];
};
}).kdePackages
)
neochat
;
};
intel-vaapi-driver = p.intel-vaapi-driver.override {enableHybridCodec = true;};
onnxruntime = p.onnxruntime.override {
cudaSupport = false;
ncclSupport = false;
@ -57,7 +57,7 @@
mode = "0444";
};
nix = {
nixPath = [ "/etc/nix/inputs" ];
nixPath = ["/etc/nix/inputs"];
extraOptions = ''
!include ${config.sops.secrets."access-tokens".path}
'';
@ -84,8 +84,7 @@
builders-use-substitutes = true;
};
package = pkgs.nix;
registry =
with lib;
registry = with lib;
pipe inputs [
(filterAttrs (name: _value: name != "nixpkgs"))
(mapAttrs (