Add astral

This commit is contained in:
muon 2024-07-13 10:39:31 +00:00
parent c93f124c6f
commit 22390d5456
11 changed files with 188 additions and 12 deletions

View file

@ -9,11 +9,13 @@ in {
imports = [
./steam.nix
./nvidia.nix
./minecraft.nix
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) (
(mkPackages "steam") ++
(mkPackages "minecraft") ++
(mkPackages "nvidia")
);
}

View 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;
};
};
}