I am using zed-editor-fhs in a flake as well as globally in /etc/nixos/configuration.nix, from the unstable branch:
Flake
{
description = "...";
inputs = {
stable.url = "github:NixOS/nixpkgs/nixos-25.11";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
stable,
unstable,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import stable {
inherit system;
config.allowUnfree = true;
};
pkgsUnstable = import unstable {
inherit system;
config.allowUnfree = true;
};
in
{
devShells = {
default = pkgs.mkShell {
buildInputs = [
pkgs.nodePackages.nodejs
pkgs.corepack
pkgsUnstable.zed-editor-fhs
];
};
};
}
);
}
/etc/nixos/configuration
{ config, pkgs, ... }:
let
unstable = import <nixos-unstable> { config.allowUnfree = true; };
in
{
environment.systemPackages = with pkgs; [
unstable.zed-editor-fhs
];
}
When I ran nix flake update in my project, Zed got updated to version 1.0.0. But when I ran sudo nixos-rebuild switch --upgrade, the global Zed version remained at 0.224.11.
What am I missing/doing wrong here?
Thanks in advance.