You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
553 B
25 lines
553 B
{ config, pkgs, lib, ... }:
|
|
let
|
|
cfg = config.programs.xpo;
|
|
package = pkgs.xpo;
|
|
in
|
|
{
|
|
options.programs.xpo = {
|
|
enable = lib.mkEnableOption "xpo";
|
|
|
|
defaultServer = lib.mkOption {
|
|
default = null;
|
|
type = with lib.types; nullOr string;
|
|
description = ''
|
|
Default SSH server/endpoint to use when tunneling.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home = {
|
|
packages = [ package ];
|
|
sessionVariables.XPO_SERVER = lib.optionalString (cfg.defaultServer != null) cfg.defaultServer;
|
|
};
|
|
};
|
|
}
|
|
|