1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-08-02 12:24:52 +02:00

nix module

This commit is contained in:
Robin Appelman 2025-05-10 13:58:22 +02:00
commit 4d3a8704d1
2 changed files with 148 additions and 0 deletions

View file

@ -27,5 +27,19 @@
pkgs.demostf-api-php
pkgs.nodejs
];
nixosModules = {outputs, ...}: {
default = {
pkgs,
config,
lib,
...
}: {
imports = [./nix/module.nix];
config = lib.mkIf config.services.demostf.api.enable {
nixpkgs.overlays = [outputs.overlays.default];
services.demostf.api.package = lib.mkDefault pkgs.demostf-api;
};
};
};
};
}