mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
add ', fmt'
This commit is contained in:
parent
d29af345ed
commit
eb36b8bbd6
2 changed files with 8 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ nix develop -c , activate
|
|||
- Clone this repo at `/etc/nixos`
|
||||
- Edit `flake.nix` to use your system hostname in the `nixosConfigurations` set
|
||||
- Edit `users/config.nix` to contain your users
|
||||
- Run `nix develop -c , activate`. That's it. Re-open your shell.
|
||||
- Run `nix develop -c , activate`. That's it. Re-open your terminal.
|
||||
- macOS:
|
||||
- Install Nix normally (multi-user)
|
||||
- Install [nix-darwin](https://github.com/LnL7/nix-darwin)
|
||||
|
|
@ -41,6 +41,7 @@ nix develop -c , activate
|
|||
|
||||
## Tips
|
||||
|
||||
- Run `,` in `nix develop` shell (tip: direnv better) to see available scripts.
|
||||
- To update NixOS (and other inputs) run `nix flake update`
|
||||
- You may also update a subset of inputs, e.g.
|
||||
```sh-session
|
||||
|
|
|
|||
6
lib.nix
6
lib.nix
|
|
@ -83,6 +83,12 @@
|
|||
''
|
||||
${lib.getExe pkgs.nixos-rebuild} --use-remote-sudo switch -j auto
|
||||
'';
|
||||
category = "Main";
|
||||
};
|
||||
|
||||
fmt = {
|
||||
description = "Autoformat repo tree";
|
||||
exec = "nix fmt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue