2021-11-01 20:33:21 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2021-09-03 20:41:43 +00:00
|
|
|
|
2021-11-01 20:33:21 +00:00
|
|
|
let
|
|
|
|
cfg = config.ptw.programs.xournalpp;
|
|
|
|
in {
|
|
|
|
options.ptw.programs.xournalpp = {
|
|
|
|
enable = lib.mkEnableOption "Install xournalpp";
|
|
|
|
configure = lib.mkEnableOption "Configure xournalpp using HomeManager";
|
|
|
|
};
|
2021-09-03 20:41:43 +00:00
|
|
|
|
2021-11-01 20:33:21 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [ xournalpp-git ];
|
|
|
|
|
|
|
|
home-manager.users."${config.ptw.system.singleUser}".home.file = lib.mkIf cfg.configure {
|
|
|
|
".xournalpp/settings.xml".source = ./settings.xml;
|
|
|
|
".xournalpp/toolbar.ini".source = ./toolbar.ini;
|
|
|
|
};
|
|
|
|
};
|
2021-09-03 20:41:43 +00:00
|
|
|
}
|