aboutsummaryrefslogtreecommitdiffstats
path: root/modules/networking/usque/default.nix
blob: b8c25eebcb2043a66841e96f457ac8cb77fbc49e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Open-source reimplementation of the Cloudflare WARP client's MASQUE protocol
{
  config,
  pkgs,
  lib,
  ...
}:
{
  options.networking.usque = {
    enable = lib.mkEnableOption "Enables usque.";
    package = lib.mkOption {
      type = lib.types.package;
      default = pkgs.usque;
      description = "The usque package to use.";
    };
  };

  config = lib.mkIf config.networking.usque.enable {
    home.packages = [ config.networking.usque.package ];
  };
}