{ description = "Hugo website"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; outputs = { nixpkgs, ... }: let systems = [ "x86_64-linux" "x86_64-darwin" ]; forAllSystems = f: nixpkgs.lib.genAttrs (systems) f; devShell = system: let pkgs = nixpkgs.legacyPackages.${system}; in { default = with pkgs; mkShell { name = "Hugo website"; packages = with pkgs; [ go hugo nodePackages.prettier ]; }; }; in { devShells = forAllSystems devShell; formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style); }; }