1a737bd471
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
30 lines
722 B
Nix
30 lines
722 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.my.keepassxc;
|
|
in {
|
|
options.my.keepassxc = {
|
|
enable = lib.mkEnableOption null;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = [ pkgs.keepassxc ];
|
|
|
|
systemd.user.services.keepassxc = {
|
|
Unit = {
|
|
Description = "KeePassXC password manager";
|
|
After = [ "graphical-session-pre.target" "tray.target" "eww-bar.service" ];
|
|
PartOf = [ "graphical-session.target" ];
|
|
Requires = [ "tray.target" ];
|
|
};
|
|
Service = {
|
|
ExecStart = "${pkgs.keepassxc}/bin/keepassxc";
|
|
Environment = "QT_QPA_PLATFORM=wayland";
|
|
};
|
|
Install = {
|
|
WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
};
|
|
};
|
|
}
|