diff --git a/common/gui.nix b/common/gui.nix index f2c8eab8..727fdf2b 100644 --- a/common/gui.nix +++ b/common/gui.nix @@ -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 diff --git a/linux/hyprland.nix b/linux/hyprland.nix index 83968b3c..36e0439a 100644 --- a/linux/hyprland.nix +++ b/linux/hyprland.nix @@ -1,6 +1,5 @@ { pkgs, - inputs, device, ... }: {