starsector: init and compatability fix

This commit is contained in:
Christoph Hollizeck 2025-03-23 00:53:49 +01:00
parent 341f4174b1
commit e4ac7ae27e
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{
config,
lib,
namespace,
options,
pkgs,
...
}:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.apps.starsector;
in
{
options.${namespace}.apps.starsector = {
enable = mkEnableOption "Whether or not to enable the game starsector.";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
starsector
];
};
}

View file

@ -0,0 +1,8 @@
{ ... }:
final: prev: {
starsector = prev.starsector.overrideAttrs (prevAttrs: {
postInstall = ''
wrapProgram $out/bin/starsector --set __GL_THREADED_OPTIMIZATIONS 0
'';
});
}

View file

@ -64,6 +64,7 @@ in
_1password = enabled; _1password = enabled;
obs-studio = enabled; obs-studio = enabled;
cli-apps.helix = enabled; cli-apps.helix = enabled;
starsector = enabled;
}; };
desktop.hyprland = { desktop.hyprland = {