[GH-ISSUE #316] Nix flake has wrong version. #1761

Closed
opened 2026-04-27 22:30:18 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @DrMondGnu on GitHub (Apr 14, 2026).
Original GitHub issue: https://github.com/fosrl/newt/issues/316

Describe the Bug

When installing newt using nix flakes its version will be displayed incorrectly in the Pangolin site dashboard.

Image

Environment

  • OS Type & Version: NixOS 25.11 (unstable channel)
  • Pangolin Version: 1.17.1
  • Gerbil Version: 1.3.1
  • Traefik Version: 3,6,13
  • Newt Version: 1.11.0

To Reproduce

Using nix flakes:
flake.nix

{
  inputs = {
    newt.url = "github:fosrl/newt";
  };
  outputs =
    inputs@{
      self,
      nixpkgs,
      newt,
      ...
    }:
    let
      system = "x86_64-linux";
    in
    {
      nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
        modules = [
          ./hardware-configuration.nix # Or something similar depending on your setup
          {
            # My system specific config
            boot.loader.systemd-boot.enable = true;
            boot.loader.efi.canTouchEfiVariables = true;

            # Configure newt service
            environment.systemPackages = [ newt.packages.${system}.default ];
            systemd.services.fosrl-newt = {
              description = "FOSRL-Newt Networking Service";
              after = [ "network.target" ];
              wantedBy = [ "multi-user.target" ];
              environment = {
                PANGOLIN_ENDPOINT = "https://pangolin.example.com";
                NEWT_ID = "<newt-id>";
                NEWT_SECRET = "<newt-secret>";
              };
              serviceConfig = {
                ExecStart = "${newt.packages.${system}.default}/bin/newt";
              };
            };
          }
        ];
      };
    };
}

Expected Behavior

It should probably show 1.11.0 in the dashboard. I am not sure if that is just a visual bug or could jeopardize newt tunnel connections.
Solution:
From my limited understanding changing this value should fix this:
3d2b73d417/flake.nix (L28)

Originally created by @DrMondGnu on GitHub (Apr 14, 2026). Original GitHub issue: https://github.com/fosrl/newt/issues/316 ### Describe the Bug When installing newt using nix flakes its version will be displayed incorrectly in the Pangolin site dashboard. <img width="1276" height="100" alt="Image" src="https://github.com/user-attachments/assets/572e6bb7-24bf-445c-b0f1-d39a714fd874" /> ### Environment - OS Type & Version: NixOS 25.11 (unstable channel) - Pangolin Version: 1.17.1 - Gerbil Version: 1.3.1 - Traefik Version: 3,6,13 - Newt Version: 1.11.0 ### To Reproduce Using nix flakes: **flake.nix** ```nix { inputs = { newt.url = "github:fosrl/newt"; }; outputs = inputs@{ self, nixpkgs, newt, ... }: let system = "x86_64-linux"; in { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { modules = [ ./hardware-configuration.nix # Or something similar depending on your setup { # My system specific config boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; # Configure newt service environment.systemPackages = [ newt.packages.${system}.default ]; systemd.services.fosrl-newt = { description = "FOSRL-Newt Networking Service"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; environment = { PANGOLIN_ENDPOINT = "https://pangolin.example.com"; NEWT_ID = "<newt-id>"; NEWT_SECRET = "<newt-secret>"; }; serviceConfig = { ExecStart = "${newt.packages.${system}.default}/bin/newt"; }; }; } ]; }; }; } ``` ### Expected Behavior It should probably show 1.11.0 in the dashboard. I am not sure if that is just a visual bug or could jeopardize newt tunnel connections. **Solution:** From my limited understanding changing this value should fix this: https://github.com/fosrl/newt/blob/3d2b73d417363d4c83a9a3d191c6b58b18e31485/flake.nix#L28
Author
Owner

@oschwartz10612 commented on GitHub (Apr 14, 2026):

Should be fixed by #317

<!-- gh-comment-id:4247243320 --> @oschwartz10612 commented on GitHub (Apr 14, 2026): Should be fixed by #317
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#1761