diff --git a/1systems/pornocauster.nix b/1systems/pornocauster.nix index 415c1af..1e2c312 100644 --- a/1systems/pornocauster.nix +++ b/1systems/pornocauster.nix @@ -23,6 +23,8 @@ ../2configs/virtualization.nix ../2configs/wwan.nix + ../2configs/Reaktor/simpleExtend.nix + # hardware specifics are in here ../2configs/tp-x220.nix ]; diff --git a/2configs/Reaktor/simpleExtend.nix b/2configs/Reaktor/simpleExtend.nix new file mode 100644 index 0000000..3b55ca4 --- /dev/null +++ b/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 } }) + ''; +} +