{ description = "my cool flake"; inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = {nixpkgs, ...} @ inputs: let systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forAllSystems = fn: nixpkgs.lib.genAttrs systems (sys: fn nixpkgs.legacyPackages.${sys}); in { nixosConfigurations."myHostname" = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [./configuration.nix]; specialArgs = {inherit inputs;}; }; devShells = forAllSystems (pkgs: { default = pkgs.mkShell { packages = with pkgs; [ just fzf ]; }; }); formatter = forAllSystems (pkgs: pkgs.alejandra); }; }