···12121313- Edit [modules/hosts.nix](modules/hosts.nix)
14141515+- Build
1616+1717+```console
1818+# default action is build
1919+nix run .#igloo
2020+2121+# pass any other nh action
2222+nix run .#igloo -- switch
2323+```
2424+1525- Run the VM
16261727We 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
···11+# Exposes flake apps under the name of each host / home for building with nh.
22+{ den, lib, ... }:
33+{
44+ perSystem =
55+ { pkgs, ... }:
66+ {
77+ packages = den.lib.nh.denPackages { fromFlake = true; } pkgs;
88+ };
99+}
+10
templates/example/README.md
···27272828- Read [modules/aspects/alice.nix](modules/aspects/alice.nix) where the `alice` user is configured.
29293030+- Build
3131+3232+```console
3333+# default action is build
3434+nix run .#igloo
3535+3636+# pass any other nh action
3737+nix run .#igloo -- switch
3838+```
3939+3040- Run the VM.
31413242```console
+9
templates/example/modules/nh.nix
···11+# Exposes flake apps under the name of each host / home for building with nh.
22+{ den, lib, ... }:
33+{
44+ perSystem =
55+ { pkgs, ... }:
66+ {
77+ packages = den.lib.nh.denPackages { fromFlake = true; } pkgs;
88+ };
99+}
+23
templates/minimal/README.md
···11+# Getting Started Guide
22+33+Steps you can follow after cloning this template:
44+55+- Be sure to read the [den documentation](https://vic.github.io/den)
66+77+- Update den input.
88+99+```console
1010+nix flake update den
1111+```
1212+1313+- Edit [modules/den.nix](modules/den.nix)
1414+1515+- Build
1616+1717+```console
1818+# default action is build
1919+nix run .#igloo
2020+2121+# pass any other nh action
2222+nix run .#igloo -- switch
2323+```
+15
templates/minimal/modules/nh.nix
···11+# Exposes flake apps under the name of each host / home for building with nh.
22+{
33+ den,
44+ lib,
55+ inputs,
66+ ...
77+}:
88+{
99+1010+ flake.packages = lib.genAttrs lib.systems.flakeExposed (
1111+ system:
1212+1313+ den.lib.nh.denPackages { fromFlake = true; } inputs.nixpkgs.legacyPackages.${system}
1414+ );
1515+}