* tv -> tv *

This commit is contained in:
tv 2015-07-27 02:02:34 +02:00
parent 45b173c11e
commit afb6afff1d
42 changed files with 125 additions and 123 deletions

View File

@ -2,7 +2,7 @@
{ {
imports = [ imports = [
../../2configs/tv/smartd.nix ../configs/smartd.nix
]; ];
boot.loader.grub = { boot.loader.grub = {

View File

@ -33,7 +33,7 @@ _:
# man:systemd-tmpfiles(8) # man:systemd-tmpfiles(8)
# Process: 19272 ExecStart=/nix/store/2l33gg7nmncqkpysq9f5fxyhlw6ncm2j-systemd-217/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=1/FAILURE) # Process: 19272 ExecStart=/nix/store/2l33gg7nmncqkpysq9f5fxyhlw6ncm2j-systemd-217/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=1/FAILURE)
# Main PID: 19272 (code=exited, status=1/FAILURE) # Main PID: 19272 (code=exited, status=1/FAILURE)
# #
# Mar 16 10:29:17 cd systemd-tmpfiles[19272]: [/usr/lib/tmpfiles.d/legacy.conf:26] Unknown group 'lock'. # Mar 16 10:29:17 cd systemd-tmpfiles[19272]: [/usr/lib/tmpfiles.d/legacy.conf:26] Unknown group 'lock'.
# Mar 16 10:29:18 cd systemd-tmpfiles[19272]: Two or more conflicting lines for /var/log/journal configured, ignoring. # Mar 16 10:29:18 cd systemd-tmpfiles[19272]: Two or more conflicting lines for /var/log/journal configured, ignoring.
# Mar 16 10:29:18 cd systemd-tmpfiles[19272]: Two or more conflicting lines for /var/log/journal/7b35116927d74ea58785e00b47ac0f0d configured, ignoring. # Mar 16 10:29:18 cd systemd-tmpfiles[19272]: Two or more conflicting lines for /var/log/journal/7b35116927d74ea58785e00b47ac0f0d configured, ignoring.

View File

@ -1,5 +1,9 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
tvpkgs = import ../pkgs { inherit pkgs; };
in
with builtins; with builtins;
with lib; with lib;
let let
@ -59,7 +63,7 @@ let
ExecStart = pkgs.writeScript "charybdis-service" '' ExecStart = pkgs.writeScript "charybdis-service" ''
#! /bin/sh #! /bin/sh
set -euf set -euf
exec ${Zpkgs.charybdis}/bin/charybdis-ircd \ exec ${tvpkgs.charybdis}/bin/charybdis-ircd \
-foreground \ -foreground \
-logfile /dev/stderr \ -logfile /dev/stderr \
-configfile ${configFile} -configfile ${configFile}
@ -88,7 +92,7 @@ let
* *
* See reference.conf for more information. * See reference.conf for more information.
*/ */
/* Extensions */ /* Extensions */
#loadmodule "extensions/chm_operonly_compat.so"; #loadmodule "extensions/chm_operonly_compat.so";
#loadmodule "extensions/chm_quietunreg_compat.so"; #loadmodule "extensions/chm_quietunreg_compat.so";
@ -111,17 +115,17 @@ let
#loadmodule "extensions/sno_globaloper.so"; #loadmodule "extensions/sno_globaloper.so";
#loadmodule "extensions/sno_whois.so"; #loadmodule "extensions/sno_whois.so";
loadmodule "extensions/override.so"; loadmodule "extensions/override.so";
/* /*
* IP cloaking extensions: use ip_cloaking_4.0 * IP cloaking extensions: use ip_cloaking_4.0
* if you're linking 3.2 and later, otherwise use * if you're linking 3.2 and later, otherwise use
* ip_cloaking.so, for compatibility with older 3.x * ip_cloaking.so, for compatibility with older 3.x
* releases. * releases.
*/ */
#loadmodule "extensions/ip_cloaking_4.0.so"; #loadmodule "extensions/ip_cloaking_4.0.so";
#loadmodule "extensions/ip_cloaking.so"; #loadmodule "extensions/ip_cloaking.so";
serverinfo { serverinfo {
name = ${toJSON (head config.krebs.build.host.nets.retiolum.aliases)}; name = ${toJSON (head config.krebs.build.host.nets.retiolum.aliases)};
sid = "4z3"; sid = "4z3";
@ -129,23 +133,23 @@ let
network_name = "irc.retiolum"; network_name = "irc.retiolum";
#network_desc = "Retiolum IRC Network"; #network_desc = "Retiolum IRC Network";
hub = yes; hub = yes;
/* On multi-homed hosts you may need the following. These define /* On multi-homed hosts you may need the following. These define
* the addresses we connect from to other servers. */ * the addresses we connect from to other servers. */
/* for IPv4 */ /* for IPv4 */
vhost = ${concatMapStringsSep ", " toJSON config.krebs.build.host.nets.retiolum.addrs4}; vhost = ${concatMapStringsSep ", " toJSON config.krebs.build.host.nets.retiolum.addrs4};
/* for IPv6 */ /* for IPv6 */
vhost6 = ${concatMapStringsSep ", " toJSON config.krebs.build.host.nets.retiolum.addrs6}; vhost6 = ${concatMapStringsSep ", " toJSON config.krebs.build.host.nets.retiolum.addrs6};
/* ssl_private_key: our ssl private key */ /* ssl_private_key: our ssl private key */
ssl_private_key = "/tmp/ssl.key"; ssl_private_key = "/tmp/ssl.key";
/* ssl_cert: certificate for our ssl server */ /* ssl_cert: certificate for our ssl server */
ssl_cert = ${toJSON cfg.sslCert}; ssl_cert = ${toJSON cfg.sslCert};
/* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 1024 */ /* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 1024 */
ssl_dh_params = "/tmp/dh.pem"; ssl_dh_params = "/tmp/dh.pem";
/* ssld_count: number of ssld processes you want to start, if you /* ssld_count: number of ssld processes you want to start, if you
* have a really busy server, using N-1 where N is the number of * have a really busy server, using N-1 where N is the number of
* cpu/cpu cores you have might be useful. A number greater than one * cpu/cpu cores you have might be useful. A number greater than one
@ -153,20 +157,20 @@ let
* two file descriptors per SSL connection. * two file descriptors per SSL connection.
*/ */
ssld_count = 1; ssld_count = 1;
/* default max clients: the default maximum number of clients /* default max clients: the default maximum number of clients
* allowed to connect. This can be changed once ircd has started by * allowed to connect. This can be changed once ircd has started by
* issuing: * issuing:
* /quote set maxclients <limit> * /quote set maxclients <limit>
*/ */
default_max_clients = 1024; default_max_clients = 1024;
/* nicklen: enforced nickname length (for this server only; must not /* nicklen: enforced nickname length (for this server only; must not
* be longer than the maximum length set while building). * be longer than the maximum length set while building).
*/ */
nicklen = 30; nicklen = 30;
}; };
admin { admin {
name = "tv"; name = "tv";
description = "peer"; description = "peer";
@ -184,11 +188,11 @@ let
fname_operspylog = "/dev/stderr"; fname_operspylog = "/dev/stderr";
fname_ioerrorlog = "/dev/stderr"; fname_ioerrorlog = "/dev/stderr";
}; };
/* class {} blocks MUST be specified before anything that uses them. That /* class {} blocks MUST be specified before anything that uses them. That
* means they must be defined before auth {} and before connect {}. * means they must be defined before auth {} and before connect {}.
*/ */
class "krebs" { class "krebs" {
ping_time = 2 minutes; ping_time = 2 minutes;
number_per_ident = 10; number_per_ident = 10;
@ -200,7 +204,7 @@ let
max_number = 3000; max_number = 3000;
sendq = 1 megabyte; sendq = 1 megabyte;
}; };
class "users" { class "users" {
ping_time = 2 minutes; ping_time = 2 minutes;
number_per_ident = 10; number_per_ident = 10;
@ -212,21 +216,21 @@ let
max_number = 3000; max_number = 3000;
sendq = 400 kbytes; sendq = 400 kbytes;
}; };
class "opers" { class "opers" {
ping_time = 5 minutes; ping_time = 5 minutes;
number_per_ip = 10; number_per_ip = 10;
max_number = 1000; max_number = 1000;
sendq = 1 megabyte; sendq = 1 megabyte;
}; };
class "server" { class "server" {
ping_time = 5 minutes; ping_time = 5 minutes;
connectfreq = 5 minutes; connectfreq = 5 minutes;
max_number = 1; max_number = 1;
sendq = 4 megabytes; sendq = 4 megabytes;
}; };
listen { listen {
/* defer_accept: wait for clients to send IRC handshake data before /* defer_accept: wait for clients to send IRC handshake data before
* accepting them. if you intend to use software which depends on the * accepting them. if you intend to use software which depends on the
@ -234,7 +238,7 @@ let
* otherwise, you probably want to leave it on. * otherwise, you probably want to leave it on.
*/ */
defer_accept = yes; defer_accept = yes;
/* If you want to listen on a specific IP only, specify host. /* If you want to listen on a specific IP only, specify host.
* host definitions apply only to the following port line. * host definitions apply only to the following port line.
*/ */
@ -245,7 +249,7 @@ let
port = 6667; port = 6667;
sslport = 6697; sslport = 6697;
}; };
/* auth {}: allow users to connect to the ircd (OLD I:) /* auth {}: allow users to connect to the ircd (OLD I:)
* auth {} blocks MUST be specified in order of precedence. The first one * auth {} blocks MUST be specified in order of precedence. The first one
* that matches a user will be used. So place spoofs first, then specials, * that matches a user will be used. So place spoofs first, then specials,
@ -260,21 +264,21 @@ let
*/ */
user = "*@10.243.0.0/12"; user = "*@10.243.0.0/12";
user = "*@42::/16"; user = "*@42::/16";
/* password: an optional password that is required to use this block. /* password: an optional password that is required to use this block.
* By default this is not encrypted, specify the flag "encrypted" in * By default this is not encrypted, specify the flag "encrypted" in
* flags = ...; below if it is. * flags = ...; below if it is.
*/ */
#password = "letmein"; #password = "letmein";
/* spoof: fake the users user@host to be be this. You may either /* spoof: fake the users user@host to be be this. You may either
* specify a host or a user@host to spoof to. This is free-form, * specify a host or a user@host to spoof to. This is free-form,
* just do everyone a favour and dont abuse it. (OLD I: = flag) * just do everyone a favour and dont abuse it. (OLD I: = flag)
*/ */
#spoof = "I.still.hate.packets"; #spoof = "I.still.hate.packets";
/* Possible flags in auth: /* Possible flags in auth:
* *
* encrypted | password is encrypted with mkpasswd * encrypted | password is encrypted with mkpasswd
* spoof_notice | give a notice when spoofing hosts * spoof_notice | give a notice when spoofing hosts
* exceed_limit (old > flag) | allow user to exceed class user limits * exceed_limit (old > flag) | allow user to exceed class user limits
@ -293,88 +297,88 @@ let
* need_sasl | require SASL id for user in this class * need_sasl | require SASL id for user in this class
*/ */
flags = kline_exempt, exceed_limit, flood_exempt; flags = kline_exempt, exceed_limit, flood_exempt;
/* class: the class the user is placed in */ /* class: the class the user is placed in */
class = "krebs"; class = "krebs";
}; };
auth { auth {
user = "*@*"; user = "*@*";
class = "users"; class = "users";
}; };
/* privset {} blocks MUST be specified before anything that uses them. That /* privset {} blocks MUST be specified before anything that uses them. That
* means they must be defined before operator {}. * means they must be defined before operator {}.
*/ */
privset "local_op" { privset "local_op" {
privs = oper:local_kill, oper:operwall; privs = oper:local_kill, oper:operwall;
}; };
privset "server_bot" { privset "server_bot" {
extends = "local_op"; extends = "local_op";
privs = oper:kline, oper:remoteban, snomask:nick_changes; privs = oper:kline, oper:remoteban, snomask:nick_changes;
}; };
privset "global_op" { privset "global_op" {
extends = "local_op"; extends = "local_op";
privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline, privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline,
oper:resv, oper:mass_notice, oper:remoteban; oper:resv, oper:mass_notice, oper:remoteban;
}; };
privset "admin" { privset "admin" {
extends = "global_op"; extends = "global_op";
privs = oper:admin, oper:die, oper:rehash, oper:spy, oper:override; privs = oper:admin, oper:die, oper:rehash, oper:spy, oper:override;
}; };
privset "aids" { privset "aids" {
privs = oper:override, oper:rehash; privs = oper:override, oper:rehash;
}; };
operator "aids" { operator "aids" {
user = "*@10.243.*"; user = "*@10.243.*";
privset = "aids"; privset = "aids";
flags = ~encrypted; flags = ~encrypted;
password = "balls"; password = "balls";
}; };
operator "god" { operator "god" {
/* name: the name of the oper must go above */ /* name: the name of the oper must go above */
/* user: the user@host required for this operator. CIDR *is* /* user: the user@host required for this operator. CIDR *is*
* supported now. auth{} spoofs work here, other spoofs do not. * supported now. auth{} spoofs work here, other spoofs do not.
* multiple user="" lines are supported. * multiple user="" lines are supported.
*/ */
user = "*god@127.0.0.1"; user = "*god@127.0.0.1";
/* password: the password required to oper. Unless ~encrypted is /* password: the password required to oper. Unless ~encrypted is
* contained in flags = ...; this will need to be encrypted using * contained in flags = ...; this will need to be encrypted using
* mkpasswd, MD5 is supported * mkpasswd, MD5 is supported
*/ */
password = "5"; password = "5";
/* rsa key: the public key for this oper when using Challenge. /* rsa key: the public key for this oper when using Challenge.
* A password should not be defined when this is used, see * A password should not be defined when this is used, see
* doc/challenge.txt for more information. * doc/challenge.txt for more information.
*/ */
#rsa_public_key_file = "/usr/local/ircd/etc/oper.pub"; #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
/* umodes: the specific umodes this oper gets when they oper. /* umodes: the specific umodes this oper gets when they oper.
* If this is specified an oper will not be given oper_umodes * If this is specified an oper will not be given oper_umodes
* These are described above oper_only_umodes in general {}; * These are described above oper_only_umodes in general {};
*/ */
#umodes = locops, servnotice, operwall, wallop; #umodes = locops, servnotice, operwall, wallop;
/* fingerprint: if specified, the oper's client certificate /* fingerprint: if specified, the oper's client certificate
* fingerprint will be checked against the specified fingerprint * fingerprint will be checked against the specified fingerprint
* below. * below.
*/ */
#fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b"; #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
/* snomask: specific server notice mask on oper up. /* snomask: specific server notice mask on oper up.
* If this is specified an oper will not be given oper_snomask. * If this is specified an oper will not be given oper_snomask.
*/ */
snomask = "+Zbfkrsuy"; snomask = "+Zbfkrsuy";
/* flags: misc options for the operator. You may prefix an option /* flags: misc options for the operator. You may prefix an option
* with ~ to disable it, e.g. ~encrypted. * with ~ to disable it, e.g. ~encrypted.
* *
@ -386,30 +390,30 @@ let
* need_ssl: must be using SSL/TLS to oper up * need_ssl: must be using SSL/TLS to oper up
*/ */
flags = encrypted; flags = encrypted;
/* privset: privileges set to grant */ /* privset: privileges set to grant */
privset = "admin"; privset = "admin";
}; };
service { service {
name = "services.int"; name = "services.int";
}; };
cluster { cluster {
name = "*"; name = "*";
flags = kline, tkline, unkline, xline, txline, unxline, resv, tresv, unresv; flags = kline, tkline, unkline, xline, txline, unxline, resv, tresv, unresv;
}; };
shared { shared {
oper = "*@*", "*"; oper = "*@*", "*";
flags = all, rehash; flags = all, rehash;
}; };
/* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */ /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */
exempt { exempt {
ip = "127.0.0.1"; ip = "127.0.0.1";
}; };
channel { channel {
use_invex = yes; use_invex = yes;
use_except = yes; use_except = yes;
@ -431,14 +435,14 @@ let
channel_target_change = yes; channel_target_change = yes;
disable_local_channels = no; disable_local_channels = no;
}; };
serverhide { serverhide {
flatten_links = yes; flatten_links = yes;
links_delay = 5 minutes; links_delay = 5 minutes;
hidden = no; hidden = no;
disable_hidden = no; disable_hidden = no;
}; };
/* These are the blacklist settings. /* These are the blacklist settings.
* You can have multiple combinations of host and rejection reasons. * You can have multiple combinations of host and rejection reasons.
* They are used in pairs of one host/rejection reason. * They are used in pairs of one host/rejection reason.
@ -471,7 +475,7 @@ let
host = "rbl.efnetrbl.org"; host = "rbl.efnetrbl.org";
type = ipv4; type = ipv4;
reject_reason = "''${nick}, your IP (''${ip}) is listed in EFnet's RBL. For assistance, see http://efnetrbl.org/?i=''${ip}"; reject_reason = "''${nick}, your IP (''${ip}) is listed in EFnet's RBL. For assistance, see http://efnetrbl.org/?i=''${ip}";
# host = "ircbl.ahbl.org"; # host = "ircbl.ahbl.org";
# type = ipv4; # type = ipv4;
# reject_reason = "''${nick}, your IP (''${ip}) is listed in ''${dnsbl-host} for having an open proxy. In order to protect ''${network-name} from abuse, we are not allowing connections with open proxies to connect."; # reject_reason = "''${nick}, your IP (''${ip}) is listed in ''${dnsbl-host} for having an open proxy. In order to protect ''${network-name} from abuse, we are not allowing connections with open proxies to connect.";
@ -485,43 +489,43 @@ let
# type = ipv4, ipv6; # type = ipv4, ipv6;
# reject_reason = "''${nick}, your IP (''${ip}) is listed in ''${dnsbl-host} for some reason. In order to protect ''${network-name} from abuse, we are not allowing connections listed in ''${dnsbl-host} to connect"; # reject_reason = "''${nick}, your IP (''${ip}) is listed in ''${dnsbl-host} for some reason. In order to protect ''${network-name} from abuse, we are not allowing connections listed in ''${dnsbl-host} to connect";
}; };
alias "NickServ" { alias "NickServ" {
target = "NickServ"; target = "NickServ";
}; };
alias "ChanServ" { alias "ChanServ" {
target = "ChanServ"; target = "ChanServ";
}; };
alias "OperServ" { alias "OperServ" {
target = "OperServ"; target = "OperServ";
}; };
alias "MemoServ" { alias "MemoServ" {
target = "MemoServ"; target = "MemoServ";
}; };
alias "NS" { alias "NS" {
target = "NickServ"; target = "NickServ";
}; };
alias "CS" { alias "CS" {
target = "ChanServ"; target = "ChanServ";
}; };
alias "OS" { alias "OS" {
target = "OperServ"; target = "OperServ";
}; };
alias "MS" { alias "MS" {
target = "MemoServ"; target = "MemoServ";
}; };
general { general {
hide_error_messages = opers; hide_error_messages = opers;
hide_spoof_ips = yes; hide_spoof_ips = yes;
/* /*
* default_umodes: umodes to enable on connect. * default_umodes: umodes to enable on connect.
* If you have enabled the new ip_cloaking_4.0 module, and you want * If you have enabled the new ip_cloaking_4.0 module, and you want
@ -533,7 +537,7 @@ let
* default_umodes = "+ih"; * default_umodes = "+ih";
*/ */
default_umodes = "+i"; default_umodes = "+i";
default_operstring = "is an IRC Operator"; default_operstring = "is an IRC Operator";
default_adminstring = "is a Server Administrator"; default_adminstring = "is a Server Administrator";
servicestring = "is a Network Service"; servicestring = "is a Network Service";
@ -587,17 +591,15 @@ let
max_ratelimit_tokens = 30; max_ratelimit_tokens = 30;
away_interval = 30; away_interval = 30;
}; };
modules { modules {
path = "modules"; path = "modules";
path = "modules/autoload"; path = "modules/autoload";
}; };
exempt { exempt {
ip = "10.243.0.0/16"; ip = "10.243.0.0/16";
}; };
''; '';
Zpkgs = import ../../Zpkgs/tv { inherit pkgs; };
in in
out out

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with import ../../4lib/tv { inherit lib pkgs; }; with import ../lib { inherit lib pkgs; };
let let
out = { out = {

View File

@ -1,6 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
with import ../../Zpkgs/tv { inherit pkgs; }; with import ../pkgs { inherit pkgs; };
{ {
environment.systemPackages = [ environment.systemPackages = [

View File

@ -2,7 +2,7 @@
{ {
imports = [ imports = [
../../2configs/tv/smartd.nix ../configs/smartd.nix
]; ];
boot.extraModprobeConfig = '' boot.extraModprobeConfig = ''

View File

@ -2,7 +2,7 @@
{ {
imports = [ imports = [
../../2configs/tv/urxvt.nix # TODO via xserver ../configs/urxvt.nix # TODO via xserver
]; ];
services.xserver.enable = true; services.xserver.enable = true;

View File

@ -5,7 +5,7 @@
# TODO consul-bootstrap HOST that actually does is # TODO consul-bootstrap HOST that actually does is
# TODO tools to inspect state of a cluster in outage state # TODO tools to inspect state of a cluster in outage state
with import ../../4lib/tv { inherit lib pkgs; }; with import ../lib { inherit lib pkgs; };
let let
cfg = config.tv.consul; cfg = config.tv.consul;

View File

@ -36,9 +36,9 @@ let
path = with pkgs; [ path = with pkgs; [
iptables iptables
]; ];
restartIfChanged = true; restartIfChanged = true;
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
RemainAfterExit = true; RemainAfterExit = true;

View File

@ -5,7 +5,7 @@ index 03dd907..3698e85 100644
@@ -82,7 +82,6 @@ start_bandb(void) @@ -82,7 +82,6 @@ start_bandb(void)
const char *suffix = ""; const char *suffix = "";
#endif #endif
- rb_setenv("BANDB_DBPATH", PKGLOCALSTATEDIR "/ban.db", 1); - rb_setenv("BANDB_DBPATH", PKGLOCALSTATEDIR "/ban.db", 1);
if(bandb_path == NULL) if(bandb_path == NULL)
{ {

View File

@ -4,7 +4,7 @@ diff -rN -u old-lentil/src/Lentil/File.hs new-lentil/src/Lentil/File.hs
@@ -13,10 +13,13 @@ @@ -13,10 +13,13 @@
import Lentil.Types import Lentil.Types
import Lentil.Parse.Run import Lentil.Parse.Run
+import System.Directory +import System.Directory
import System.FilePath import System.FilePath
import System.FilePath.Find import System.FilePath.Find
@ -12,12 +12,12 @@ diff -rN -u old-lentil/src/Lentil/File.hs new-lentil/src/Lentil/File.hs
import Data.Monoid import Data.Monoid
import Control.Applicative import Control.Applicative
+import Control.Exception.Base +import Control.Exception.Base
import qualified Data.List as L import qualified Data.List as L
@@ -36,7 +39,12 @@ @@ -36,7 +39,12 @@
-------------- --------------
findIssues :: [FilePath] -> [FilePath] -> IO [Issue] findIssues :: [FilePath] -> [FilePath] -> IO [Issue]
-findIssues is xs = find always (findClause is xs) "." >>= issueFinder -findIssues is xs = find always (findClause is xs) "." >>= issueFinder
+findIssues is xs = +findIssues is xs =
@ -26,7 +26,7 @@ diff -rN -u old-lentil/src/Lentil/File.hs new-lentil/src/Lentil/File.hs
+ mapM (\i -> find always (findClause [i] xs) i) >>= + mapM (\i -> find always (findClause [i] xs) i) >>=
+ return . concat >>= + return . concat >>=
+ issueFinder + issueFinder
-- fp to include, fp to exclude, clause -- fp to include, fp to exclude, clause
findClause :: [FilePath] -> [FilePath] -> FindClause Bool findClause :: [FilePath] -> [FilePath] -> FindClause Bool
@@ -47,6 +55,6 @@ @@ -47,6 +55,6 @@
@ -36,4 +36,4 @@ diff -rN -u old-lentil/src/Lentil/File.hs new-lentil/src/Lentil/File.hs
- fp2fc f = Any . L.isPrefixOf (combine "." f) <$> filePath - fp2fc f = Any . L.isPrefixOf (combine "." f) <$> filePath
+ fp2fc f = Any . L.isPrefixOf f <$> filePath + fp2fc f = Any . L.isPrefixOf f <$> filePath
-- TODO: combine funziona su windows? [feature:intermediate] -- TODO: combine funziona su windows? [feature:intermediate]

View File

@ -3,21 +3,21 @@
with lib; with lib;
let let
Zpkgs = import ../../Zpkgs/tv { inherit pkgs; }; tvpkgs = import ../pkgs { inherit pkgs; };
in in
{ {
krebs.build.host = config.krebs.hosts.cd; krebs.build.host = config.krebs.hosts.cd;
imports = [ imports = [
../../2configs/tv/CAC-Developer-2.nix ../configs/CAC-Developer-2.nix
../../2configs/tv/CAC-CentOS-7-64bit.nix ../configs/CAC-CentOS-7-64bit.nix
../../2configs/tv/base.nix ../configs/base.nix
../../2configs/tv/consul-server.nix ../configs/consul-server.nix
../../2configs/tv/exim-smarthost.nix ../configs/exim-smarthost.nix
../../2configs/tv/git.nix ../configs/git.nix
{ {
imports = [ ../../2configs/tv/charybdis.nix ]; imports = [ ../configs/charybdis.nix ];
tv.charybdis = { tv.charybdis = {
enable = true; enable = true;
sslCert = ../../Zcerts/charybdis_cd.crt.pem; sslCert = ../../Zcerts/charybdis_cd.crt.pem;
@ -68,7 +68,7 @@ in
server-names = singleton "viljetic.de"; server-names = singleton "viljetic.de";
# TODO directly set root (instead via location) # TODO directly set root (instead via location)
locations = singleton (nameValuePair "/" '' locations = singleton (nameValuePair "/" ''
root ${Zpkgs.viljetic-pages}; root ${tvpkgs.viljetic-pages};
''); '');
}; };
} }

View File

@ -6,12 +6,12 @@ with lib;
krebs.build.host = config.krebs.hosts.mkdir; krebs.build.host = config.krebs.hosts.mkdir;
imports = [ imports = [
../../2configs/tv/CAC-Developer-1.nix ../configs/CAC-Developer-1.nix
../../2configs/tv/CAC-CentOS-7-64bit.nix ../configs/CAC-CentOS-7-64bit.nix
../../2configs/tv/base.nix ../configs/base.nix
../../2configs/tv/consul-server.nix ../configs/consul-server.nix
../../2configs/tv/exim-smarthost.nix ../configs/exim-smarthost.nix
../../2configs/tv/git.nix ../configs/git.nix
{ {
tv.iptables = { tv.iptables = {
enable = true; enable = true;

View File

@ -6,11 +6,11 @@ with lib;
krebs.build.host = config.krebs.hosts.nomic; krebs.build.host = config.krebs.hosts.nomic;
imports = [ imports = [
../../2configs/tv/AO753.nix ../configs/AO753.nix
../../2configs/tv/base.nix ../configs/base.nix
../../2configs/tv/consul-server.nix ../configs/consul-server.nix
../../2configs/tv/exim-retiolum.nix ../configs/exim-retiolum.nix
../../2configs/tv/git.nix ../configs/git.nix
{ {
tv.iptables = { tv.iptables = {
enable = true; enable = true;

View File

@ -6,12 +6,12 @@ with lib;
krebs.build.host = config.krebs.hosts.rmdir; krebs.build.host = config.krebs.hosts.rmdir;
imports = [ imports = [
../../2configs/tv/CAC-Developer-1.nix ../configs/CAC-Developer-1.nix
../../2configs/tv/CAC-CentOS-7-64bit.nix ../configs/CAC-CentOS-7-64bit.nix
../../2configs/tv/base.nix ../configs/base.nix
../../2configs/tv/consul-server.nix ../configs/consul-server.nix
../../2configs/tv/exim-smarthost.nix ../configs/exim-smarthost.nix
../../2configs/tv/git.nix ../configs/git.nix
{ {
tv.iptables = { tv.iptables = {
enable = true; enable = true;

View File

@ -3,22 +3,22 @@
with lib; with lib;
let let
Zpkgs = import ../../Zpkgs/tv { inherit pkgs; }; tvpkgs = import ../pkgs { inherit pkgs; };
in in
{ {
krebs.build.host = config.krebs.hosts.wu; krebs.build.host = config.krebs.hosts.wu;
imports = [ imports = [
../../2configs/tv/w110er.nix ../configs/w110er.nix
../../2configs/tv/base.nix ../configs/base.nix
../../2configs/tv/consul-client.nix ../configs/consul-client.nix
../../2configs/tv/exim-retiolum.nix ../configs/exim-retiolum.nix
../../2configs/tv/git.nix ../configs/git.nix
../../2configs/tv/mail-client.nix ../configs/mail-client.nix
../../2configs/tv/xserver.nix ../configs/xserver.nix
../../2configs/tv/synaptics.nix # TODO w110er if xserver is enabled ../configs/synaptics.nix # TODO w110er if xserver is enabled
../../2configs/tv/urlwatch.nix ../configs/urlwatch.nix
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -26,9 +26,9 @@ in
git git
gnumake gnumake
parallel parallel
Zpkgs.genid tvpkgs.genid
Zpkgs.hashPassword tvpkgs.hashPassword
Zpkgs.lentil tvpkgs.lentil
(pkgs.writeScriptBin "ff" '' (pkgs.writeScriptBin "ff" ''
#! ${pkgs.bash}/bin/bash #! ${pkgs.bash}/bin/bash
exec sudo -u ff -i <<EOF exec sudo -u ff -i <<EOF
@ -75,8 +75,8 @@ in
sxiv sxiv
texLive texLive
tmux tmux
tvpkgs.dic
zathura zathura
Zpkgs.dic
#ack #ack
#apache-httpd #apache-httpd