kinda testing dungeonclub
This commit is contained in:
parent
0af2f42c1f
commit
309adacfa4
8 changed files with 81 additions and 8 deletions
14
dungeonclub/dungeonclub.nix
Normal file
14
dungeonclub/dungeonclub.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
let
|
||||
dungeonclub-static = "/var/lib/dungeonclub";
|
||||
dungeonclub-config = config.services.dungeonclub;
|
||||
in {
|
||||
config = lib.mkIf dungeonclub-config.enable {
|
||||
system.activationScripts.dungeonclub-dir = ''
|
||||
mkdir -p ${dungeonclub-static}/{config,db,storage}
|
||||
'';
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
8
dungeonclub/main.nix
Normal file
8
dungeonclub/main.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./options.nix
|
||||
./dungeonclub.nix
|
||||
];
|
||||
}
|
||||
28
dungeonclub/options.nix
Normal file
28
dungeonclub/options.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options = with lib; with types; {
|
||||
services.dungeonclub = {
|
||||
enable = mkEnableOption "Dungeon Club - Virtual Tabletop";
|
||||
|
||||
package = mkOption { type = package; default = pkgs.dungeonclub; description = "Dungeon Club package to use"; };
|
||||
|
||||
# build = {
|
||||
# config-yaml = {
|
||||
# storage-mb-per-campaign = mkOption { type = int; default = 500; };
|
||||
# prefabs-per-campaign = mkOption { type = int; default = 20; };
|
||||
# scenes-per-campaign = mkOption { type = int; default = 20; };
|
||||
# maps-per-campaign = mkOption { type = int; default = 10; };
|
||||
# campaigns-per-account = mkOption { type = int; default = 10; };
|
||||
# };
|
||||
# copy-music = mkOption { type = bool; default = true; };
|
||||
# download-icons = mkOption { type = bool; default = true; };
|
||||
# };
|
||||
options = {
|
||||
mock-account = mkOption { type = bool; default = true; };
|
||||
music = mkOption { type = bool; default = false; };
|
||||
port = mkOption { type = int; default = 7070; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
15
dungeonclub/package.nix
Normal file
15
dungeonclub/package.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.buildDartApplication rec {
|
||||
pname = "dungeonclub";
|
||||
version = "1.1";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "doodlezucc";
|
||||
repo = "dungeonclub";
|
||||
rev = "master";
|
||||
hash = "sha256-U6enz8yJcc4Wf8m54eYIAnVg/jsGi247Wy8lp1r1wg4=";
|
||||
};
|
||||
|
||||
pubspecLockFile = ./pubspec.lock;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue