srid / nixos-flake

A flake-parts module to manage NixOS and macOS machines, along with home-manager support, in a unified fashion.
https://community.flake.parts/nixos-flake
MIT License
175 stars 19 forks source link

Fix `stateVersion` warnings in templates #14

Closed bestlem closed 1 year ago

bestlem commented 1 year ago

Add system.stateVersion to both nixos and darwin

srid commented 1 year ago

Thanks! Don't we also need one for home-manager? cf. https://github.com/search?q=repo%3Anix-community%2Fhome-manager%20stateVersion&type=code (I see it already exists)

Make nix flake check work on generated flake

This title is inaccurate. As I wrote here nix flake check does work; what it throws is a warning, not an error.

bestlem commented 1 year ago

True - but in computing I treat all warnings as something to be fixed ie errors e.g. gcc --Werror for C based languages.