starsector: init and compatability fix
This commit is contained in:
parent
b583e3f975
commit
0500777d61
3 changed files with 32 additions and 0 deletions
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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue