ThinLinc client not working

I have tried installing tlclient: NixOS Search

with Nix Configuration and also Nix-Shell, both of them don’t work.
Error from nix-configuration:

   (stack trace truncated; use '--show-trace' to show the full trace)

   error: attribute 'tlclient' missing

   at /nix/store/1057zg936kwgp0yqh2bg8n537n2x5z5m-source/configuration.nix:194:1:

      193| openvpn
      194| pkgs.tlclient
         | ^
      195| macchanger
   Did you mean one of tlsclient, ddclient, mtxclient, otpclient or uclient?

From nix-shell:
error: undefined variable ‘thinlincclient’

   at «string»:1:107:

        1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (thinlincclient) ]; } ""
         |

What channel are you on?

The linked packages definition got added to nixpkgs during September, so if you are on 24.05 or an unstable from before September, then that would explain why you don’t see it.

nix-channels:

nixos nixos-unstable release nixos-25.05pre791944.46e634be05ce
nixos-unstable nixos-unstable release nixos-25.05pre791944.46e634be05ce

nix-info:

system: “x86_64-linux”, multi-user?: yes, version: nix-env (Nix) 2.18.8, channels(root): “nixos-24.11”, nixpkgs: /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source

Please delete roots nixos-24.11 channel and add a channel named nixos that points to the nixpkgs you actually want.

Also you might want to remove the user channels you have, unless you know why you keep them there and how to use them properly without confusing yourself.

Could you please provide external info how to do that. I just did

sudo nix-channel --remove nixos-unstable
should I delete the stable nixos channel and then update it or just install via:

sudo nix-channel --add nixos

Thanks for help!

I have not used channels in years and don’t remember the commands, just the rough behaviour.

And the channel you need to remove is nixos-24.11 of root.

Removed it and it still doesn’t work

But did you add a nixos channel pointing at the correct URL?

What is the output of sudo nix-channel --list?

Did you also remove the user channels or can explain why you have them and how you use them?

Did you run sudo nix-channel --update after adding the new nixos channel as root?

And given that there is a store path mentioning your file, are you actually using flakes?

If yes forget all the questions about channels and please post your flake.nix and flake.lock.

sudo nix-channel --list

sudo nix-channel --list
[sudo] password for perchant: 
nixos https://nixos.org/channels/nixos-24.11

Yes the user channels are clear
I did ran sudo nix-channel --update
here is flake.nix

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
    zen-browser.url = "github:0xc000022070/zen-browser-flake";

  };
  outputs = { self, nixpkgs, zen-browser }: {
    # replace 'nixos' with your hostname here.
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [ ./configuration.nix ];
    };
  };
}

flake.lock

