Skip to content

Instantly share code, notes, and snippets.

@awesomebytes
Forked from boomshroom/rootlessnix.nix
Last active March 27, 2018 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awesomebytes/20c81f7ef31a7fcc4d1426ebf19a7fc9 to your computer and use it in GitHub Desktop.
Save awesomebytes/20c81f7ef31a7fcc4d1426ebf19a7fc9 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"; };
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