Skip to content

Instantly share code, notes, and snippets.

@d-goldin
Created October 16, 2019 11:05
Show Gist options
  • Save d-goldin/ed26652acd63944f4b10980a9683b146 to your computer and use it in GitHub Desktop.
Save d-goldin/ed26652acd63944f4b10980a9683b146 to your computer and use it in GitHub Desktop.
> nix repl release-19.09 [232d274a5e1] (!) untracked
Welcome to Nix version 2.3. Type :? for help.
nix-repl> :l <nixpkgs>
Added 10842 variables.
nix-repl> systemdlib = callPackage ./nixos/modules/system/boot/systemd-lib.nix {}
nix-repl> systemdlib.attrsToSection {"a" = 2;}
"a=2\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment