I said I was going to stay on stable channel only but I wanted a newer version of Obsidian as the version in stable at the time has a deprecreated Electron library version or something.
I could enable and use Flatpaks for tis purpose and still might but that wouldn't be the declaritive way so just in case, here's one way I found to install one-off packages from the unstable channel.
I'm not sure what implications this may have on stability, updates, builds, etc.
In a nix configuraiton, add something like this
# unstable.nix
{ config, pkgs, ... }:
let
unstable = import
(builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/nixos-unstable)
{ config = config.nixpkgs.config; };
in
{
environment.systemPackages = with pkgs; [
unstable.obsidian
];
}
more info: https://discourse.nixos.org/t/installing-only-a-single-package-from-unstable/5598/4