Skip to content

Instantly share code, notes, and snippets.

@boomshroom
Last active March 27, 2018 05:29
Show Gist options
  • Save boomshroom/53270c80a69fd0a98c3aed953536f550 to your computer and use it in GitHub Desktop.
Save boomshroom/53270c80a69fd0a98c3aed953536f550 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
let
targetHome = "/home/nao";
nix = (pkgsi686Linux.nix.override {
storeDir = "${targetHome}/nix/store";
stateDir = "${targetHome}/nix/var";
confDir = "${targetHome}/nix/etc";
}).overrideAttrs (old: { doCheck = false; });
in
callPackage <nixpkgs/nixos/lib/make-system-tarball.nix> {
storeContents = [ { object = nix; symlink = "${targetHome}/nix"; }];
contents = [];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment