From 83effef025bca97e57e20a0453a9c5e76e38ea9b Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 25 Feb 2023 09:11:50 -0500 Subject: support nix fmt on all platforms --- flake.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 034b9b7..3bba09e 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,9 @@ nixpkgsUnstable, ... }: let + supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]; + forAllSystems = nixpkgs.lib.genAttrs supportedSystems; + nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;}); util = import ./util {inherit inputs home-manager;}; inherit (util) host user; in { @@ -46,7 +49,7 @@ ]; specialArgs = { desktop = "gnome"; - standalone = true; + standalone = false; wsl = false; }; version = "23.05"; @@ -72,13 +75,13 @@ ]; specialArgs = { desktop = ""; - standalone = true; + standalone = false; wsl = true; }; version = "23.05"; pkgs = nixpkgsUnstable; }); - formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra; + formatter = forAllSystems (system: nixpkgsFor.${system}.alejandra); }; } -- cgit v1.2.3