Skip to content

Instantly share code, notes, and snippets.

@bencoman
Created November 2, 2017 00:28
Show Gist options
  • Save bencoman/e54b33a32e69cca4e1c9a6d8ea7bfb2d to your computer and use it in GitHub Desktop.
Save bencoman/e54b33a32e69cca4e1c9a6d8ea7bfb2d to your computer and use it in GitHub Desktop.
* Installed per https://chris-martin.org/2015/installing-nixos
but without the encrypted partition
* Instead of DEVICE=/dev/mapper/enc-pv
* rather DEVICE=/dev/sda3
* pvcreate $DEVICE
* vgcreate vg $DEVICE
* Couldn't get wpa_supplicant to work from the install environment,
so before doing... $ nixos-install
* cabled into to internet gateway
* replaced...
networking.wireless.enable = true;
with...
networking.networkmanager.enable = true;
Not sure if needed to include...
environment.systemPackages... i
networkmanager networkmanagerapplet
* enabled graphical environment (alternatively test if nmcli works without)
* After install, for development (to build PDFium)...
environment.systemPackages = with pkgs; [
stdenv
git
clang
python
* mkdir -p ~/Repos/PDFium & cd ~Repos/PDFium
* Copied depot_tools from backup
and added to .bashrc...
-----------
pathAppend() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
fi
}
pathPrepend() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="$1${PATH:+":$PATH"}"
fi
}
pathPrepend /home/ben/Repos/PDFium/depot_tools
-----------
* http://fluffynukeit.com/installing-essential-software-in-nixos/
* Install PDFium depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
* Hack workaround to "/bin/bash: bad interpreter: No such file or directory"
$ sudo ln -s `which bash` /bin/bash
* SideNote: Was having a problem with .cipd_client not found when running gclient.
Traced this down to `update_depot_tools` not working due to .cipd_client not being found.
Initially bypasses setting DEPOT_TOOLS_UPDATE=0 in bash environment,
but when I checked later .cipd_client appeared. Maybe I recloned depot_tools
in the middle and that fixed something.
* Get the code (https://pdfium.googlesource.com/pdfium/)
$ mkdir repo
$ cd repo
@bencoman
Copy link
Author

bencoman commented Nov 2, 2017

NixOS install notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment