mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add astral
This commit is contained in:
parent
c93f124c6f
commit
22390d5456
11 changed files with 188 additions and 12 deletions
33
modules/nixos/unfree/minecraft.nix
Normal file
33
modules/nixos/unfree/minecraft.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ pkgs, lib, config, inputs, ... }: {
|
||||
options.mods.unfree.minecraft = {
|
||||
enable = lib.mkEnableOption {
|
||||
default = false;
|
||||
description = "enables minecraft";
|
||||
};
|
||||
packages = lib.mkOption {
|
||||
default = [
|
||||
"minecraft-server"
|
||||
];
|
||||
description = "unfree packages";
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
inputs.nix-minecraft.nixosModules.minecraft-servers
|
||||
];
|
||||
|
||||
config = lib.mkIf config.mods.unfree.minecraft.enable {
|
||||
nixpkgs.overlays = [
|
||||
inputs.nix-minecraft.overlay
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
prismlauncher
|
||||
];
|
||||
|
||||
services.minecraft-servers = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue