Familliar syntax and all of <nixpkgs/lib>
and builtins
in your hands.
Now going through jq
tutorial:
Identity filter
$ # jq
#!/usr/bin/env bash | |
sudo mkdir -p /run/nix/current-load | |
sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist | |
sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist | |
sudo curl -fsSL -o /Library/LaunchDaemons/org.nixos.nix-daemon.plist https://gist.github.com/LnL7/ba2eac19e77cd6b4bb02c8de03bf5f4e/raw/69722c2b13c4eb022a1312cd6891838b413e1f96/org.nixos.nix-daemon.plist | |
sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist | |
# Configure /etc/nix/machines | |
# Make sure root can ssh to the builder (known_hosts etc.) |
from __future__ import print_function | |
import sys | |
import tokenize | |
_is_declarative = True | |
with (getattr(tokenize, 'open', open))('setup.py') as setup_py: | |
_lines = [] | |
for line in setup_py: | |
if _is_declarative and line.strip() not in ['import setuptools', 'from setuptools import setup', 'setup()', '']: |
sandbox = true | |
extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib /private/tmp /private/var/tmp /usr/bin/env |