mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
refactor misc gaming module
This commit is contained in:
parent
1367514791
commit
628d4d4da2
@ -29,9 +29,8 @@
|
|||||||
notes.enable = true;
|
notes.enable = true;
|
||||||
};
|
};
|
||||||
gaming = {
|
gaming = {
|
||||||
steam.enable = true;
|
|
||||||
emulation.enable = true;
|
emulation.enable = true;
|
||||||
misc.enable = true;
|
steam.enable = true;
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
|
@ -48,9 +48,9 @@
|
|||||||
tooling.enable = true;
|
tooling.enable = true;
|
||||||
};
|
};
|
||||||
gaming = {
|
gaming = {
|
||||||
steam.enable = true;
|
|
||||||
emulation.enable = true;
|
emulation.enable = true;
|
||||||
misc.enable = true;
|
minecraft.enable = true;
|
||||||
|
steam.enable = true;
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./steam.nix ./misc.nix ./emulation.nix ];
|
imports = [ ./emulation.nix ./minecraft.nix ./steam.nix ];
|
||||||
}
|
}
|
||||||
|
12
provision/modules/gaming/minecraft.nix
Normal file
12
provision/modules/gaming/minecraft.nix
Normal 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.
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -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.
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user