starsector: init and compatability fix

This commit is contained in:
Christoph Hollizeck 2025-03-23 00:53:49 +01:00
parent b583e3f975
commit 0500777d61
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
];
};
}