nix-files/hosts/modules/roles/client.nix

17 lines
294 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.sane.roles.client = mkOption {
type = types.bool;
default = false;
};
config = mkIf config.sane.roles.client {
sane.services.wg-home.enable = true;
sane.services.wg-home.role = "client";
};
}