forked from hacc/haccfiles
stuebinm
ca0c1192a0
this is a helper script to send emails to people who've not logged in for a while (currently hard-coded to "since 2023-01-01"). It also sends weekly reminders to admins giving the current number of unused accounts. It is in $PATH for all normal users; for usage, invoke it with --help, or just see the email it send to admin@.
37 lines
834 B
Nix
37 lines
834 B
Nix
{ sources, ... }@args:
|
|
|
|
let
|
|
pkgs = import sources.nixpkgs args;
|
|
oldstable = import sources.nixpkgs-oldstable args;
|
|
unstable = import sources.nixpkgs-unstable args;
|
|
|
|
callPackage = pkgs.lib.callPackageWith (pkgs // newpkgs);
|
|
|
|
newpkgs = {
|
|
|
|
mattermost = callPackage ./mattermost.nix {
|
|
buildGoModule = unstable.buildGo122Module;
|
|
};
|
|
|
|
morph = callPackage ./morph.nix {
|
|
buildGoModule = unstable.buildGo122Module;
|
|
};
|
|
|
|
forgejo = unstable.forgejo;
|
|
|
|
tracktrain = import sources.tracktrain {
|
|
nixpkgs = unstable;
|
|
compiler = "default";
|
|
};
|
|
|
|
uffd = oldstable.callPackage ./uffd { };
|
|
|
|
hacc-scripts = callPackage ./scripts {};
|
|
|
|
inherit (oldstable) uwsgi flask;
|
|
|
|
# TODO: once on nixos 24.05, remove this inherit
|
|
inherit (unstable) lix;
|
|
};
|
|
|
|
in pkgs.extend(_: _: newpkgs)
|