maxwell/packages.nix

54 lines
1.6 KiB
Nix
Raw Normal View History

2020-10-20 01:11:28 +02:00
{ config, pkgs, lib, ... }:
{
nixpkgs.overlays = lib.singleton
(self: super:
{ maxwell-notify = self.callPackage ./custom/packages/maxwell-notify.nix
{ homeserver = "https://${config.var.hostname}/_matrix/client/r0";
roomId = "!FsUSHSNMPMVTFFcvJo:maxwell.ydns.eu";
2020-10-26 01:59:29 +01:00
authToken = config.secrets.passwords.matrix;
2020-10-20 01:11:28 +02:00
};
haskellPackages = super.haskellPackages.extend (hself: hsuper:
{ namecoin-update = hself.callCabal2nix "namecoin-update" (builtins.fetchTarball {
url = "https://hackage.haskell.org/package/namecoin-update-0.2.3.0/namecoin-update-0.2.3.0.tar.gz";
}) {};
});
2020-10-20 01:11:28 +02:00
});
environment.systemPackages = with pkgs; [
# utilities
2021-02-18 11:13:42 +01:00
iftop curl tree neovim
nix-script openssl
2021-03-25 19:03:34 +01:00
jq ack sshfs abduco
2020-10-20 01:11:28 +02:00
# backup
bup git nfs-utils
# admin
dnsutils
matrix-synapse
maxwell-notify
smartmontools
];
2022-11-01 21:36:16 +01:00
# OpenSSL 3.0.7 patch
system.replaceRuntimeDependencies = lib.singleton {
original = pkgs.openssl_3.out;
replacement = (pkgs.openssl_3.overrideAttrs (old: {
patches = old.patches ++ [
(pkgs.fetchpatch {
name = "CVE-2022-3602.patch";
url = "https://github.com/openssl/openssl/commit/fe3b639dc19b325846f4f6801f2f4604f56e3de3.patch";
sha256 = "sha256-+CrWEz6JIbO3n33RyzJ+l+3zlJ7AhyrTcvF9BDgOj+U=";
})
(pkgs.fetchpatch {
name = "CVE-2022-3786.patch";
url = "https://github.com/openssl/openssl/commit/c42165b5706e42f67ef8ef4c351a9a4c5d21639a.patch";
sha256 = "sha256-ZjsyOdgaRi1w16/BNlGFRokOEzfUeYFf3z90ezConF0=";
})
];
})).out;
};
2020-10-20 01:11:28 +02:00
}