mirror of
https://codeberg.org/demostf/api.git
synced 2026-08-02 12:24:52 +02:00
nix module
This commit is contained in:
parent
52b9bc09fd
commit
4d3a8704d1
2 changed files with 148 additions and 0 deletions
14
flake.nix
14
flake.nix
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue