···1213- Edit [modules/hosts.nix](modules/hosts.nix)
14000000000015- Run the VM
1617We recommend to use a VM develop cycle so you can play with the system before applying to your hardware.
···1213- Edit [modules/hosts.nix](modules/hosts.nix)
1415+- Build
16+17+```console
18+# default action is build
19+nix run .#igloo
20+21+# pass any other nh action
22+nix run .#igloo -- switch
23+```
24+25- Run the VM
2627We recommend to use a VM develop cycle so you can play with the system before applying to your hardware.
+9
templates/default/modules/nh.nix
···000000000
···1+# Exposes flake apps under the name of each host / home for building with nh.
2+{ den, lib, ... }:
3+{
4+ perSystem =
5+ { pkgs, ... }:
6+ {
7+ packages = den.lib.nh.denPackages { fromFlake = true; } pkgs;
8+ };
9+}
+10
templates/example/README.md
···2728- Read [modules/aspects/alice.nix](modules/aspects/alice.nix) where the `alice` user is configured.
29000000000030- Run the VM.
3132```console
···2728- Read [modules/aspects/alice.nix](modules/aspects/alice.nix) where the `alice` user is configured.
2930+- Build
31+32+```console
33+# default action is build
34+nix run .#igloo
35+36+# pass any other nh action
37+nix run .#igloo -- switch
38+```
39+40- Run the VM.
4142```console
+9
templates/example/modules/nh.nix
···000000000
···1+# Exposes flake apps under the name of each host / home for building with nh.
2+{ den, lib, ... }:
3+{
4+ perSystem =
5+ { pkgs, ... }:
6+ {
7+ packages = den.lib.nh.denPackages { fromFlake = true; } pkgs;
8+ };
9+}
+23
templates/minimal/README.md
···00000000000000000000000
···1+# Getting Started Guide
2+3+Steps you can follow after cloning this template:
4+5+- Be sure to read the [den documentation](https://vic.github.io/den)
6+7+- Update den input.
8+9+```console
10+nix flake update den
11+```
12+13+- Edit [modules/den.nix](modules/den.nix)
14+15+- Build
16+17+```console
18+# default action is build
19+nix run .#igloo
20+21+# pass any other nh action
22+nix run .#igloo -- switch
23+```
+15
templates/minimal/modules/nh.nix
···000000000000000
···1+# Exposes flake apps under the name of each host / home for building with nh.
2+{
3+ den,
4+ lib,
5+ inputs,
6+ ...
7+}:
8+{
9+10+ flake.packages = lib.genAttrs lib.systems.flakeExposed (
11+ system:
12+13+ den.lib.nh.denPackages { fromFlake = true; } inputs.nixpkgs.legacyPackages.${system}
14+ );
15+}