nixos-config/modules/programs/xournalpp/default.nix

20 lines
566 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.ptw.programs.xournalpp;
in {
options.ptw.programs.xournalpp = {
enable = lib.mkEnableOption "Install xournalpp";
configure = lib.mkEnableOption "Configure xournalpp using HomeManager";
};
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;
};
};
}