Something went wrong. Try again.
NixOS/NixOS-WSL/nix-darwin configuration using Nix Flakes and flake-parts, mirrored from https://github.com/moni-dz/nix-config
Something went wrong. Try again.
Files
Verified signature Signed by 4rsxyzt.fyi SHA256:OasC+OtdKaMzPQY+YmHfST3clhD4LXIWrPG+qk1oZsY Click to copy SHA
Verified signature Signed by 4rsxyzt.fyi SHA256:OasC+OtdKaMzPQY+YmHfST3clhD4LXIWrPG+qk1oZsY Click to copy SHA
Verified signature Signed by 4rsxyzt.fyi SHA256:OasC+OtdKaMzPQY+YmHfST3clhD4LXIWrPG+qk1oZsY Click to copy SHA
- Nix 79%
- Lua 17%
- Shell 4%
README.md
NixOS configuration #

Description #
NixOS/nix-darwin/hjem configuration that I use daily.
See also:
- hjem and hjem-rum
- flakes
- flake-parts, for the flake outputs, e.g. my system configurations
- nix-darwin, for
hosts/riscake
Resources and configurations I used to base on:
- colemickens/nixos-flake-example
- NixOS modules on NixOS Wiki
- Writing NixOS modules
- Nix Flakes talk by Eelco Dolstra on NixCon
- flake.parts module arguments
Directory Map #
hosts/ per-machine configs (hands: NixOS, riscake: nix-darwin)
modules/ custom modules (common, nixos, darwin, hjem)
profiles/ reusable config shared between hosts (nix settings, hjem programs)
packages/ overlays and custom packages (flake partition)
dev/ dev tooling: treefmt (flake partition)
secrets/ agenix-rekey secrets (`agenix` in the dev shell), with per-host copies in `rekeyed/`
Why flakes? #
jonringer gave a brief explanation as to why one might want to use Nix flakes.
Why flake-parts? #
flake-parts allow reusable configuration powered by the module system everyone knows and loves.
See my system configurations, which build each system directly with withSystem.