This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pkgs = import <nixpkgs> {}; in | |
# 11. Create an image on top of a layered image | |
pkgs.dockerTools.buildImage { | |
name = "mutable-directory"; | |
tag = "latest"; | |
extraCommands = '' | |
mkdir ./example-output | |
chmod 777 ./example-output | |
''; | |
config.Cmd = [ "${pkgs.bash}/bin/bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------- Doc test execution failure -------- | |
ID: function-library-lib.attrsets.getOutput-example | |
Evaluating the Nix expression: | |
{ | |
actual = let | |
lib = import /home/grahamc/projects/nixpkgs/lib; | |
context = ( | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shellcheckHook = makeSetupHook { | |
name = "shellcheck-hook"; | |
substitutions = {}; | |
} | |
(pkgs.writeText "foo" '' | |
( | |
# lol | |
filename=$(cat "$0" | tail -n1 | ${pkgs.utillinux}/bin/rev | cut -d' ' -f2 | ${pkgs.utillinux}/bin/rev) | |
${pkgs.shellcheck}/bin/shellcheck -s bash "$filename" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1] grahamc@Morbo> cat /nix/store/r6fx7f861dba25mks70lcidwjc9hxqdi-autorandr-1.1/lib/systemd/system/autorandr.service | |
[Unit] | |
Description=autorandr execution hook | |
After=sleep.target | |
# Note: StartLimitInterval was renamed to StartLimitIntervalSec in systemd-230. | |
# See autorandr bug #69. Do not rename for now, as the old name is kept for | |
# compatibility. | |
StartLimitInterval=5 | |
StartLimitBurst=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1] grahamc@Morbo> ./result/bin/daps ~/projects | |
Usage: | |
1. daps -d DC-file [--options] <subcommand> [--subcommand-options] | |
2. daps -m MAIN file [--options] <subcommand> [--subcommand-options] | |
Global Options: | |
--builddir=BUILD_DIR Directory where every output daps generates will | |
end up. | |
Default: <doc dir>/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emacs = { | |
buildOrg = {emacs ? emacs25-nox, init ? ./init.org}: | |
runCommand "init.el" | |
{ buildInputs = [ emacs ]; } | |
'' | |
mkdir -p $out; | |
ln -s "${init}" ./init.org; | |
emacs -Q --script "${./assets/org-build.el}" -f make-init-el; | |
cp init.el $out; | |
''; |
I hereby claim:
- I am grahamc on github.
- I am graham (https://keybase.io/graham) on keybase.
- I have a public key ASAC4QV3QF3tHxELFdSoMZfq3w19D4ODgBfoTesOz_4kQgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
let | |
inherit (lib) mkIf mkMerge mkThenElse; | |
cfg = config.r6d.config-generator; | |
computers = config.r6d.computers; | |
profiles = config.r6d.profiles; | |
in | |
{ |