diff --git a/flake.lock b/flake.lock index 9ae8be3..764aa73 100644 --- a/flake.lock +++ b/flake.lock @@ -128,11 +128,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1701156937, - "narHash": "sha256-jpMJOFvOTejx211D8z/gz0ErRtQPy6RXxgD2ZB86mso=", + "lastModified": 1701539137, + "narHash": "sha256-nVO/5QYpf1GwjvtpXhyxx5M3U/WN0MwBro4Lsk+9mL0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "7c4c20509c4363195841faa6c911777a134acdf3", + "rev": "933d7dc155096e7575d207be6fb7792bc9f34f6d", "type": "github" }, "original": { diff --git a/home/rbw.nix b/home/rbw.nix index 974226e..2c36d63 100644 --- a/home/rbw.nix +++ b/home/rbw.nix @@ -37,9 +37,13 @@ in { # This user service makes sure the rbw-agent is started when the user # session launches. systemd.user.services.rbw = { - Unit.Description = "rbw agent autostart"; + Unit = { + Description = "rbw agent autostart"; + After = "graphical-session.target"; + PartOf = "graphical-session.target"; + }; - Install.WantedBy = ["default.target"]; + Install.WantedBy = ["graphical-session.target"]; Service = { ExecStart = "${pkgs.rbw}/bin/rbw-agent";