nix-conf/modules/zerotierone/default.nix
2024-02-01 16:29:59 +01:00

18 lines
442 B
Nix

{ config, lib, pkgs, ... }:
let cfg = config.jopejoe1.zerotierone;
in {
options.jopejoe1.zerotierone = {
enable = lib.mkEnableOption "Enable zerotierone";
};
config = lib.mkIf cfg.enable {
services.zerotierone.enable = true;
services.zerotierone.joinNetworks = [ "7c31a21e86f9a75c" "9e1948db638e9f93" ];
services.zerotierone.port = 9993;
environment.systemPackages = with pkgs; [
moonlight-qt
];
};
}