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 Dec 21, 2023
1 parent ffb9168 commit cf4ab7b
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 101 deletions.
4 changes: 2 additions & 2 deletions config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
];
# DESIGN: https://github.com/input-output-hk/hackage.nix/blob/master/index-state-hashes.nix
hackage.index = {
state = "2023-12-14T00:00:00Z";
sha256 = "f8b826baeaea6b17378c47f4ef0f33ead0f4e992c8d161505e4d5ae260539461";
state = "2023-12-21T00:00:00Z";
sha256 = "c3d9514b6ba40fca486edd54431fa29b56adcbd2f5f1a001770f5fe714e11deb";
};
nixpkgs-pin = "nixpkgs-unstable";
};
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 @@ -267,7 +267,7 @@ After a successful call of `nix build`, you'll see one or more symlinks for each
readlink result*
```

/nix/store/nzfbfrc5dpnh1hmncp0n3pb40z790b6j-home-manager
/nix/store/3yq7m1kgmkp4mkx2av8h3my22g0f135l-home-manager

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

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

/nix/store/nzfbfrc5dpnh1hmncp0n3pb40z790b6j-home-manager
/nix/store/3yq7m1kgmkp4mkx2av8h3my22g0f135l-home-manager

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

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

Usage: /nix/store/nzfbfrc5dpnh1hmncp0n3pb40z790b6j-home-manager/bin/home-manager [OPTION] COMMAND
Usage: /nix/store/3yq7m1kgmkp4mkx2av8h3my22g0f135l-home-manager/bin/home-manager [OPTION] COMMAND

Options

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

Usage: /nix/store/nzfbfrc5dpnh1hmncp0n3pb40z790b6j-home-manager/bin/home-manager [OPTION] COMMAND
Usage: /nix/store/3yq7m1kgmkp4mkx2av8h3my22g0f135l-home-manager/bin/home-manager [OPTION] COMMAND

Options

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

/nix/store/nzfbfrc5dpnh1hmncp0n3pb40z790b6j-home-manager/bin/home-manager
/nix/store/3yq7m1kgmkp4mkx2av8h3my22g0f135l-home-manager/bin/home-manager

This is all a consequence of everything discussed in previous sections, but it's good to see clearly that what we do with local flake references can work just as well with remote flake references.

Expand Down Expand Up @@ -436,7 +436,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/nzfbfrc5dpnh1hmncp0n3pb40z790b6j-home-manager
Store paths: /nix/store/3yq7m1kgmkp4mkx2av8h3my22g0f135l-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/nzfbfrc5dpnh1hmncp0n3pb40z790b6j-home-manager
: /nix/store/3yq7m1kgmkp4mkx2av8h3my22g0f135l-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/nzfbfrc5dpnh1hmncp0n3pb40z790b6j-home-manager
: /nix/store/3yq7m1kgmkp4mkx2av8h3my22g0f135l-home-manager

** Running commands in a shell

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

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

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

#+RESULTS: nix-shell-remote
: /nix/store/nzfbfrc5dpnh1hmncp0n3pb40z790b6j-home-manager/bin/home-manager
: /nix/store/3yq7m1kgmkp4mkx2av8h3my22g0f135l-home-manager/bin/home-manager

This is all a consequence of everything discussed in previous sections, but it's
good to see clearly that what we do with local flake references can work just as
Expand Down Expand Up @@ -697,7 +697,7 @@ nix profile list --profile /tmp/nix-profile
: 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/nzfbfrc5dpnh1hmncp0n3pb40z790b6j-home-manager
: Store paths: /nix/store/3yq7m1kgmkp4mkx2av8h3my22g0f135l-home-manager

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

0 comments on commit cf4ab7b

Please sign in to comment.