Commit 072dfcd5 authored by Christopher League's avatar Christopher League
Browse files

push fonts and www packages to cachix

parent 9c4e0fcc
default:
up:
push:
$(MAKE) -C vm/www push
(cd vm/fonts; rm -f result; nix-build --no-out-link | cachix push liucs)
tar --create --xz --exclude=result --exclude='*.qcow2' vm |\
ssh liucs.net 'cat >! w/contrapunctus/_site/tmp/ligo/nixexprs.tar.xz'
......@@ -128,3 +128,36 @@ to give a no-cache header.
A related problem that could become more serious: when serving
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 --update liucs --option tarball-ttl 0
- mkdir -p ~/.config/nixpkgs
- nano ~/.config/nixpkgs/config.nix
- { allowUnfree = true; }
- nano /etc/nixos/configuration.nix
- add <liucs/vbox.nix> to imports
- 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).
So these things that can be independently built, like www/ and fonts/
should appear in cache:
nix-build | cachix push liucs
Problem with cachix: when building site locally, I'm getting
pushing /nix/store/9zac0f20j6fvg99j6vgc1r53wlfxsfqf-www
but on virtualbox it builds
/nix/store/f1yg46wkylbljk9ayzmcndscm4n1p6bc-www
(I'm getting this running from the nix store source)
Why the difference?
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
......@@ -53,7 +53,6 @@ in
};
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
tmux
firefox
......
default:
clean:
reallyclean: clean
$(RM) result
push: reallyclean
nix-build --no-out-link | cachix push liucs
......@@ -7,7 +7,7 @@ let
in
pkgs.stdenv.mkDerivation {
name = "selected-google-fonts";
src = ./.;
src = ./default.nix;
buildInputs = [pkgs.google-fonts];
phases = ["installPhase"];
installPhase = ''
......
......@@ -11,5 +11,6 @@
writableStoreUseTmpfs = false;
};
networking.hostName = "liucs";
nixpkgs.config.allowUnfree = true;
};
}
{pkgs, ...}:
{
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="
];
};
}
default: index.html
default: all
all: index.html
%.html: %.md
pandoc --standalone --css style.css $< >$@
......@@ -13,3 +15,6 @@ clean:
reallyclean: clean
$(RM) result
push: reallyclean
nix-build --no-out-link | cachix push liucs
......@@ -3,7 +3,12 @@
Welcome to the VM. This is a change to see if it updates.
And yet another change.
Now we're cooking!
Now we're cooking! I'm making yet another change, to see
if the binary cache updates.
Binary binary boondoggle.
I think this is pretty nice, really.
![](https://iconsplace.com/wp-content/uploads/_icons/0000ff/256/png/virtual-machine-2-icon-2-256.png)
......
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