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 {
|
||||
inherit inputs config pkgs lib;
|
||||
};
|
||||
cfg = config.service.minecraft;
|
||||
cfg = config.service;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
enium-pv
|
||||
];
|
||||
|
||||
options.service.minecraft = {
|
||||
options.service.games = {
|
||||
enium-pv = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
|
|
|
|||
|
|
@ -1,14 +1,13 @@
|
|||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.service.minecraft.enium-pv;
|
||||
cfg = config.service.games.enium-pv;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.minecraft.nixosModules.minecraft-servers
|
||||
];
|
||||
|
||||
|
||||
config = lib.mkIf cfg {
|
||||
nixpkgs.overlays = [
|
||||
inputs.minecraft.overlay
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue