refactor misc gaming module

This commit is contained in:
Tyler Starr 2024-09-30 10:15:37 -07:00
parent 1367514791
commit 628d4d4da2
5 changed files with 16 additions and 20 deletions

View File

@ -29,9 +29,8 @@
notes.enable = true;
};
gaming = {
steam.enable = true;
emulation.enable = true;
misc.enable = true;
steam.enable = true;
};
programs = {
kitty.enable = true;

View File

@ -48,9 +48,9 @@
tooling.enable = true;
};
gaming = {
steam.enable = true;
emulation.enable = true;
misc.enable = true;
minecraft.enable = true;
steam.enable = true;
};
programs = {
kitty.enable = true;

View File

@ -1,4 +1,4 @@
{ ... }:
{
imports = [ ./steam.nix ./misc.nix ./emulation.nix ];
imports = [ ./emulation.nix ./minecraft.nix ./steam.nix ];
}

View File

@ -0,0 +1,12 @@
{ config, lib, pkgs, user, ... }:
let cfg = config.modules.gaming.minecraft;
in {
options.modules.gaming.minecraft.enable = lib.mkEnableOption "minecraft";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
prismlauncher # Launcher for Prism, a web application framework.
jdk17 # Java Development Kit (JDK) version 17.
];
};
}

View File

@ -1,15 +0,0 @@
{ config, lib, pkgs, user, ... }:
let cfg = config.modules.gaming.misc;
in {
options.modules.gaming.misc.enable = lib.mkEnableOption "misc";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
sunshine # Utility for streaming Android device display to a computer.
moonlight-qt # Qt-based client for NVIDIA GameStream, allowing streaming of PC games to other devices.
prismlauncher # Launcher for Prism, a web application framework.
jdk17 # Java Development Kit (JDK) version 17.
];
};
}