nix-conf/nixos-modules/zerotierone/default.nix

25 lines
547 B
Nix
Raw Normal View History

2024-07-10 23:02:54 +02:00
{
config,
lib,
pkgs,
...
}:
2024-01-18 20:12:43 +01:00
2024-07-10 23:02:54 +02:00
let
cfg = config.jopejoe1.zerotierone;
in
{
2024-01-18 20:12:43 +01:00
options.jopejoe1.zerotierone = {
enable = lib.mkEnableOption "Enable zerotierone";
};
config = lib.mkIf cfg.enable {
2024-08-24 09:49:42 +02:00
services.zerotierone.enable = true;
2024-07-10 23:02:54 +02:00
services.zerotierone.joinNetworks = [
"9e1948db638e9f93"
] ++ lib.optional (config.networking.hostName == "kuraokami") "7c31a21e86f9a75c";
2024-02-01 16:29:59 +01:00
services.zerotierone.port = 9993;
2024-04-19 18:15:32 +02:00
environment.systemPackages = with pkgs; lib.optional config.jopejoe1.gui.enable moonlight-qt;
2024-01-18 20:12:43 +01:00
};
}