From da89731feda8b35a7c88ddc612f38acd5114ad31 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 5 Dec 2023 12:17:06 +0100 Subject: [PATCH 1/2] flake.lock: Update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flake lock file updates: • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/7c4c20509c4363195841faa6c911777a134acdf3' (2023-11-28) → 'github:NixOS/nixpkgs/933d7dc155096e7575d207be6fb7792bc9f34f6d' (2023-12-02) --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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": { From 172ca43383f7017930b9230bc5f55870363d96c4 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 5 Dec 2023 12:37:37 +0100 Subject: [PATCH 2/2] home: rbw: start service with graphical session otherwise it needed to be restarted to have access to DISPLAY related env variables --- home/rbw.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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";