2024-12-10 00:39:48 -08:00
|
|
|
{ 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 = [
|
2025-01-03 22:15:21 -08:00
|
|
|
(pkgs.star-citizen.override {
|
2024-12-10 00:39:48 -08:00
|
|
|
useUmu = true;
|
|
|
|
location = "/data/star-citizen";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|