eldiron = { config, pkgs, mylibs, myconfig, ... }:
{
+ nixpkgs.overlays = builtins.attrValues (import ../overlays);
_module.args = {
pkgsNext = import <nixpkgsNext> {};
pkgsPrevious = import <nixpkgsPrevious> {};
};
config = lib.mkIf config.services.buildbot.enable {
- nixpkgs.overlays = [ (self: super: rec {
- python3 = super.python3.override {
- packageOverrides = python-self: python-super: {
- wokkel = python-self.buildPythonPackage rec {
- pname = "wokkel";
- version = "18.0.0";
- src = python-self.fetchPypi {
- inherit pname version;
- sha256 = "1spq44gg8gsviqx1dvlmjpgfc0wk0jpyx4ap01y2pad1ai9cw016";
- };
- propagatedBuildInputs = with python-self; [ twisted.extras.tls twisted incremental dateutil ];
- doChecks = false;
- };
- apprise = python-self.buildPythonPackage rec {
- pname = "apprise";
- version = "0.7.4";
- src = (mylibs.fetchedGithub ./apprise.json).src;
- propagatedBuildInputs = with python-self; [ decorator
- requests requests_oauthlib oauthlib urllib3 six click
- markdown pyyaml sleekxmpp
- ];
- doChecks = false;
- };
- };
- };
- }) ];
-
ids.uids.buildbot = myconfig.env.buildbot.user.uid;
ids.gids.buildbot = myconfig.env.buildbot.user.gid;
};
config = lib.mkIf cfg.enable {
- nixpkgs.overlays = [ (self: super: rec {
- mariadb = mariadbPAM;
- mariadbPAM = super.mariadb.overrideAttrs(old: rec {
- cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ];
- buildInputs = old.buildInputs ++ [ self.pam ];
- });
- }) ];
-
networking.firewall.allowedTCPPorts = [ 3306 ];
# for adminer, ssl is implemented with mysqli only, which is
};
config = lib.mkIf cfg.enable {
- nixpkgs.overlays = [ (self: super: rec {
- postgresql = postgresql_11;
- postgresql_11 = super.postgresql_11.overrideAttrs(old: rec {
- passthru = old.passthru // { psqlSchema = "11.0"; };
- configureFlags = old.configureFlags ++ [ "--with-pam" ];
- buildInputs = (old.buildInputs or []) ++ [ self.pam ];
- patches = old.patches ++ [
- ./postgresql_run_socket_path.patch
- ];
- });
- }) ];
-
networking.firewall.allowedTCPPorts = [ 5432 ];
security.acme.certs."postgresql" = config.services.myCertificates.certConfig // {
'';
};
- nixpkgs.overlays = [ (self: super: rec {
- bitlbee = super.bitlbee.overrideAttrs(old: {
- patches = (old.patches or []) ++ [ ./bitlbee_long_nicks.patch ];
- });
- }) ];
-
networking.firewall.allowedTCPPorts = [ 6697 ];
services.bitlbee = {
enable = true;
pkgs.goaccess
];
- nixpkgs.overlays = [ (self: super: rec {
- goaccess = super.goaccess.overrideAttrs(old: rec {
- configureFlags = old.configureFlags ++ [ "--enable-tcb=btree" ];
- buildInputs = old.buildInputs ++ [ self.tokyocabinet self.bzip2 ];
- });
- }) ];
-
services.cron = {
enable = true;
systemCronJobs = let
config = lib.mkIf cfg.enable {
security.acme.certs."eldiron".extraDomains."git.immae.eu" = null;
- nixpkgs.overlays = [ (self: super: rec {
- gitweb = super.gitweb.overrideAttrs(old: {
- installPhase = old.installPhase + ''
- cp -r ${./gitweb/theme} $out/gitweb-theme;
- '';
- });
- }) ];
-
mySecrets.keys = mantisbt.keys;
services.myWebsites.tools.modules =
gitweb.apache.modules ++
ln -s ${kanboard.webRoot} $out/webapps/${kanboard.apache.webappName}
'';
- nixpkgs.overlays = [ (self: super: rec {
- ympd = super.ympd.overrideAttrs(old: mylibs.fetchedGithub ./ympd.json // {
- patches = (old.patches or []) ++ [ ./ympd-password-env.patch ];
- });
- }) ];
-
systemd.services.tt-rss = {
description = "Tiny Tiny RSS feeds update daemon";
serviceConfig = {
--- /dev/null
+self: super: {
+ bitlbee = super.bitlbee.overrideAttrs(old: {
+ patches = (old.patches or []) ++ [ ./bitlbee_long_nicks.patch ];
+ });
+}
--- /dev/null
+self: super: rec {
+ mariadb = mariadbPAM;
+ mariadbPAM = super.mariadb.overrideAttrs(old: {
+ cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ];
+ buildInputs = old.buildInputs ++ [ self.pam ];
+ });
+}
--- /dev/null
+self: super: rec {
+ postgresql = postgresql_11;
+ postgresql_11 = super.postgresql_11.overrideAttrs(old: {
+ # datadir in /var/lib/postgresql is named after psqlSchema
+ passthru = old.passthru // { psqlSchema = "11.0"; };
+ configureFlags = old.configureFlags ++ [ "--with-pam" ];
+ buildInputs = (old.buildInputs or []) ++ [ self.pam ];
+ patches = old.patches ++ [
+ ./postgresql_run_socket_path.patch
+ ];
+ });
+}
{
mylibs = self: super: { mylibs = import ../libs.nix { nixpkgs = self; }; };
+ bitlbee = import ./bitlbee;
dwm = import ./dwm;
elinks = import ./elinks;
+ gitweb = import ./gitweb;
goaccess = import ./goaccess;
ldapvi = import ./ldapvi;
lesspipe = import ./lesspipe;
+ mysql = import ./databases/mysql;
neomutt = import ./neomutt;
nixops = import ./nixops;
pass = import ./pass;
pelican = import ./pelican;
+ postgresql = import ./databases/postgresql;
profanity = import ./profanity;
sc-im = import ./sc-im;
slrn = import ./slrn;
vit = import ./vit;
weboob = import ./weboob;
weechat = import ./weechat;
+ ympd = import ./ympd;
}
+// import ./python-packages
--- /dev/null
+self: super: {
+ gitweb = super.gitweb.overrideAttrs(old: {
+ installPhase = old.installPhase + ''
+ cp -r ${./theme} $out/gitweb-theme;
+ '';
+ });
+}
--- /dev/null
+self: super: {
+ python3 = super.python3.override {
+ packageOverrides = python-self: python-super: {
+ apprise = python-self.buildPythonPackage rec {
+ pname = "apprise";
+ version = "0.7.4";
+ src = (self.mylibs.fetchedGithub ./apprise.json).src;
+ propagatedBuildInputs = with python-self; [ decorator
+ requests requests_oauthlib oauthlib urllib3 six click
+ markdown pyyaml sleekxmpp
+ ];
+ doChecks = false;
+ };
+ };
+ };
+}
--- /dev/null
+{
+ wokkel = import ./wokkel;
+ apprise = import ./apprise;
+}
--- /dev/null
+self: super: {
+ python3 = super.python3.override {
+ packageOverrides = python-self: python-super: {
+ wokkel = python-self.buildPythonPackage rec {
+ pname = "wokkel";
+ version = "18.0.0";
+ src = python-self.fetchPypi {
+ inherit pname version;
+ sha256 = "1spq44gg8gsviqx1dvlmjpgfc0wk0jpyx4ap01y2pad1ai9cw016";
+ };
+ propagatedBuildInputs = with python-self; [ twisted.extras.tls twisted incremental dateutil ];
+ doChecks = false;
+ };
+ };
+ };
+}
--- /dev/null
+self: super: {
+ ympd = super.ympd.overrideAttrs(old: self.mylibs.fetchedGithub ./ympd.json // {
+ patches = (old.patches or []) ++ [ ./ympd-password-env.patch ];
+ });
+}