{ lib, config, inputs, pkgs, ... }: let cfg = config.snowhawk.star-citizen; in { options.snowhawk.star-citizen = { enable = lib.mkEnableOption "star-citizen"; }; config = lib.mkIf cfg.enable { boot.kernel.sysctl = { "vm.max_map_count" = 16777216; "ds.file-max" = 524288; }; environment.systemPackages = [ (inputs.nix-gaming.packages.${pkgs.system}.star-citizen.override { useUmu = true; location = "/data/star-citizen"; }) ]; }; }