1 { lib, pkgs, config, myconfig, mylibs, ... }:
4 services.pub.enable = lib.mkOption {
8 Whether to enable pub user.
13 config = lib.mkIf config.services.pub.enable {
15 restrict = pkgs.runCommand "restrict" {
17 buildInputs = [ pkgs.makeWrapper ];
20 cp $file $out/bin/restrict
21 chmod a+x $out/bin/restrict
22 patchShebangs $out/bin/restrict
23 wrapProgram $out/bin/restrict \
24 --prefix PATH : ${lib.makeBinPath [ pkgs.bubblewrap pkgs.rrsync ]} \
25 --set TMUX_RESTRICT ${./tmux.restrict.conf}
29 description = "Restricted shell user";
30 home = "/var/lib/pub";
31 uid = myconfig.env.users.pub.uid;
32 useDefaultShell = true;
36 (pkgs.pidgin.override { plugins = [
37 pkgs.purple-plugin-pack pkgs.purple-hangouts
38 pkgs.purple-discord pkgs.purple-facebook