Skip to content

All templates must pass nix flake check after clone. #176

@vic

Description

@vic

This example fails nix flake check with

den/templates/default on  main
❯ nix flake check
warning: unknown flake output 'modules'
evaluation warning: system.stateVersion is not set, defaulting to 26.05. Read why this matters on https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion.
error:
       … while checking flake output 'nixosConfigurations'

       … while checking the NixOS configuration 'nixosConfigurations.igloo'

       … while calling the 'head' builtin
         at /nix/store/wzcf74b2g5c3qfg4rcswcz28ngiwzzp0-source/lib/attrsets.nix:1713:13:
         1712|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1713|             head values
             |             ^
         1714|           else

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/wzcf74b2g5c3qfg4rcswcz28ngiwzzp0-source/nixos/modules/system/activation/top-level.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error:
       Failed assertions:
       - The ‘fileSystems’ option does not specify your root file system.
       - You must set the option ‘boot.loader.grub.devices’ or 'boot.loader.grub.mirroredBoots' to make the system bootable.

den/templates/default on  main

Originally posted by @Buttars in #142 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    any-takersif you want to work on this, feel free to assign to yourself or ask for itgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions