NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.04k forks source link

Spotify app deauthorizes me every reboot #352888

Open nukdokplex opened 2 hours ago

nukdokplex commented 2 hours ago

Describe the bug

About 3-4 weeks i am facing issue with Spotify application (pkgs.spotify). App just asks me to sign in every time i boot and that is very annoying. BUT if i close spotify and open it again without any reboots it will not ask to sign in and just bring me to my music.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install NixOS with home-manager as module and add to home.packages (or even to system environment.packages it doesn't matter) spotify package
  2. Open spotify and sign in using browser
  3. Close spotify gracefully and reboot
  4. Login to your account, open spotify and it asks to sign in again... bruh

Expected behavior

Spotify not asks me to sign in every reboot

Screenshots

image

Additional context

I have already tried:

  1. Removed spicetify (i use this one: github:Gerg-L/spicetify-nix)
  2. Many times i removed those directories: ~/.cache/spotify and ~/.config/spotify. Signed in again then
  3. Successfully overrided attributes of pkgs.spotify to bump version. (Tried latest stable and edge at the moment), nothing changed

Notify maintainers

@ftrvxmtrx @sheenobu @timokau @Ma27

Metadata


Add a :+1: reaction to issues you find important.

Ma27 commented 2 hours ago

Do you use something like impermanence which might remove relevant state after a reboot?

nukdokplex commented 2 hours ago

@Ma27 I have several symlinks in my home configuration:

xdg.userDirs = {
    enable = true;
    desktop = "${config.home.homeDirectory}/desktop";
    documents = "${config.home.homeDirectory}/documents";
    download = "${config.home.homeDirectory}/download";
    music = "${config.home.homeDirectory}/music";
    pictures = "${config.home.homeDirectory}/pictures";
    publicShare = "${config.home.homeDirectory}/public_share";
    templates = "${config.home.homeDirectory}/templates";
    videos = "${config.home.homeDirectory}/videos";
  };

home.file = lib.mkIf (osConfig.networking.hostName == "sleipnir") {
    "dotssh-dir-symlink" = {
      target = ".ssh";
      source = config.lib.file.mkOutOfStoreSymlink "/data/passport/ssh";
    };
    "music-dir-symlink" = {
      target = "music";
      source = config.lib.file.mkOutOfStoreSymlink "/data/archive/music";
    };
    "pictures-dir-symlink" = {
      target = "pictures";
      source = config.lib.file.mkOutOfStoreSymlink "/data/archive/pictures";
    };
    "videos-dir-symlink" = {
      target = "videos";
      source = config.lib.file.mkOutOfStoreSymlink "/data/archive/videos";
    };
    "documents-dir-symlink" = {
      target = "documents";
      source = config.lib.file.mkOutOfStoreSymlink "/data/archive/documents";
    };
  };

but it's only on one of my hosts, this problem appearing on all of my hosts

nukdokplex commented 2 hours ago

you can check my whole configuration here: github:nukdokplex/daac

nukdokplex commented 1 hour ago

@Ma27 i am sorry, now i figured out that you are talking about github:nix-community/impermanence. no, i don't use this at all