Skip to content

Commit

Permalink
Update dependencies and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukant Hajra committed Feb 4, 2024
1 parent 8d03bd3 commit 1a0e3bc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/nix-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ To use flakes there are two things we need to do:
1. make sure the version of Nix we're on is at least 2.4
2. enable both the `nix-command` and `flakes` experimental features.

Since the latest release of Nix is already at 2.19, if you installed Nix recently as per the instructions above, you should be on a recent-enough version:
Since the latest release of Nix is already at 2.20, if you installed Nix recently as per the instructions above, you should be on a recent-enough version:

```sh
nix --version
Expand Down
12 changes: 6 additions & 6 deletions doc/nix-usage-flakes.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ After a successful call of `nix build`, you'll see one or more symlinks for each
readlink result*
```

/nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager
/nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager

Following these symlinks, we can see the files the project provides:

Expand Down Expand Up @@ -300,7 +300,7 @@ It's common to configure these “result” symlinks as ignored in source contro
nix path-info .#home-manager
```

/nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager
/nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager

## Running commands in a shell<a id="sec-4-6"></a>

Expand All @@ -316,7 +316,7 @@ nix shell \
--command home-manager --help
```

Usage: /nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager/bin/home-manager [OPTION] COMMAND
Usage: /nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager/bin/home-manager [OPTION] COMMAND

Options

Expand Down Expand Up @@ -366,7 +366,7 @@ Here's the `nix run` equivalent of the `nix shell` invocation from the previous
nix run .#home-manager -- --help
```

Usage: /nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager/bin/home-manager [OPTION] COMMAND
Usage: /nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager/bin/home-manager [OPTION] COMMAND

Options

Expand Down Expand Up @@ -413,7 +413,7 @@ nix shell --ignore-environment \
--command which home-manager
```

/nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager/bin/home-manager
/nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager/bin/home-manager

What we do with local flake references can work just as well with remote flake references.

Expand Down Expand Up @@ -441,7 +441,7 @@ nix profile list
Flake attribute: packages.x86_64-linux.home-manager
Original flake URL: git+file:///home/tnks/src/shajra/shajra-provisioning
Locked flake URL: git+file:///home/tnks/src/shajra/shajra-provisioning
Store paths: /nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager
Store paths: /nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager

If we want to uninstall a program from our profile, we do so by the index from this list:

Expand Down
12 changes: 6 additions & 6 deletions doc/nix-usage-flakes.org
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ readlink result*
#+end_src

#+RESULTS: nix-build-link
: /nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager
: /nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager

Following these symlinks, we can see the files the project provides:

Expand Down Expand Up @@ -485,7 +485,7 @@ nix path-info .#<<get("package-attr-short")>>
#+end_src

#+results: nix-build-path
: /nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager
: /nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager

** Running commands in a shell

Expand All @@ -509,7 +509,7 @@ nix shell \
#+end_src

#+RESULTS: nix-shell
: Usage: /nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager/bin/home-manager [OPTION] COMMAND
: Usage: /nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager/bin/home-manager [OPTION] COMMAND
:
: Options
:
Expand Down Expand Up @@ -583,7 +583,7 @@ nix run .#<<get("run-attr-short")>> -- --help
#+end_src

#+RESULTS: nix-run
: Usage: /nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager/bin/home-manager [OPTION] COMMAND
: Usage: /nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager/bin/home-manager [OPTION] COMMAND
:
: Options
:
Expand Down Expand Up @@ -647,7 +647,7 @@ nix shell --ignore-environment \
#+end_src

#+RESULTS: nix-shell-remote
: /nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager/bin/home-manager
: /nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager/bin/home-manager

What we do with local flake references can work just as well with remote flake
references.
Expand Down Expand Up @@ -698,7 +698,7 @@ nix profile list --profile /tmp/nix-profile | ansifilter
: Flake attribute: packages.x86_64-linux.home-manager
: Original flake URL: git+file:///home/tnks/src/shajra/shajra-provisioning
: Locked flake URL: git+file:///home/tnks/src/shajra/shajra-provisioning
: Store paths: /nix/store/bs7d07qayavy772y44pwnky49h41l8c4-home-manager
: Store paths: /nix/store/cs7jh7q6sl7ak8fws5ld7b2l9xh6b673-home-manager

If we want to uninstall a program from our profile, we do so by the index from
this list:
Expand Down

0 comments on commit 1a0e3bc

Please sign in to comment.