refactor: use 'import-as-enable' pattern

This commit is contained in:
hektor committed 2026-03-11 21:25:32 +01:00
1 parent ed39959b61
commit 890146bc9d
15 files changed
+65 -170

No files matched your search

+6 -17
View File
@@ -1,19 +1,8 @@
{ pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
options.pandoc = {
enable = lib.mkEnableOption "pandoc";
};
config = lib.mkIf config.pandoc.enable {
home.packages = with pkgs; [
haskellPackages.pandoc-crossref
pandoc
texliveSmall
];
};
home.packages = with pkgs; [
haskellPackages.pandoc-crossref
pandoc
texliveSmall
];
}