{
  "nodes": {
    "nixpkgs": {
      "locked": {
        "lastModified": 1735563628,
        "narHash": "sha256-OnSAY7XDSx7CtDoqNh8jwVwh4xNL/2HaJxGjryLWzX8=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "b134951a4c9f3c995fd7be05f3243f8ecd65d798",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixos-24.05",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "nixpkgs_2": {
      "locked": {
        "lastModified": 1735471104,
        "narHash": "sha256-0q9NGQySwDQc7RhAV2ukfnu7Gxa5/ybJ2ANT8DQrQrs=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "88195a94f390381c6afcdaa933c2f6ff93959cb4",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "nixpkgs": "nixpkgs",
        "zen-browser": "zen-browser"
      }
    },
    "zen-browser": {
      "inputs": {
        "nixpkgs": "nixpkgs_2"
      },
      "locked": {
        "lastModified": 1738232271,
        "narHash": "sha256-AeAvRtsZynVS8/FKBc0GsNm91J2zkvCAr3UgqOobc1o=",
        "owner": "0xc000022070",
        "repo": "zen-browser-flake",
        "rev": "cf9f5fdb2755617d234f0dc4d85994f3fd20d9cf",
        "type": "github"
      },
      "original": {
        "owner": "0xc000022070",
        "repo": "zen-browser-flake",
        "type": "github"
      }
    }
  },
  "root": "root",
  "version": 7
}

As you are using flakes for your system configuration, everything you did via nix-channel is not relevant for the system configuration.

And your systems nixpkgs input is using nixos-24.05, please update your input to nixos-24.11 or nixos-unstable.

After that do a sudo nixos-rebuild boot (with or without --flake ..., depending on how you do it usually) and then reboot.

Please also keep in mind, that in ~4 weeks the release of 25.05 is due and if you choose to use nixos-24.11 now, you’ll have to update in ~8 weeks again, as 24.11 will go end of life one month after the release of 25.05.

1 Like

In addition, when using flakes you have to update your inputs with nix flake update in the directory with the flake.nix, rather than the --upgrade switch on nixos-rebuild.

I would also suggest removing the last channel from your root channels, since some commands end up referring to it and it’d be better to get errors than years-old software. NixOS 24.11 will correctly populate your channels from flake inputs anyway.

changed to 24.11 in flake.nix updated flakes and when running sudo nixos-rebuild boot

error:

error:
       … while calling the 'head' builtin

         at /nix/store/ya2jssw2nrpkhh9vy1wc2455ck5gcwp5-source/lib/attrsets.nix:1534:13:

         1533|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1534|             head values
             |             ^
         1535|           else

       … while evaluating the attribute 'value'

         at /nix/store/ya2jssw2nrpkhh9vy1wc2455ck5gcwp5-source/lib/modules.nix:992:7:

          991|     // {
          992|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
          993|       inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: 1 dependencies of derivation '/nix/store/89mmx0817n3ymyl3vlac1aw12n69d8k5-vmware-workstation-17.6.1.drv' failed to build

I’m fairly sure you’ve cut out the meaningful text, please share all the output.

Sorry, didn’t mean to:

[sudo] password for : 
building the system configuration...
trace: evaluation warning: The option `virtualisation.virtualbox.guest.draganddrop' defined in `/nix/store/xais8sdqa04hzrwrwci8xc8prpbddnli-source/configuration.nix' has been renamed to `virtualisation.virtualbox.guest.dragAndDrop'.
trace: evaluation warning: The ‘gnome.gnome-tweaks’ was moved to top-level. Please use ‘pkgs.gnome-tweaks’ directly.
trace: evaluation warning: The ‘gnome.gnome-software’ was moved to top-level. Please use ‘pkgs.gnome-software’ directly.
error: builder for '/nix/store/p579cya2ji6vgblx9l7fv1svikjymk9i-source.drv' failed with exit code 1;
       last 10 log lines:
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0curl: (6) Could not resolve host: softwareupdate.vmware.com
       > Warning: Problem : timeout. Will retry in 1 seconds. 3 retries left.
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0curl: (6) Could not resolve host: softwareupdate.vmware.com
       > Warning: Problem : timeout. Will retry in 2 seconds. 2 retries left.
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0curl: (6) Could not resolve host: softwareupdate.vmware.com
       > Warning: Problem : timeout. Will retry in 4 seconds. 1 retries left.
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0curl: (6) Could not resolve host: softwareupdate.vmware.com
       > error: cannot download source from any mirror
       For full logs, run 'nix log /nix/store/p579cya2ji6vgblx9l7fv1svikjymk9i-source.drv'.
error:
       … while calling the 'head' builtin

         at /nix/store/ya2jssw2nrpkhh9vy1wc2455ck5gcwp5-source/lib/attrsets.nix:1534:13:

         1533|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1534|             head values
             |             ^
         1535|           else

       … while evaluating the attribute 'value'

         at /nix/store/ya2jssw2nrpkhh9vy1wc2455ck5gcwp5-source/lib/modules.nix:992:7:

          991|     // {
          992|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
          993|       inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: 1 dependencies of derivation '/nix/store/89mmx0817n3ymyl3vlac1aw12n69d8k5-vmware-workstation-17.6.1.drv' failed to build

Looks like vmware stopped providing downloads for this software. Issue was fixed about a month ago, try to update more regularly.

To fix your build, update your channel/flake inputs and run the command again, nix will give you instructions on what to do.

That issue contains a long-form explanation, too, if you need more help after.

I have not seen a backport mentioned. OP is using 24.11, AFAIU, not unstable.

So it might be that they have to get the exact file from “somewhere” and then nix-store --add it, though I never remember the details of the invocation.

Alternatively, switching to unstable would be another solution.

1 Like

I might be having some serious issues… I removed the vmware because I’m not using it anymore…

and tried to rebuild the system with everything as it was

sudo nixos-rebuild boot
building the system configuration...
trace: evaluation warning: The option `virtualisation.virtualbox.guest.draganddrop' defined in `/nix/store/lmv2gwnmdddsr7axls3a1kzw0f16a57f-source/configuration.nix' has been renamed to `virtualisation.virtualbox.guest.dragAndDrop'.
trace: evaluation warning: The ‘gnome.gnome-tweaks’ was moved to top-level. Please use ‘pkgs.gnome-tweaks’ directly.
trace: evaluation warning: The ‘gnome.gnome-software’ was moved to top-level. Please use ‘pkgs.gnome-software’ directly.
error: builder for '/nix/store/p579cya2ji6vgblx9l7fv1svikjymk9i-source.drv' failed with exit code 1;
       last 10 log lines:
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0curl: (6) Could not resolve host: softwareupdate.vmware.com
       > Warning: Problem : timeout. Will retry in 1 seconds. 3 retries left.
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0curl: (6) Could not resolve host: softwareupdate.vmware.com
       > Warning: Problem : timeout. Will retry in 2 seconds. 2 retries left.
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0curl: (6) Could not resolve host: softwareupdate.vmware.com
       > Warning: Problem : timeout. Will retry in 4 seconds. 1 retries left.
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0curl: (6) Could not resolve host: softwareupdate.vmware.com
       > error: cannot download source from any mirror
       For full logs, run 'nix log /nix/store/p579cya2ji6vgblx9l7fv1svikjymk9i-source.drv'.
error:
       … while calling the 'head' builtin

         at /nix/store/ya2jssw2nrpkhh9vy1wc2455ck5gcwp5-source/lib/attrsets.nix:1534:13:

         1533|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1534|             head values
             |             ^
         1535|           else

       … while evaluating the attribute 'value'

         at /nix/store/ya2jssw2nrpkhh9vy1wc2455ck5gcwp5-source/lib/modules.nix:992:7:

          991|     // {
          992|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
          993|       inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: 1 dependencies of derivation '/nix/store/89mmx0817n3ymyl3vlac1aw12n69d8k5-vmware-workstation-17.6.1.drv' failed to build
➜  nixos nixi                   
building the system configuration...
trace: evaluation warning: The option `virtualisation.virtualbox.guest.draganddrop' defined in `/nix/store/9njdva7ahcgx9939cwv27lbrdqxp2v6d-source/configuration.nix' has been renamed to `virtualisation.virtualbox.guest.dragAndDrop'.
trace: evaluation warning: The ‘gnome.gnome-tweaks’ was moved to top-level. Please use ‘pkgs.gnome-tweaks’ directly.
trace: evaluation warning: The ‘gnome.gnome-software’ was moved to top-level. Please use ‘pkgs.gnome-software’ directly.
warning: error: unable to download 'https://cache.nixos.org/nar/0c0866xrrsqimnq1bf13ffgzph7fbsrywdcz60788y1009xv9y4r.nar.xz': HTTP error 200 (curl error: Stream error in the HTTP/2 framing layer); retrying from offset 255808 in 333 ms
error: builder for '/nix/store/bmj3r3ib7hs87dcxzhwfcx0hdwmgsgj1-Noto.tar.xz.drv' failed with exit code 1;
       last 10 log lines:
       > error checking the existence of https://tarballs.nixos.org/sha256/0vq9lgf4j6pi7pw3bfgfzkcdixnhikf4yys8fr0qql7mkwhj3rjb:
       > curl: (28) Resolving timed out after 15000 milliseconds
       >
       > trying https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/Noto.tar.xz
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
       >  16 65.3M   16 10.9M    0     0  13985      0  1:21:41  0:13:43  1:07:58     0
       > curl: (56) Recv failure: Connection reset by peer
       > error: cannot download Noto.tar.xz from any mirror
       For full logs, run 'nix log /nix/store/bmj3r3ib7hs87dcxzhwfcx0hdwmgsgj1-Noto.tar.xz.drv'.
error: builder for '/nix/store/1qrhsjm9krbcdv0y6r1aj3px3hif958l-android-studio-2024.2.1.9-linux.tar.gz.drv' failed with exit code 1;
       last 7 log lines:
       >
       > trying https://dl.google.com/dl/android/studio/ide-zips/2024.2.1.9/android-studio-2024.2.1.9-linux.tar.gz
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0 1197M    0 2940k    0     0   7585      0 45:58:59  0:06:36 45:52:23     0
       > curl: (56) Recv failure: Connection reset by peer
       > error: cannot download android-studio-2024.2.1.9-linux.tar.gz from any mirror
       For full logs, run 'nix log /nix/store/1qrhsjm9krbcdv0y6r1aj3px3hif958l-android-studio-2024.2.1.9-linux.tar.gz.drv'.
error: 1 dependencies of derivation '/nix/store/8jqizbn0mgcih3rpag64xxymg6yglz4c-android-studio-stable-2024.2.1.9-unwrapped.drv' failed to build
error: 1 dependencies of derivation '/nix/store/132c2c9krqqpqdfyp1lq6jwcgp2yylhx-nerdfonts-3.2.1.drv' failed to build
warning: error: unable to download 'https://cache.nixos.org/nar/1wlc52963lk9slkmvqg95fsjma1rq6ashg993vmjxsjfkqw8rlkm.nar.xz': Timeout was reached (28); retrying in 305 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0mqbf6fx6gn69ad11hv4iwz1d89qr42yam606bfc02rq2bc62d81.nar.xz': HTTP error 200 (curl error: Failure when receiving data from the peer); retrying from offset 2304685 in 266 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1zafby1wq7wx5kn77dkkv5svrpr85sl25lcsc48bl4llm8wcngjq.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 2195456 in 304 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1rmp0vqppy6sc1f1n11m75v9gzcrw863fj2m3jcjrs7qqw8kplj8.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 2031616 in 279 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0yv7lidm799s0vn7xgjrq945khrqdska5pba98dlq78fybv9f4da.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 2080768 in 261 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1qrc10k2bjjl68rgkk4xgv9dq2h6rbhdcsdaqr6gjkcz6wmm5ry7.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 1576095 in 335 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0g0mg3wz695yxllzaf4asksy9kwm20ia58j1sj525yyvn0lmq4lx.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 1556480 in 267 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1y6plccz1sl1xip6vm7ia48dsv4rya88rg4nnlm039acdvwqkcqr.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 1507220 in 307 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1sjvxy1bxg7az689yd02gzy8gxywkd61883sq0lm179qnxmwf30n.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 753664 in 279 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0g8d9gz7amjwzfs031bki9zmlqk1742dbvnyb3s79fwsrg37sxlw.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 573440 in 307 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1wnplnzi4b0yag5z514ij7208x0kgcknznq69ncc83wg03g2i69f.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 327680 in 265 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1jbwh7p1v3ykzlan2mkcqrmdaa2nqjaba6d828zc1x91dd4cjy2j.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 180224 in 319 ms
warning: error: unable to download 'https://cache.nixos.org/nar/06q686p9jm9fl2h3wncv4lkwdl9rbk8fl6w0z3299s374z2n7b9m.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 180206 in 270 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0shcbvjx48x6qy65k97z46pb4ny4vfcy4ijz8g7zgqlkgli8crrj.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 113391 in 278 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1ggykhfgr292sz4v77sn9fvfqwv0i05n0n36d8yhkgfsrfsjp96z.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 81920 in 317 ms
warning: error: unable to download 'https://cache.nixos.org/nar/04z4635032sah504xj58ml9h63pbqv3519vpkkknbiyjha2zmjdz.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 26798 in 325 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1wlc52963lk9slkmvqg95fsjma1rq6ashg993vmjxsjfkqw8rlkm.nar.xz': Failed sending data to the peer (55); retrying in 556 ms
error: 1 dependencies of derivation '/nix/store/b8dajnl9c24l5azc8k40pshvjcj9gnmc-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/d8ff1x3zvv9wfcj8hcyrnrlvhzh5lp3j-nixos-system-nixos-24.11.20250505.5b35d24.drv' failed to build

main problem being this:
error: 1 dependencies of derivation '/nix/store/d8ff1x3zvv9wfcj8hcyrnrlvhzh5lp3j-nixos-system-nixos-24.11.20250505.5b35d24.drv' failed to build

Looks like something is being downloaded, but it keeps being interrupted. At the very least, networking related. Try a different ISP, maybe via phone tethering? Or just retry at a different time?

It was the internet speeds. after connecting ethernet. Everything ran smoothly. The solution was that I had to update the flakes. I forgot that I even had flakes on my machine. I will mark solution bellow. Thanks!