refactor(nix): Seperate home manager stuff from nix-darwin
This commit is contained in:
parent
0f33f4e2de
commit
6444b67a4e
9 changed files with 110 additions and 134 deletions
27
.config/nix/lib/mkSystem.nix
Normal file
27
.config/nix/lib/mkSystem.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
system: nixpkgs: # e.g. x86_64-linux
|
||||
|
||||
let
|
||||
disablePyChecks = pkg: pkg.overridePythonAttrs (old: {
|
||||
doCheck = false;
|
||||
doInstallCheck = false;
|
||||
dontCheck = true;
|
||||
});
|
||||
in {
|
||||
system = system;
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [(final: prev: {
|
||||
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [(pyfinal: pyprev: {
|
||||
dnspython = (disablePyChecks pyprev.dnspython).overridePythonAttrs (old: {
|
||||
disabledTests = [
|
||||
# This test is unreliable when my internet is throttled by Indonesian ISP, timeout everywhere... lovely...
|
||||
"test_resolver"
|
||||
] ++ old.disabledTests;
|
||||
});
|
||||
pillow = disablePyChecks pyprev.pillow;
|
||||
cherrypy = disablePyChecks pyprev.cherrypy;
|
||||
})];
|
||||
})];
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue