build(flake): add home-manager and example config

This commit is contained in:
Mohammad Rafiq 2025-07-06 22:40:22 +08:00
parent 53fe600399
commit b6ba95a93c
No known key found for this signature in database
5 changed files with 53 additions and 2 deletions

View file

@ -7,4 +7,10 @@ The list of generated files are:
- [docs/cheatsheet.md](docs/cheatsheet.md)
- [README.md](README.md)
## Structure
The system configurations are defined in [`flake.manifest`](nix/manifest.nix).
The system configurations are defined in [`flake.manifest`](nix/manifest.nix).
The attribute `flake.modules.nixos.common` provides options that will be applied to every system.
You can use it as seen [here](nix/modules/flake/home-manager.nix):
```nix
flake.modules.nixos.common.imports = [ inputs.home-manager.nixosModules.default ];
```