};
config = lib.mkIf cfg.enable {
- nixpkgs.config.packageOverrides = oldpkgs: rec {
+ nixpkgs.overlays = [ (self: super: rec {
mariadb = mariadbPAM;
- mariadbPAM = oldpkgs.mariadb.overrideAttrs(old: rec {
+ mariadbPAM = super.mariadb.overrideAttrs(old: rec {
cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ];
- buildInputs = old.buildInputs ++ [ pkgs.pam ];
+ buildInputs = old.buildInputs ++ [ self.pam ];
});
- };
+ }) ];
networking.firewall.allowedTCPPorts = [ 3306 ];
};
config = lib.mkIf cfg.enable {
- nixpkgs.config.packageOverrides = oldpkgs: rec {
+ nixpkgs.overlays = [ (self: super: rec {
postgresql = postgresql111;
- postgresql111 = oldpkgs.postgresql100.overrideAttrs(old: rec {
+ postgresql111 = super.postgresql100.overrideAttrs(old: rec {
passthru = old.passthru // { psqlSchema = "11.0"; };
name = "postgresql-11.1";
- src = pkgs.fetchurl {
+ src = self.fetchurl {
url = "mirror://postgresql/source/v11.1/${name}.tar.bz2";
sha256 = "026v0sicsh7avzi45waf8shcbhivyxmi7qgn9fd1x0vl520mx0ch";
};
configureFlags = old.configureFlags ++ [ "--with-pam" ];
- buildInputs = (old.buildInputs or []) ++ [ pkgs.pam ];
+ buildInputs = (old.buildInputs or []) ++ [ self.pam ];
patches = old.patches ++ [
./postgresql_run_socket_path.patch
];
});
- };
+ }) ];
networking.firewall.allowedTCPPorts = [ 5432 ];
extraDomains = { "ftp.immae.eu" = null; };
};
- nixpkgs.config.packageOverrides = oldpkgs: rec {
- pure-ftpd = pkgs.callPackage ./pure-ftpd.nix {};
- };
+ nixpkgs.overlays = [ (self: super: {
+ pure-ftpd = self.callPackage ./pure-ftpd.nix {};
+ }) ];
networking = {
firewall = {
};
config = lib.mkIf cfg.enable {
- nixpkgs.config.packageOverrides = oldpkgs: rec {
- gitolite = oldpkgs.gitolite.overrideAttrs(old: rec {
+ nixpkgs.overlays = [ (self: super: rec {
+ gitolite = super.gitolite.overrideAttrs(old: rec {
name = "gitolite-${version}";
version = "3.6.10";
- src = pkgs.fetchFromGitHub {
+ src = self.fetchFromGitHub {
owner = "sitaramc";
repo = "gitolite";
rev = "v${version}";
sha256 = "0p2697mn6rwm03ndlv7q137zczai82n41aplq1g006ii7f12xy8h";
};
});
- };
+ }) ];
networking.firewall.allowedTCPPorts = [ 9418 ];
'';
};
- nixpkgs.config.packageOverrides = oldpkgs: rec {
- bitlbee = oldpkgs.bitlbee.overrideAttrs(old: {
+ nixpkgs.overlays = [ (self: super: rec {
+ bitlbee = super.bitlbee.overrideAttrs(old: {
patches = (old.patches or []) ++ [ ./bitlbee_long_nicks.patch ];
});
- };
+ }) ];
networking.firewall.allowedTCPPorts = [ 6697 ];
services.bitlbee = {
pkgs.goaccess
];
- nixpkgs.config.packageOverrides = oldpkgs: rec {
- goaccess = oldpkgs.goaccess.overrideAttrs(old: rec {
+ nixpkgs.overlays = [ (self: super: rec {
+ goaccess = super.goaccess.overrideAttrs(old: rec {
name = "goaccess-${version}";
version = "1.3";
- src = pkgs.fetchurl {
+ src = self.fetchurl {
url = "https://tar.goaccess.io/${name}.tar.gz";
sha256 = "16vv3pj7pbraq173wlxa89jjsd279004j4kgzlrsk1dz4if5qxwc";
};
configureFlags = old.configureFlags ++ [ "--enable-tcb=btree" ];
- buildInputs = old.buildInputs ++ [ pkgs.tokyocabinet pkgs.bzip2 ];
+ buildInputs = old.buildInputs ++ [ self.tokyocabinet self.bzip2 ];
});
- };
+ }) ];
services.cron = {
enable = true;
];
};
- nixpkgs.config.packageOverrides = oldpkgs: rec {
+ nixpkgs.overlays = [ (self: super: rec {
php = php72;
- php72 = (oldpkgs.php72.override {
- mysql.connector-c = pkgs.mariadb;
+ php72 = (super.php72.override {
+ mysql.connector-c = self.mariadb;
config.php.mysqlnd = false;
config.php.mysqli = false;
}).overrideAttrs(old: rec {
# ext/mysqli/mysqli.c ext/mysqli/mysqli_prop.c
# '';
});
- phpPackages = oldpkgs.php72Packages.override { inherit php; };
+ phpPackages = super.php72Packages.override { inherit php; };
composerEnv = import ./commons/composer-env.nix {
- inherit (pkgs) stdenv writeTextFile fetchurl php unzip;
+ inherit (self) stdenv writeTextFile fetchurl php unzip;
};
- };
+ }) ];
services.myWebsites.tools.databases.enable = true;
services.myWebsites.tools.tools.enable = true;
config = lib.mkIf cfg.enable {
security.acme.certs."eldiron".extraDomains."git.immae.eu" = null;
- nixpkgs.config.packageOverrides = oldpkgs: rec {
- gitweb = oldpkgs.gitweb.overrideAttrs(old: {
+ nixpkgs.overlays = [ (self: super: rec {
+ gitweb = super.gitweb.overrideAttrs(old: {
installPhase = old.installPhase + ''
cp -r ${./gitweb/theme} $out/gitweb-theme;
'';
});
- };
+ }) ];
services.myWebsites.tools.modules =
gitweb.apache.modules ++
ln -s ${yourls.webRoot} $out/webapps/${yourls.apache.webappName}
'';
- nixpkgs.config.packageOverrides = oldpkgs: rec {
- ympd = oldpkgs.ympd.overrideAttrs(old: mylibs.fetchedGithub ./ympd.json);
- };
+ nixpkgs.overlays = [ (self: super: rec {
+ ympd = super.ympd.overrideAttrs(old: mylibs.fetchedGithub ./ympd.json);
+ }) ];
systemd.services.tt-rss = {
description = "Tiny Tiny RSS feeds update daemon";