mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
docs
This commit is contained in:
parent
a7b6a463c8
commit
5ad3bd43ae
16
README.md
16
README.md
@ -130,22 +130,6 @@ Change the tracking branch of nixpkgs from unstable to 23.05:
|
|||||||
niv modify nixpkgs --branch nixos-23.05
|
niv modify nixpkgs --branch nixos-23.05
|
||||||
```
|
```
|
||||||
|
|
||||||
Pinning Nixpkgs. At the top of your `configuration.nix` file, replace
|
|
||||||
|
|
||||||
```nix
|
|
||||||
{ config, pkgs, ... }:
|
|
||||||
{}
|
|
||||||
```
|
|
||||||
|
|
||||||
with
|
|
||||||
|
|
||||||
```nix
|
|
||||||
{ config, sources ? import ../../nix/sources.nix, pkgs ? import sources.nixpkgs {}, ... }:
|
|
||||||
{}
|
|
||||||
```
|
|
||||||
|
|
||||||
TODO: This does not yet work.
|
|
||||||
|
|
||||||
## Add Home Manager with niv
|
## Add Home Manager with niv
|
||||||
|
|
||||||
Home Manager:
|
Home Manager:
|
||||||
|
2
hive.nix
2
hive.nix
@ -7,7 +7,7 @@ in
|
|||||||
# Colmena local node: https://colmena.cli.rs/0.4/features/apply-local.html
|
# Colmena local node: https://colmena.cli.rs/0.4/features/apply-local.html
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
# Override to pin the Nixpkgs version.
|
# Pin the Nixpkgs version with niv.
|
||||||
# Note: You can also override Nixpkgs by node.
|
# Note: You can also override Nixpkgs by node.
|
||||||
nixpkgs = import sources.nixpkgs {};
|
nixpkgs = import sources.nixpkgs {};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user