mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
chunkwm: support multiple outputs
Since the package contains both chunkwm (daemon) and chunc (client) the
daemon shouldn't really be in PATH by default. Usually libexec is used
for this, however this would break the current expression used by
people. This enables moving chunkc to a bin output for this purpose.
eg. 7ad4b4d23d
This commit is contained in:
parent
90c34df929
commit
2b6447df5e
1 changed files with 5 additions and 9 deletions
|
@ -4,12 +4,10 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = config.services.chunkwm;
|
||||
plugins = [
|
||||
"border"
|
||||
"ffm"
|
||||
"tiling"
|
||||
];
|
||||
in {
|
||||
plugins = [ "border" "ffm" "tiling" ];
|
||||
in
|
||||
|
||||
{
|
||||
options = {
|
||||
services.chunkwm.enable = mkOption {
|
||||
type = types.bool;
|
||||
|
@ -110,8 +108,6 @@ in {
|
|||
chunkc set window_region_locked 1
|
||||
'';
|
||||
|
||||
security.accessibilityPrograms = [ "${cfg.package}/bin/chunkwm" ];
|
||||
|
||||
environment.etc."chunkwmrc".source = pkgs.writeScript "etc-chunkwmrc" (
|
||||
''
|
||||
#!/bin/bash
|
||||
|
@ -125,7 +121,7 @@ in {
|
|||
|
||||
launchd.user.agents.chunkwm = {
|
||||
path = [ cfg.package config.environment.systemPath ];
|
||||
serviceConfig.ProgramArguments = [ "${cfg.package}/bin/chunkwm" ]
|
||||
serviceConfig.ProgramArguments = [ "${getOutput "out" cfg.package}/bin/chunkwm" ]
|
||||
++ [ "-c" "/etc/chunkwmrc" ];
|
||||
serviceConfig.RunAtLoad = true;
|
||||
serviceConfig.KeepAlive = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue