Simplified README
This commit is contained in:
parent
49a3f91200
commit
7eee8b4d78
23
README.md
23
README.md
|
@ -1,31 +1,22 @@
|
||||||
# dotfiles
|
# dotfiles
|
||||||
|
|
||||||
In the prcess of moving system setup/configration to nix. Still getting the
|
My nix configuration. The name of this repo is a bit of a misnormer since I'm no
|
||||||
hang of nix so there may be some things I'm ding that aren't "the nix way."
|
longer managing dotfiles with a tool like stow.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Clone this repo to `~/dotfiles` (scripts depend on the repo living in this
|
To apply a system configuration, run `nixos-rebuild switch`. See `nixos-rebuild
|
||||||
location but should be updated to not rely on a specific path).
|
--help` for more information.
|
||||||
|
|
||||||
Run `apply-system.sh` to apply the NixOS configuration and `apply-users.sh` to
|
|
||||||
apply the home-manager configuration.
|
|
||||||
|
|
||||||
**NOTE** `apply-system.sh` depends on the machine's host name matching one of
|
|
||||||
the configuration names in `flake.nix`.
|
|
||||||
|
|
||||||
Run `update.sh` to (you guessed it) update packages.
|
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
Set up direnv (should be available after applying the user configuration):
|
Set up `direnv`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo 'use flake' > .envrc
|
echo 'use flake' > .envrc && direnv allow
|
||||||
```
|
```
|
||||||
|
|
||||||
And setup pre-commit hooks (manual step for now but can probably be automated
|
And setup pre-commit hooks
|
||||||
with some dev shell wizardry):
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pre-commit install
|
pre-commit install
|
||||||
|
|
Loading…
Reference in a new issue