feat(services/games): now prefix for games is games
- before was minecraft because only minecraft server
This commit is contained in:
parent
4d38f03718
commit
51f952aa7b
2 changed files with 16 additions and 17 deletions
|
|
@ -4,14 +4,14 @@ let
|
||||||
enium-pv = import ./games/minecraft.nix {
|
enium-pv = import ./games/minecraft.nix {
|
||||||
inherit inputs config pkgs lib;
|
inherit inputs config pkgs lib;
|
||||||
};
|
};
|
||||||
cfg = config.service.minecraft;
|
cfg = config.service;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
enium-pv
|
enium-pv
|
||||||
];
|
];
|
||||||
|
|
||||||
options.service.minecraft = {
|
options.service.games = {
|
||||||
enium-pv = lib.mkOption {
|
enium-pv = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,13 @@
|
||||||
{ inputs, config, pkgs, lib, ... }:
|
{ inputs, config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.service.minecraft.enium-pv;
|
cfg = config.service.games.enium-pv;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.minecraft.nixosModules.minecraft-servers
|
inputs.minecraft.nixosModules.minecraft-servers
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
config = lib.mkIf cfg {
|
config = lib.mkIf cfg {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
inputs.minecraft.overlay
|
inputs.minecraft.overlay
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue