nix: fix #126
* Update the readme to pull from cachix first, so users don't have to build nix. * Pull `nixFlakes` from override for slightly newer ui, and consistency for users who change the nixos flake ref to something newer.
This commit is contained in:
parent
4f44e0dd13
commit
95c6ee0368
|
@ -4,6 +4,8 @@ The only dependency is nix, so make sure you have it [installed][install-nix].
|
||||||
## Get the Template
|
## Get the Template
|
||||||
Here is a snippet that will get you the template without the git history:
|
Here is a snippet that will get you the template without the git history:
|
||||||
```sh
|
```sh
|
||||||
|
nix-shell -p cachix --run cachix use nrdxp
|
||||||
|
|
||||||
nix-shell https://github.com/nrdxp/nixflk/archive/core.tar.gz -A shell \
|
nix-shell https://github.com/nrdxp/nixflk/archive/core.tar.gz -A shell \
|
||||||
--run "flk get core"
|
--run "flk get core"
|
||||||
|
|
||||||
|
@ -14,8 +16,6 @@ nix-shell
|
||||||
git init
|
git init
|
||||||
git add .
|
git add .
|
||||||
git commit -m init
|
git commit -m init
|
||||||
|
|
||||||
cachix use nrdxp
|
|
||||||
```
|
```
|
||||||
|
|
||||||
This will place you in a new folder named `flk` with git initialized, and a
|
This will place you in a new folder named `flk` with git initialized, and a
|
||||||
|
@ -29,6 +29,8 @@ In addition, the [binary cache](../../cachix) is added for faster deployment.
|
||||||
> in the call to `flk get`
|
> in the call to `flk get`
|
||||||
> - Flakes ignore files that have not been added to git, so be sure to stage new
|
> - Flakes ignore files that have not been added to git, so be sure to stage new
|
||||||
> files before building the system.
|
> files before building the system.
|
||||||
|
> - You can choose to simply clone the repo with git if you want to follow
|
||||||
|
> upstream changes.
|
||||||
|
|
||||||
## Next Steps:
|
## Next Steps:
|
||||||
- [Make installable ISO](./iso.md)
|
- [Make installable ISO](./iso.md)
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
final: prev: {
|
final: prev: {
|
||||||
nixFlakes = prev.nixFlakes.overrideAttrs
|
nixFlakes = prev.nixFlakes.overrideAttrs
|
||||||
(self: {
|
(self:
|
||||||
patches = [
|
let
|
||||||
../pkgs/tools/package-management/nix/0001-nix-command-and-flakes-by-default.patch
|
oldPatches = self.patches or [ ];
|
||||||
];
|
in
|
||||||
});
|
{
|
||||||
|
patches = oldPatches ++ [
|
||||||
|
../pkgs/tools/package-management/nix/0001-nix-command-and-flakes-by-default.patch
|
||||||
|
];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
element-desktop
|
element-desktop
|
||||||
manix
|
manix
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
|
nixFlakes
|
||||||
qutebrowser
|
qutebrowser
|
||||||
signal-desktop
|
signal-desktop
|
||||||
starship;
|
starship;
|
||||||
|
|
Loading…
Reference in a new issue