home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

barrier.nix (298B)


      1 { config, lib, pkgs, ... }:
      2 
      3 with lib;
      4 let
      5   cfg = config.services.barrier;
      6 in
      7 {
      8   options = {
      9     services.barrier = {
     10       enable = mkEnableOption ''
     11         Barrier is a software kvm
     12       '';
     13     };
     14   };
     15   config = mkIf cfg.enable {
     16     networking.firewall.allowedTCPPorts = [ 24800 ];
     17   };
     18 }