EXPERIMENT: Set up nixpkgs-unfree as root input as well as cachix

nixpkgs-unfree supposedly provides builds for non-free, but redistributable
packages that cache.nixos.org does not build.

Along with cuda-maintainers, it should reduce the burden for using heavy
packages for machine learning quite a bit. So, lets see how this one goes.

I should also start checking how the machine learning story is with NixOS at
all, it is rife with Python and Python has absolutely horrible ecosystem for
managing dependencies.
This commit is contained in:
Payas Relekar 2022-03-29 22:11:51 +05:30
parent 2747831355
commit 51a851767f
3 changed files with 41 additions and 5 deletions

11
cachix/nixpkgs-unfree.nix Normal file
View file

@ -0,0 +1,11 @@
{
nix.settings = {
substituters = [
"https://nixpkgs-unfree.cachix.org"
];
trusted-public-keys = [
"nixpkgs-unfree.cachix.org-1:hqvoInulhbV4nJ9yJOEr+4wxhDV4xq2d1DK7S6Nj6rs="
];
};
}

View file

@ -22,11 +22,11 @@
},
"emacs-overlay": {
"locked": {
"lastModified": 1648464768,
"narHash": "sha256-TOEDjtD2bfmzvKBBO1BqJRrkYsmjhR92bMm4imslL6Q=",
"lastModified": 1648549503,
"narHash": "sha256-FOJbdKuHAxV9TTCbKY2LRKO0SgFaMPJI5h6QfpM6YP4=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "cb5bae9a90139ea872ce8ba5c3efd5d619e85975",
"rev": "ca681435ecff48905feb643cfa99b1112943289c",
"type": "github"
},
"original": {
@ -56,6 +56,26 @@
}
},
"nixpkgs": {
"inputs": {
"nixpkgs": [
"nixpkgs-unstable"
]
},
"locked": {
"lastModified": 1645301236,
"narHash": "sha256-N6Nl4vHMpMKSODuUs25Jy2BZRyFdPPaP5LNrmWtdRxA=",
"owner": "numtide",
"repo": "nixpkgs-unfree",
"rev": "5502d85850fb04945176af60dbda9e8097637363",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nixpkgs-unfree",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1648390671,
"narHash": "sha256-u69opCeHUx3CsdIerD0wVSR+DjfDQjnztObqfk9Trqc=",
@ -76,7 +96,8 @@
"agenix": "agenix",
"emacs-overlay": "emacs-overlay",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}
}
},

View file

@ -2,7 +2,11 @@
description = "NixOS configuration (flake edition)";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs = {
url = "github:numtide/nixpkgs-unfree";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";