Finish migration to NixOS modules

This commit is contained in:
Paul-Henri Froidmont 2024-03-26 23:37:53 +01:00
parent aef5eabce5
commit d944e36197
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
21 changed files with 1071 additions and 1151 deletions

View file

@ -1,5 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.custom.services.dokuwiki;
@ -47,11 +46,11 @@ let
in {
options.custom.services.dokuwiki = {
enable = mkEnableOption "dokuwiki";
enable = lib.mkEnableOption "dokuwiki";
secretKeyFile = mkOption { type = types.path; };
secretKeyFile = lib.mkOption { type = lib.types.path; };
};
config = mkIf cfg.enable
config = lib.mkIf cfg.enable
(lib.mkMerge [ (configureWiki "anderia") (configureWiki "arkadia") ]);
}