feat: Start 1password on startup

This commit is contained in:
uttarayan21
2024-06-24 20:33:20 +05:30
parent aea55a3118
commit 2cab6c4a20
2 changed files with 15 additions and 2 deletions

View File

@@ -2,10 +2,24 @@
pkgs,
device,
lib,
inputs,
...
}:
lib.attrsets.optionalAttrs device.hasGui {
systemd.user.services._1password-gui = {
Unit = {
Description = "1Password GUI";
BindsTo = ["graphical-session.target"];
After = ["graphical-session-pre.target"];
};
Service = {
ExecStart = "${pkgs._1password-gui}/bin/1password";
Restart = "always";
};
Install = {
WantedBy = ["graphical-session.target"];
};
};
home.packages = with pkgs;
[
via