parent
7d6a6cbbe3
commit
708de1ac8d
|
@ -936,6 +936,14 @@ in
|
||||||
A new module is available: 'programs.matplotlib'.
|
A new module is available: 'programs.matplotlib'.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
time = "2019-01-26T13:20:37+00:00";
|
||||||
|
condition = hostPlatform.isLinux;
|
||||||
|
message = ''
|
||||||
|
A new module is available: 'services.xembed-sni-proxy'.
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,6 +114,7 @@ let
|
||||||
(loadModule ./services/window-managers/awesome.nix { })
|
(loadModule ./services/window-managers/awesome.nix { })
|
||||||
(loadModule ./services/window-managers/i3.nix { })
|
(loadModule ./services/window-managers/i3.nix { })
|
||||||
(loadModule ./services/window-managers/xmonad.nix { })
|
(loadModule ./services/window-managers/xmonad.nix { })
|
||||||
|
(loadModule ./services/xembed-sni-proxy.nix { condition = hostPlatform.isLinux; })
|
||||||
(loadModule ./services/xscreensaver.nix { })
|
(loadModule ./services/xscreensaver.nix { })
|
||||||
(loadModule ./systemd.nix { })
|
(loadModule ./systemd.nix { })
|
||||||
(loadModule ./xcursor.nix { })
|
(loadModule ./xcursor.nix { })
|
||||||
|
|
49
modules/services/xembed-sni-proxy.nix
Normal file
49
modules/services/xembed-sni-proxy.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.services.xembed-sni-proxy;
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
meta.maintainers = [ maintainers.rycee ];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
services.xembed-sni-proxy = {
|
||||||
|
enable = mkEnableOption "XEmbed SNI Proxy";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.plasma-workspace;
|
||||||
|
defaultText = "pkgs.plasma-workspace";
|
||||||
|
description = ''
|
||||||
|
Package containing the <command>xembedsniproxy</command>
|
||||||
|
program.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
systemd.user.services.xembed-sni-proxy = {
|
||||||
|
Unit = {
|
||||||
|
Description = "XEmbed SNI Proxy";
|
||||||
|
After = [ "graphical-session-pre.target" ];
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
Service = {
|
||||||
|
Environment = "PATH=${config.home.profileDirectory}/bin";
|
||||||
|
ExecStart = "${cfg.package}/bin/xembedsniproxy";
|
||||||
|
Restart = "on-abort";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue