···49495050Need more batteries? See [vic/denful](https://github.com/vic/denful).
51515252+For real-world examples, see [`vic/vix`](https://github.com/vic/vix/tree/den) or this [GH search](https://github.com/search?q=vic%2Fden+language%3ANix&type=code).
5353+5454+**❄️ Try it now!**
5555+5656+Launch our template VM:
5757+5858+```console
5959+nix run github:vic/den
6060+```
6161+6262+Or, initialize a project:
6363+6464+```console
6565+nix flake init -t github:vic/den
6666+nix flake update den
6767+nix run .#vm
6868+```
6969+7070+Our [default template](templates/default) provides an annotated quick-start.
7171+5272</div>
5373</td>
5474<td>
···8010081101```nix
82102# modules/my-laptop.nix
8383-{ den, ... }: {
103103+{ den, inputs, ... }: {
104104+105105+ # Example: enhance the my-laptop aspect.
106106+ # This can be done from any file, multiple times.
84107 den.aspects.my-laptop = {
108108+109109+ # this aspect includes configurations
110110+ # available from other aspects
85111 includes = [
112112+ # your own parametric aspects
86113 den.aspects.workplace-vpn
114114+ # den's opt-in batteries includes.
87115 den.provides.home-manager
88116 ];
8989- nixos = { /* NixOS options */ };
9090- darwin = { /* nix-darwin options */ };
117117+118118+ # any file can contribute to this module, so
119119+ # best practice is to keep concerns separated
120120+ # each on their own file, instead of huge
121121+ # modules in here.
122122+123123+ # any NixOS configuration
124124+ nixos = {
125125+ # This is a nixos module, see nixos options.
126126+ # import third-party NixOS modules
127127+ imports = [
128128+ inputs.disko.nixosModules.disko
129129+ ];
130130+ disko.devices = { /* ... */ };
131131+ };
132132+ # any nix-darwin configuration
133133+ darwin = {
134134+ # This is a nix-darwin module.
135135+ # import third-party Darwin modules
136136+ imports = [
137137+ inputs.nix-homebrew.darwinModules.nix-homebrew
138138+ ];
139139+ nix-homebrew.enableRosetta = true;
140140+ };
91141 # For all users of my-laptop
92142 homeManager.programs.vim.enable = true;
143143+93144 };
94145}
95146···108159 };
109160}
110161```
111111-112112-For real-world examples, see [`vic/vix`](https://github.com/vic/vix/tree/den) or this [GH search](https://github.com/search?q=vic%2Fden+language%3ANix&type=code).
113113-114114-**❄️ Try it now!**
115115-116116-Launch our template VM:
117117-118118-```console
119119-nix run github:vic/den
120120-```
121121-122122-Or, initialize a project:
123123-124124-```console
125125-nix flake init -t github:vic/den
126126-nix flake update den
127127-nix run .#vm
128128-```
129129-130130-Our [default template](templates/default) provides an annotated quick-start.
131162132163</td>
133164</tr>