Compare commits

..

2 commits

Author SHA1 Message Date
Antoine Martin 172ca43383 home: rbw: start service with graphical session
otherwise it needed to be restarted to have access to DISPLAY related
env variables
2023-12-05 12:37:37 +01:00
Antoine Martin da89731fed flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7c4c20509c4363195841faa6c911777a134acdf3' (2023-11-28)
  → 'github:NixOS/nixpkgs/933d7dc155096e7575d207be6fb7792bc9f34f6d' (2023-12-02)
2023-12-05 12:17:06 +01:00
2 changed files with 9 additions and 5 deletions

View file

@ -128,11 +128,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1701156937, "lastModified": 1701539137,
"narHash": "sha256-jpMJOFvOTejx211D8z/gz0ErRtQPy6RXxgD2ZB86mso=", "narHash": "sha256-nVO/5QYpf1GwjvtpXhyxx5M3U/WN0MwBro4Lsk+9mL0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7c4c20509c4363195841faa6c911777a134acdf3", "rev": "933d7dc155096e7575d207be6fb7792bc9f34f6d",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -37,9 +37,13 @@ in {
# This user service makes sure the rbw-agent is started when the user # This user service makes sure the rbw-agent is started when the user
# session launches. # session launches.
systemd.user.services.rbw = { 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 = { Service = {
ExecStart = "${pkgs.rbw}/bin/rbw-agent"; ExecStart = "${pkgs.rbw}/bin/rbw-agent";