Create `gnome-keyring` systemd service

finchie
Mar 12, 2025, 10:30 AM
CMN6CONJYEZ3K46EW7HIJRTPZXLCWGWP6X6CSIBATCR2L54LCRZQC

Dependencies

Change contents

  • edit in home.nix at line 148
    [2.1852]
    [2.1852]
    # All credit to @jordanisaacs for the solution:
    # https://github.com/jordanisaacs/dotfiles/blob/4a779f42204c4fff743c12b26e28567eaf8cc334/modules/users/graphical/shared.nix#L174
    systemd.user.services.gnome-keyring = {
    Unit = {
    Description = "GNOME Keyring";
    PartOf = [ "graphical-session-pre.target" ];
    };
    Service = {
    ExecStart =
    "/run/wrappers/bin/gnome-keyring-daemon --start --foreground";
    Restart = "on-abort";
    };
    Install = { WantedBy = [ "graphical-session-pre.target" ]; };
    };