mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-09-11 05:45:45 +03:00
cfc9fd5cf5
- drop CI workflow, add attributes to checks - change cachix to nix-community - change doc workflow to deploy cached artifact also switch to using actions deployment that doesn't use repo branch
2.0 KiB
2.0 KiB
Installation
::: note For the Cachix cache to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted. :::
Run without installing on stable Nix:
$ nix run \
--option extra-substituters 'https://nix-community.cachix.org/' \
--option extra-trusted-public-keys 'nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=' \
-f https://github.com/ryantm/nixpkgs-update/archive/main.tar.gz \
-c nixpkgs-update --help
Run without installing on unstable Nix with nix command enabled:
$ nix shell \
--option extra-substituters 'https://nix-community.cachix.org/' \
--option extra-trusted-public-keys 'nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=' \
-f https://github.com/ryantm/nixpkgs-update/archive/main.tar.gz \
-c nixpkgs-update --help
Run without installing on unstable Nix with nix flakes enabled:
$ nix run \
--option extra-substituters 'https://nix-community.cachix.org/' \
--option extra-trusted-public-keys 'nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=' \
github:ryantm/nixpkgs-update -- --help
Install into your Nix profile:
$ nix-env \
--option extra-substituters 'https://nix-community.cachix.org/' \
--option extra-trusted-public-keys 'nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=' \
-if https://github.com/ryantm/nixpkgs-update/archive/main.tar.gz
Declaratively with niv:
$ niv add ryantm/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 ];