Allow 'nix run'

This commit is contained in:
Sridhar Ratnakumar 2023-03-17 12:38:33 -04:00
parent c1425fdda0
commit e567cc357e
2 changed files with 4 additions and 3 deletions

View file

@ -14,7 +14,7 @@ To use this repository as base configuration for your new machine running:
- Clone this repo anywhere
- Edit `flake.nix` to use your system hostname in the `nixosConfigurations` set
- Edit `users/config.nix` to contain your users
- Run `nix run .#activate`. That's it. Re-open your terminal.
- Run `nix run`. That's it. Re-open your terminal.
### macOS
@ -24,7 +24,7 @@ To use this repository as base configuration for your new machine running:
- Clone this repo anywhere
- Edit `flake.nix` to use your system hostname in the `darwinConfigurations` set
- Edit `users/config.nix` to contain your users
- Run `nix run .#activate`.[^cleanup] That's it. Re-open your terminal.
- Run `nix run`.[^cleanup] That's it. Re-open your terminal.
[^cleanup]: You might have to `rm -rf /etc/nix/nix.conf`, so our flake.nix can do its thing.

View file

@ -79,7 +79,8 @@
};
};
perSystem = { pkgs, config, inputs', ... }: {
perSystem = { self', pkgs, config, inputs', ... }: {
packages.default = self'.packages.activate;
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.nixpkgs-fmt