nixos/home-manager/modules/programs/keeweb/default.nix

33 lines
672 B
Nix
Raw Normal View History

2024-02-02 13:45:05 +01:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.az-keeweb;
in
{
2023-11-08 12:38:07 +01:00
options = {
programs.az-keeweb.enable = lib.mkEnableOption "Enable keeweb.";
2023-11-08 12:38:07 +01:00
};
config = lib.mkIf cfg.enable {
2024-01-01 13:14:24 +01:00
home.packages = with pkgs; [ keeweb ];
systemd.user.services.keeweb = {
2023-11-08 12:38:07 +01:00
Unit = {
Description = "Start keeweb";
2023-11-08 12:38:07 +01:00
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
2023-11-08 20:09:05 +01:00
Environment = "QT_SCALE_FACTOR=1.25";
ExecStart = "${pkgs.keeweb}/bin/keeweb --no-sandbox";
2023-11-08 12:38:07 +01:00
};
2024-02-02 13:45:05 +01:00
Install = {
WantedBy = [ "graphical-session.target" ];
};
2023-11-08 12:38:07 +01:00
};
};
}