refactor(nix): Seperate home manager stuff from nix-darwin

This commit is contained in:
Ahmad Ansori Palembani 2024-10-16 14:43:06 +07:00
parent 0f33f4e2de
commit 6444b67a4e
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
9 changed files with 110 additions and 134 deletions

View 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;
};
}