diff options
author | makefu <github@syntax-fehler.de> | 2015-08-31 19:56:47 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-08-31 19:56:47 +0200 |
commit | e10d36bec7e4fb8cb82162c2e9bc86e58f2d5a0e (patch) | |
tree | 7ae3fb2cb7fc9362914a739238d87af69645be35 /makefu/2configs/Reaktor | |
parent | 3e581053f4a1ccf22154f46bb04acea3fe1b29ab (diff) |
add sample of how to extend the Reaktor config
Diffstat (limited to 'makefu/2configs/Reaktor')
-rw-r--r-- | makefu/2configs/Reaktor/simpleExtend.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/makefu/2configs/Reaktor/simpleExtend.nix b/makefu/2configs/Reaktor/simpleExtend.nix new file mode 100644 index 000000000..3b55ca412 --- /dev/null +++ b/makefu/2configs/Reaktor/simpleExtend.nix @@ -0,0 +1,21 @@ +{ config, lib, pkgs, ... }: + +with pkgs; +let + nixos-version-script = pkgs.writeScript "nix-version" '' + #! /bin/sh + . /etc/os-release + echo "$PRETTY_NAME" + ''; +in { + krebs.Reaktor.enable = true; + krebs.Reaktor.nickname = "test-reaktor"; + krebs.Reaktor.extraConfig = '' + public_commands.insert(0,{ + 'capname' : "nixos-version", + 'pattern' : indirect_pattern.format("nixos-version"), + 'argv' : ["${nixos-version-script}"], + 'env' : { 'state_dir': workdir } }) + ''; +} + |