···3535 }
3636 EOF
3737 git add templates/noflake/modules/ci-runtime.nix
3838- - run: cd templates/noflake && nix-build -A nixosConfigurations.igloo.config.system.build.toplevel
3838+ - run: cd templates/noflake && nix-build -A flake.nixosConfigurations.igloo.config.system.build.toplevel
3939 minimal:
4040 needs: [non-draft]
4141 name: minimal
+10-2
templates/noflake/README.md
···77Try it with:
8899```shell
1010-nixos-rebuild build --file . -A nixosConfigurations.igloo
1010+npins update den # make sure you use latest Den
1111+```
1212+1313+```shell
1414+nixos-rebuild build --file . -A flake.nixosConfigurations.igloo
1115```
12161317or
14181519```shell
1616-nix-build -A nixosConfigurations.igloo.config.system.build.toplevel
2020+nix-build -A flake.nixosConfigurations.igloo.config.system.build.toplevel
1721```
2222+2323+> NOTE: Den needs a top-level attribute where to place configurations.
2424+> For convenience, it is the `flake` top-level attribute, following the
2525+> flake outputs schema, even if Den does not needs flakes / flake-parts.
+1-3
templates/noflake/default.nix
···1111 }).config;
12121313in
1414-# Den outputs configurations at flake top-level attr
1515-# even when it does not depend on flakes or flake-parts.
1616-(import ./with-inputs.nix outputs).flake
1414+import ./with-inputs.nix outputs
+6
templates/noflake/modules/den.nix
···33 # we can import this flakeModule even if we dont have flake-parts as input!
44 imports = [ inputs.den.flakeModule ];
5566+ den.default.nixos = {
77+ # remove for real host
88+ fileSystems."/".device = "/dev/fake";
99+ boot.loader.grub.enable = false;
1010+ };
1111+612 # tux user on igloo host.
713 den.hosts.x86_64-linux.igloo.users.tux = { };
814