I want to use Mullvad (version: 2024.7 ) on my NixOS machine. I installed Mullvad via a devShell flake. And I “deployed” it with nix develop
. Here is the flake:
{
description = "Development environment with Mullvad VPN";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
mullvad
mullvad-vpn
];
shellHook = ''
# You might want to add any initialization here
echo "Mullvad VPN development environment activated"
'';
};
}
) // {
nixosModules.default = { config, lib, pkgs, ... }: {
services.mullvad-vpn.enable = true;
};
};
}
When trying to use mullvad in the cli I get this error
Error: Management RPC server or client error
Caused by:
0: transport error
1: error trying to connect: No such file or directory (os error 2)
2: No such file or directory (os error 2)
Starting mullvad as gui application show me this:
I also tried to install mullvad in the configuration.nix
but I got the same error.
Does anyone know how to fix it?
Thanks in advance!!