refactor(treewide): clean-up, flatten, rework module system
This commit is contained in:
parent
4ddf9d2b35
commit
5590c8a951
58 changed files with 397 additions and 635 deletions
5
home/modules/desktop/productivity/pdf/default.nix
Normal file
5
home/modules/desktop/productivity/pdf/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./zathura.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,13 +1,15 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.ooknet.desktop.productivity.zathura;
|
||||
inherit (config.colorscheme) palette;
|
||||
fonts = config.ooknet.theme.fonts;
|
||||
inherit (lib) mkIf;
|
||||
cfg = config.ooknet.productivity.pdf.zathura;
|
||||
pdf = config.ooknet.desktop.pdf;
|
||||
fonts = config.ooknet.fonts;
|
||||
in
|
||||
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
config = mkIf (cfg.enable || pdf == "zathura") {
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
options = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue