* 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:
Timothy DeHerrera 2021-02-17 14:15:43 -07:00
parent 4f44e0dd13
commit 95c6ee0368
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
3 changed files with 14 additions and 7 deletions

View file

@ -4,6 +4,8 @@ The only dependency is nix, so make sure you have it [installed][install-nix].
## Get the Template
Here is a snippet that will get you the template without the git history:
```sh
nix-shell -p cachix --run cachix use nrdxp
nix-shell https://github.com/nrdxp/nixflk/archive/core.tar.gz -A shell \
--run "flk get core"
@ -14,8 +16,6 @@ nix-shell
git init
git add .
git commit -m init
cachix use nrdxp
```
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`
> - Flakes ignore files that have not been added to git, so be sure to stage new
> files before building the system.
> - You can choose to simply clone the repo with git if you want to follow
> upstream changes.
## Next Steps:
- [Make installable ISO](./iso.md)

View file

@ -1,7 +1,11 @@
final: prev: {
nixFlakes = prev.nixFlakes.overrideAttrs
(self: {
patches = [
(self:
let
oldPatches = self.patches or [ ];
in
{
patches = oldPatches ++ [
../pkgs/tools/package-management/nix/0001-nix-command-and-flakes-by-default.patch
];
});

View file

@ -14,6 +14,7 @@
element-desktop
manix
nixpkgs-fmt
nixFlakes
qutebrowser
signal-desktop
starship;