do not build with ccache

This commit is contained in:
陈浩南 2023-12-04 11:41:29 +08:00
parent dfad8c1df7
commit f9e35b8837
3 changed files with 16 additions and 28 deletions

View File

@ -1169,11 +1169,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1701485421,
"narHash": "sha256-JElGXBFzRIigI7BNA4t47iHTkpimQI+s3IbpzpKtrgo=",
"lastModified": 1701660218,
"narHash": "sha256-hW/PSHXaF8L/06RN6fa/ZNyEjJCy0T2lN91dtBZ/FvE=",
"owner": "CHN-beta",
"repo": "nixpkgs",
"rev": "cc66a68d003925ee63322f7aa5e73a0ff264d18b",
"rev": "3acbf3e037d3b8fafaac4a7e60defe9e8f741865",
"type": "github"
},
"original": {
@ -1185,11 +1185,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1701525262,
"narHash": "sha256-QHa0f+kVImvP7QV1RoqoXFmnwBhlDZdI3lX4kQZjUV8=",
"lastModified": 1701660161,
"narHash": "sha256-Q6N91xL87pMyKcV983ffJsjq13TItxdMNqMSPiBnUXY=",
"owner": "CHN-beta",
"repo": "nixpkgs",
"rev": "2357a8cea1218117754ad6d147ceb5890c651350",
"rev": "f90d85fe584c552c76252ccfa534ac30f2a6b4c6",
"type": "github"
},
"original": {

View File

@ -323,20 +323,9 @@ inputs:
))
(attrsToList servers)));
};
nixpkgs.config =
{
permittedInsecurePackages = with inputs.pkgs;
[
openssl_1_1.name electron_19.name python2.name electron_12.name electron_24.name
zotero.name
];
allowUnfree = true;
};
home-manager =
{
useGlobalPkgs = true;
useUserPackages = true;
};
nixpkgs.config.permittedInsecurePackages = map (p: p.name)
(with inputs.pkgs; [ openssl_1_1 electron_19 python2 electron_12 electron_24 zotero ]);
home-manager = { useGlobalPkgs = true; useUserPackages = true; };
}
# >= desktop
(

View File

@ -20,20 +20,19 @@ inputs:
{
nixpkgs =
{
config.allowUnfree = true;
config.cudaSupport = nixpkgs.cudaSupport;
overlays = [(final: prev:
config = { allowUnfree = true; cudaSupport = nixpkgs.cudaSupport; };
overlays = [(final: prev: { genericPackages = import inputs.topInputs.nixpkgs
{
genericPackages =
import inputs.topInputs.nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
})];
system = "x86_64-linux";
config = { allowUnfree = true; inherit (inputs.config.nixpkgs.config) permittedInsecurePackages; };
};})];
};
programs.ccache = { enable = true; cacheDir = "/var/lib/ccache"; };
nix.settings.extra-sandbox-paths = [ inputs.config.programs.ccache.cacheDir ];
}
(
mkConditional (nixpkgs.march != null)
{
programs.ccache = { enable = true; cacheDir = "/var/lib/ccache"; };
nix.settings.extra-sandbox-paths = [ inputs.config.programs.ccache.cacheDir ];
nixpkgs =
{
hostPlatform = { system = "x86_64-linux"; gcc = { arch = nixpkgs.march; tune = nixpkgs.march; }; };