Installation
Run without installing on stable Nix:
$ nix run \
-f https://github.com/NixOS/nixpkgs-update/archive/main.tar.gz \
-c nixpkgs-update --help
Run without installing on unstable Nix with nix command enabled:
$ nix shell \
-f https://github.com/NixOS/nixpkgs-update/archive/main.tar.gz \
-c nixpkgs-update --help
Run without installing on unstable Nix with nix flakes enabled:
$ nix run \
github:NixOS/nixpkgs-update -- --help
Install into your Nix profile:
$ nix-env \
-if https://github.com/NixOS/nixpkgs-update/archive/main.tar.gz
Declaratively with niv:
$ niv add NixOS/nixpkgs-update
NixOS config with Niv:
let
sources = import ./nix/sources.nix;
nixpkgs-update = import sources.nixpkgs-update {};
in
environment.systemPackages = [ nixpkgs-update ];
home-manager config with Niv:
let
sources = import ./nix/sources.nix;
nixpkgs-update = import sources.nixpkgs-update {};
in
home.packages = [ nixpkgs-update ];