* 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 ## 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)

View file

@ -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
];
});
} }

View file

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