You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -30,8 +30,6 @@ A multi-platform Nix configuration template optimized as development environment
30
30
[NixOS]: https://nixos.asia/en/nixos-tutorial
31
31
[nixos-unified]: https://nixos-unified.org
32
32
33
-
34
-
35
33
## Getting Started
36
34
37
35
### On NixOS
@@ -95,16 +93,40 @@ If you prefer, you can simply execute `nix run`, but using `just` will perform s
95
93
96
94
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.
97
95
98
-
## Troubleshooting
96
+
## What's included
99
97
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.
101
99
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
103
101
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`
105
111
106
-
## FAQ
112
+
### git configuration
107
113
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`
109
123
110
124
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