nixos/modules/star-citizen.nix
2025-01-03 22:35:31 -08:00

24 lines
467 B
Nix

{ 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 = [
(pkgs.star-citizen.override {
useUmu = true;
location = "/data/star-citizen";
})
];
};
}