My NixOS installation with flake
home-manager | ||
hosts | ||
modules | ||
nixos | ||
secrets | ||
.envrc | ||
.gitignore | ||
.sops.yaml | ||
_typos.toml | ||
flake.lock | ||
flake.nix | ||
lefthook.yaml | ||
README.md | ||
Taskfile.dist.yaml |
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
Some modules use fetchFromGithub
who need SHA-256 hash to meet
reproductibility. Theses hashed can be obtain with nix-prefetch-github
:
$ 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 we have obtained the hash for the specific 1.22.0 version.