Skip to content

Commit 4cbd53f

Browse files
committed
readme: What's include
1 parent cc06305 commit 4cbd53f

File tree

1 file changed

+32
-10
lines changed

1 file changed

+32
-10
lines changed

README.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ A multi-platform Nix configuration template optimized as development environment
1919
# Type `SPC f f` to open a .rs file
2020
# Wait for rust-analyzer to finish; go to a symbol and type K
2121
```
22-
22+
2323
Expect to see:
24-
24+
2525
<img width="534" alt="image" src="https://github.com/user-attachments/assets/204e6ad7-c233-4503-9924-73fbce2772d6">
2626
2727
@@ -30,8 +30,6 @@ A multi-platform Nix configuration template optimized as development environment
3030
[NixOS]: https://nixos.asia/en/nixos-tutorial
3131
[nixos-unified]: https://nixos-unified.org
3232
33-
34-
3533
## Getting Started
3634
3735
### On NixOS
@@ -95,16 +93,40 @@ If you prefer, you can simply execute `nix run`, but using `just` will perform s
9593
9694
To browse the capabilities of [home-manager] (and to see what else can go in your `./modules/home/*.nix` -- such as shell aliases), consult [home-manager options reference](https://nix-community.github.io/home-manager/options.xhtml). You can also run `man home-configuration.nix` in the terminal.
9795
98-
## Troubleshooting
96+
## What's included
9997
100-
### `error: opening lock file ...`
98+
Here we describe just a handful of tools included in this template. See the [./modules](./modules) directory for more.
10199
102-
**Problem**: When using home-manager, `nix run` shows an error like: `error: opening lock file '/nix/var/nix/profiles/per-user/utkarsh.pandey1/profile.lock': No such file or directory`
100+
### neovim
103101
104-
**Solution**: This is an instance of https://github.com/nix-community/home-manager/issues/4611. Run `sudo mkdir /nix/var/nix/profiles/per-user/$(whoami)/ && sudo chown $(whoami) /nix/var/nix/profiles/per-user/$(whoami)` and try again.
102+
Neovim configured using [nixvim](https://github.com/nix-community/nixvim) is included across all configurations. It is also exposed as a flake app, so you can launch it directly using `nix run github:juspay/nixos-unified-template#neovim`. See `neovim/nixvim.nix`.
103+
104+
### starship
105+
106+
Prettify your shell prompt with [starship](https://starship.rs/). It is configured to show the current git branch, the current directory, Nix devshell status and the exit code of the last command.
107+
108+
### direnv
109+
110+
[direnv](https://nixos.asia/en/direnv) as well as `nix-direnv` is fully configured and available to use in your shell, with tight starship (see above) prompt integration. See `direnv.nix`
105111
106-
## FAQ
112+
### git configuration
107113
108-
### `/nix/store` garbage collection
114+
Your `~/.config/git/config` is managed entirely in Nix. See `git.nix`.
115+
116+
### command
117+
118+
Type `, ` followed by the any binary name to run it directly from nixpkgs.
119+
120+
### Garbage collection
121+
122+
Nix garbage collection runs periodically to keep disk space manageable. See `gc.nix`
109123
110124
By default, [home-manager] is configured to run garbage collection automatically every week. If your projects use nix-direnv, you don't have to worry about having to download the dependencies again while in a remote area with limited internet access ([see prominent features of nix-direnv](https://github.com/nix-community/nix-direnv#nix-direnv)).
125+
126+
## Troubleshooting
127+
128+
### `error: opening lock file ...`
129+
130+
**Problem**: When using home-manager, `nix run` shows an error like: `error: opening lock file '/nix/var/nix/profiles/per-user/utkarsh.pandey1/profile.lock': No such file or directory`
131+
132+
**Solution**: This is an instance of https://github.com/nix-community/home-manager/issues/4611. Run `sudo mkdir /nix/var/nix/profiles/per-user/$(whoami)/ && sudo chown $(whoami) /nix/var/nix/profiles/per-user/$(whoami)` and try again.

0 commit comments

Comments
 (0)