mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
Allow 'nix run'
This commit is contained in:
parent
c1425fdda0
commit
e567cc357e
2 changed files with 4 additions and 3 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue