mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-04 01:42:53 +03:00
nixos/weechat: add setuid wrapper for `screen' to ensure true multiuser capabilities
Previously you either had to set the setuid bit yourself or workaround `isSystemUser = true` (for a loginable shell) to access the weechat screen. `programs.screen` shouldn't do this by default to avoid taking too much assumptions about the setup, however `services.weechat` explicitly requires tihs. See #45728
This commit is contained in:
parent
fc847785d8
commit
018573b757
@ -46,10 +46,12 @@ in
|
|||||||
Group = "weechat";
|
Group = "weechat";
|
||||||
RemainAfterExit = "yes";
|
RemainAfterExit = "yes";
|
||||||
};
|
};
|
||||||
script = "exec ${pkgs.screen}/bin/screen -Dm -S ${cfg.sessionName} ${cfg.binary}";
|
script = "exec ${config.security.wrapperDir}/screen -Dm -S ${cfg.sessionName} ${cfg.binary}";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "network.target" ];
|
wants = [ "network.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security.wrappers.screen.source = "${pkgs.screen}/bin/screen";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.doc = ./weechat.xml;
|
meta.doc = ./weechat.xml;
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
</programlisting>
|
</programlisting>
|
||||||
Now, the session can be re-attached like this:
|
Now, the session can be re-attached like this:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
screen -r weechat-screen
|
screen -x weechat/weechat-screen
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user