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
| services.logstash = { | |
| enable = true; | |
| inputConfig = { | |
| __type = "repeated"; | |
| values = [ | |
| { name = "file"; value = { | |
| type = "syslog"; | |
| path = [ | |
| "/var/log/messages" |
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
| services.logstash = { | |
| enable = true; | |
| inputConfig = config.lib.logstash.mkNameValuePairs [ | |
| { | |
| file = { | |
| type = "syslog"; | |
| path = "/var/log/messages"; | |
| }; | |
| } |
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
| # /nix/store/5qmz5wc596kl7rywx56phyl2gb0052w7-python-2.7.3/bin/python webcharon.wsgi | |
| ['/root', '/nix/store/5qmz5wc596kl7rywx56phyl2gb0052w7-python-2.7.3/lib/python27.zip', '/nix/store/5qmz5wc596kl7rywx56phyl2gb0052w7-python-2.7.3/lib/python2.7', '/nix/store/5qmz5wc596kl7rywx56phyl2gb0052w7-python-2.7.3/lib/python2.7/plat-linux2', '/nix/store/5qmz5wc596kl7rywx56phyl2gb0052w7-python-2.7.3/lib/python2.7/lib-tk', '/nix/store/5qmz5wc596kl7rywx56phyl2gb0052w7-python-2.7.3/lib/python2.7/lib-old', '/nix/store/5qmz5wc596kl7rywx56phyl2gb0052w7-python-2.7.3/lib/python2.7/lib-dynload', '/nix/store/5qmz5wc596kl7rywx56phyl2gb0052w7-python-2.7.3/lib/python2.7/site-packages', '/nix/store/n67kdkin76lcswjfv267sig3rp5iyl1f-webcharon-0/lib/python-2.7/site-packages'] |
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
| _multiprocess_can_split_ = True | |
| val = 1 | |
| def setup(): | |
| global val | |
| val = 2 | |
| def teardown(): | |
| global val |
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
| $ cat test.nix | |
| builtins.filterSource (path: type: | |
| import ((import <nixpkgs> {}).writeTextFile { name = "true.nix"; text = "true"; }).outPath | |
| ) ./. | |
| $ nix-instantiate test.nix | |
| error: bad archive: unknown field | |
| (use `--show-trace' to show detailed location information) |
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
| .POSIX: | |
| TARGETS = a b | |
| .PHONY: all | |
| all: $(TARGETS) | |
| $(TARGETS): $@.o libexample.a | |
| $(CC) $(LDFLAGS) -lexample $@.o |
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
| .POSIX: | |
| TARGETS = a b | |
| .PHONY: all | |
| all: $(TARGETS) | |
| $(TARGETS): lib.a |
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
| .POSIX: | |
| BUILDROOT = . | |
| SOURCEROOT = . | |
| PROGS = $(BUILDROOT)/a $(BUILDROOT)/b | |
| .PHONY: all | |
| all: $(BUILDROOT)/a $(BUILDROOT)/b |
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
| .POSIX: | |
| TESTS = tests/register-action.test | |
| .PHONY: all | |
| all: | |
| .PHONY: check | |
| check: $(TESTS) |
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
| $ ls /run/current-system/sw/lib/python2.7/site-packages/charon-0.1-py2.7.egg/charon/../../../../../share/nix/charon/eval-machine-info.nix | |
| /run/current-system/sw/lib/python2.7/site-packages/charon-0.1-py2.7.egg/charon/../../../../../share/nix/charon/eval-machine-info.nix | |
| $ nix-instantiate -I charon=/run/current-system/sw/lib/python2.7/site-packages/charon-0.1-py2.7.egg/charon/../../../../../share/nix/charon --find-file charon/eval-machine-info.nix | |
| error: unable to find `charon/eval-machine-info.nix |