Commit 28bc5fbc authored by Christopher League's avatar Christopher League
Browse files

split out binary cache module

parent 072dfcd5
......@@ -131,15 +131,14 @@ from nix store path, it always reports Last-Modified as 1970.
* Turning a base vbox into liucs
- login as root
- nix-channel --add https://contrapunctus.net/tmp/ligo liucs
- nix-channel --add https://gitlab.liu.edu/league/nixvm/-/archive/master/nixvm-master.tar.gz liucs
- nix-channel --update liucs --option tarball-ttl 0
- add <liucs/cache.nix> to /etc/nixos/configuration.nix
- mkdir -p ~/.config/nixpkgs
- nano ~/.config/nixpkgs/config.nix
- { allowUnfree = true; }
- nano /etc/nixos/configuration.nix
- add <liucs/vbox.nix> to imports
- add { allowUnfree = true; } to ~/.config/nixpkgs/config.nix
- nixos-rebuild switch
- add <liucs/vbox.nix> to /etc/nixos/configuration.nix
- nixos-rebuild switch
Until I have a binary cache working, this procedure has to install
pandoc (to build web page) and google-fonts (to subset it).
......@@ -161,3 +160,16 @@ Is it just the difference between having a result@ link? other junk
that doesn't get saved? That's the problem with src = ./.
/nix/store/ssp1w10nix9a1mf5lc590qr451rv267k-www
* Troubleshoot closure
When I evolve the nixos-minimal into liucs image,
it is still installing ghc, attoparsec, etc.
It is also downloading a bunch of -doc slices
(attoparsec-doc)
It's also downloading all of google-fonts.
Maybe the binary cache has to take effect first, then
we can attempt to use it.
{
environment.systemPackages = [pkgs.cachix];
nix = {
binaryCaches = [
"https://cache.nixos.org/"
"https://liucs.cachix.org"
];
binaryCachePublicKeys = [
"liucs.cachix.org-1:BBae2s+HPII0+1bthwh4em1MQyc19MTQsT32Dzy0Jeo="
];
};
}
......@@ -3,15 +3,4 @@
imports = [./desktop.nix];
networking.hostName = "liucs";
boot.loader.timeout = 2;
environment.systemPackages = [pkgs.cachix];
nix = {
binaryCaches = [
"https://cache.nixos.org/"
"https://liucs.cachix.org"
];
binaryCachePublicKeys = [
"liucs.cachix.org-1:BBae2s+HPII0+1bthwh4em1MQyc19MTQsT32Dzy0Jeo="
];
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment