$ nix-instantiate --eval test.nix --strict
{ noOrder = [ "lumina" "gnome3" "plasma5" ]; order = [ "gnome3" "plasma5" "lumina" ]; }
This file contains hidden or 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
| solr = callPackage ../servers/search/solr { java = jre; }; |
This test the performance of Nix __functor function calls.
Normal function result:
$ perf stat -r 10 -d nix-instantiate --eval ./test.nix -A normal
Performance counter stats for 'nix-instantiate --eval ./test.nix -A normal' (10 runs):
91.359343 task-clock (msec) # 1.002 CPUs utilized ( +- 2.66% )
30 context-switches # 0.329 K/sec ( +- 7.95% )
This file contains hidden or 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
| # nixos-rebuild build-vm -I nixpkgs=/home/eric/Projects/nixos/nixpkgs -I nixos-config=/tmp/wireguard-conf.nix | |
| { config, pkgs, ... }: | |
| { | |
| imports = | |
| [ | |
| <nixos/modules/installer/scan/not-detected.nix> | |
| ]; | |
| nix.maxJobs = 4; |
This file contains hidden or 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
| require 'digest/sha1' | |
| require 'csv' | |
| require 'pp' | |
| class ShaRand | |
| attr_reader :data | |
| def initialize | |
| @data = {} |