2021-01-11 00:11:40 +00:00
|
|
|
{ config ? {}, system ? builtins.currentSystem, ... }@args:
|
2020-11-27 20:56:20 +00:00
|
|
|
|
|
|
|
let
|
2021-01-10 23:53:41 +00:00
|
|
|
sources = import ../nix/sources.nix;
|
2021-01-11 00:11:40 +00:00
|
|
|
pkgs = import sources.nixpkgs args;
|
2021-03-02 20:37:36 +00:00
|
|
|
unstable = import sources.nixpkgs-unstable args;
|
2020-11-27 20:56:20 +00:00
|
|
|
|
2021-01-10 23:53:41 +00:00
|
|
|
callPackage = pkgs.lib.callPackageWith (pkgs // newpkgs);
|
2020-11-30 18:30:24 +00:00
|
|
|
|
2020-11-27 20:56:20 +00:00
|
|
|
newpkgs = {
|
2020-12-05 18:56:49 +00:00
|
|
|
alps = callPackage ./alps {};
|
2021-01-10 23:53:41 +00:00
|
|
|
|
2021-07-29 20:31:14 +00:00
|
|
|
docker = pkgs.docker.overrideAttrs (super: {
|
2021-08-18 17:08:24 +00:00
|
|
|
moby = super.moby.overrideAttrs (super: {
|
|
|
|
extraPath = super.extraPath + ":${pkgs.zfs}/bin";
|
|
|
|
});
|
2021-01-27 05:24:12 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
linuxPackagesFor = kernel: (pkgs.linuxPackagesFor kernel).extend (_: ksuper: {
|
|
|
|
decklink = callPackage ./decklink { kernel = ksuper.kernel; };
|
|
|
|
});
|
|
|
|
|
|
|
|
blackmagicDesktopVideo = callPackage ./blackmagic-desktop-video { };
|
|
|
|
|
2021-03-10 20:27:57 +00:00
|
|
|
obs-studio = unstable.obs-studio.overrideAttrs (_: rec {
|
2021-01-27 05:24:12 +00:00
|
|
|
wrapLibraries = with (pkgs // newpkgs); [
|
|
|
|
xorg.libX11.out
|
|
|
|
libvlc
|
|
|
|
blackmagicDesktopVideo
|
|
|
|
libcxx
|
|
|
|
libcxxabi
|
|
|
|
];
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/obs \
|
|
|
|
--prefix "LD_LIBRARY_PATH" : "${pkgs.lib.makeLibraryPath wrapLibraries}"
|
|
|
|
'';
|
|
|
|
});
|
2021-03-02 20:37:36 +00:00
|
|
|
|
2021-03-25 13:59:59 +00:00
|
|
|
mattermost = callPackage ./mattermost {};
|
hainich: hacky version of thelounge as webchat
Intended for KontraIAA; requirements were that it should be a simple and
non-confusing as possible.
I tried both KiwiIRC and thelounge, and found both horrible to
package (a fact not helped by the somewhat opaque structure of
nixpkgs.nodePackages, which does contain a version of thelounge but
will apparently ignore overrides of the src attribute).
Instead, this now contains a very hacky version of thelounge, which
merely takes the already-built version from nixpkgs and glues some extra
css to it which hides potentially confusing fields.
Things hidden on the "connect" screen:
- the "name" field (since thelounge offers "nick" "name" and "realname"
by default, which seems too much for something embedded on a website)
- the "I have a password" checkbox
Things hidden on the general view:
- the button to open the side panel (the panel itself is not hidden,
and will appear by itself on wider layouts), so that users will only
see that one channel
- the "channel options" menu (which includes a "leave channel" option
which would effectively break the webchat)
Things not addressed:
- thelounge has autocompletion for /join /leave, etc. Do we want to
disable that as well?
- It would probably useful to suppress all the "x joined the channel"
messages. Thelounge supports this, but apparently doesn't support
setting it as default?
Misc:
- for now, users will be connected to #thelounge on libera.chat, which
appears to be okay with being used as an experimental channel
- I allowed prefetching link previews, but only on the server's side
(i.e. users' browsers won't fetch content from arbitrary sites)
- not yet tested on hainich, but should work (tested in a NixOS
container)
- currently assumes a "webchat.voc.hacc.space" domain (I think we had a
voc domain? but I forgot where it is …)
2021-08-05 17:11:43 +00:00
|
|
|
|
|
|
|
# a version of the lounge with some extra css that
|
|
|
|
# hides things the hacc-voc doesn't need
|
|
|
|
thelounge-hacked = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "thelounge-hacked";
|
|
|
|
src = pkgs.thelounge;
|
|
|
|
|
|
|
|
phases = [ "buildPhase" "installPhase" ];
|
|
|
|
buildPhase = ''
|
|
|
|
cp $src/* -r .
|
|
|
|
chmod 777 lib/node_modules/thelounge/public/css/style.css
|
|
|
|
cat ${./thelounge/css-patch.css} >> lib/node_modules/thelounge/public/css/style.css
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp * -r $out
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
init keytracker on hainich.
This is a first attempt to package octycs' keytracker [1] application.
It's more a quick-and-dirty approach, so there are a couple things to note:
- the config file is just generated by Nix as whatever the module got in
its config option stuffed into a toml file. There are no default values,
so all values must be set by hand – or rather, we just write the default
values in the config.
- I couldn't figure out how to actually make this thing work. It looks like
it /should/ work, but gets hung up every time on loading key information
via the web interface. Then again, it appears our current config on
libocedrus also doesn't conform to what the readme says, so perhaps I just
missed something that's as-yet undocumented.
- The module just calls python instead of an actual server as backend. This
is recommended just for development/testing, not actual deploys [2], but
since the project is missing a setup.py which afaik are required to package
these things more sensibly [3], that's it for now.
- keys and corresponding tokens are currently baked into the nix store. This
seems a bad idea, and I'll fix it as soon as I find the time.
[1] https://gitlab.infra4future.de/octycs/keytracker
[2] https://gitlab.infra4future.de/octycs/keytracker/-/blob/master/server/Readme.md
[3] https://flask.palletsprojects.com/en/1.1.x/tutorial/deploy/
2021-03-15 14:08:45 +00:00
|
|
|
keytracker-frontend = callPackage ./keytracker/frontend.nix {};
|
|
|
|
keytracker-server = callPackage ./keytracker/server.nix {};
|
|
|
|
|
2021-03-02 20:37:36 +00:00
|
|
|
inherit (unstable) bottom;
|
2020-11-27 20:56:20 +00:00
|
|
|
};
|
|
|
|
|
2021-01-27 05:24:12 +00:00
|
|
|
in pkgs.extend(_: _: newpkgs)
|