nix/README.md

36 lines
860 B
Markdown

My NixOS configuration
----------------------
My configurations for NixOS using flakes. For now only my desktop computer is
configured with this system.
## Install
```
doas nixos-rebuild switch --flake ".#mrmeeseeks"
```
## Update the flakes.lock
```
nix flake update
doas nixos-rebuild switch --flake ".#mrmeeseeks"
```
## Update manual packages from github
Somes of module use `fetchFromGithub` who need *SHA-256* hash to meet
reproductibility. Theses hashed can be obtain with `nix-prefetch-github`:
```shell
$ nix-shell -p nix-prefetch-github
$ nix-prefetch-ghithub --rev v1.22.0 sindresorhus pure
{
"owner": "sindresorhus",
"repo": "pure",
"rev": "87e6f5dd4c793f6d980532205aaefe196780606f",
"sha256": "TR4CyBZ+KoZRs9XDmWE5lJuUXXU1J8E2Z63nt+FS+5w="
}
```
In this example whe have obtained the hash for the specific 1.22.0 version.