starsector: init and compatability fix
This commit is contained in:
parent
341f4174b1
commit
e4ac7ae27e
23
modules/nixos/apps/starsector/default.nix
Normal file
23
modules/nixos/apps/starsector/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
8
overlays/starsector/default.nix
Normal file
8
overlays/starsector/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
final: prev: {
|
||||
starsector = prev.starsector.overrideAttrs (prevAttrs: {
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/starsector --set __GL_THREADED_OPTIMIZATIONS 0
|
||||
'';
|
||||
});
|
||||
}
|
|
@ -64,6 +64,7 @@ in
|
|||
_1password = enabled;
|
||||
obs-studio = enabled;
|
||||
cli-apps.helix = enabled;
|
||||
starsector = enabled;
|
||||
};
|
||||
|
||||
desktop.hyprland = {
|
||||
|
|
Loading…
Reference in a new issue