Merge remote-tracking branch 'ni/master'
This commit is contained in:
commit
13388e1d9c
@ -20,6 +20,7 @@ in {
|
||||
extraZones = {
|
||||
"krebsco.de" = ''
|
||||
cache IN A ${nets.internet.ip4.addr}
|
||||
p IN A ${nets.internet.ip4.addr}
|
||||
paste IN A ${nets.internet.ip4.addr}
|
||||
prism IN A ${nets.internet.ip4.addr}
|
||||
'';
|
||||
@ -38,7 +39,6 @@ in {
|
||||
io 60 IN NS ions.lassul.us.
|
||||
ions 60 IN A ${config.krebs.hosts.prism.nets.internet.ip4.addr}
|
||||
lol 60 IN A ${config.krebs.hosts.prism.nets.internet.ip4.addr}
|
||||
p 60 IN A ${config.krebs.hosts.prism.nets.internet.ip4.addr}
|
||||
paste 60 IN A ${config.krebs.hosts.prism.nets.internet.ip4.addr}
|
||||
radio 60 IN A ${config.krebs.hosts.prism.nets.internet.ip4.addr}
|
||||
'';
|
||||
|
@ -1,6 +1,12 @@
|
||||
{ writeDashBin, bepasty-client-cli }:
|
||||
{ bepasty-client-cli, gnused, writeDashBin }:
|
||||
|
||||
# TODO use `pkgs.exec` instead?
|
||||
writeDashBin "krebspaste" ''
|
||||
exec ${bepasty-client-cli}/bin/bepasty-cli -L 1m --url http://paste.r "$@" | sed '$ s/$/\/+inline/g'
|
||||
${bepasty-client-cli}/bin/bepasty-cli -L 1m --url http://paste.r "$@" |
|
||||
${gnused}/bin/sed '
|
||||
$ {
|
||||
s/$/\/+inline/
|
||||
p
|
||||
s/\<r\>/krebsco.de/
|
||||
}
|
||||
'
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user