From 2b3a02d8382edebf8370b07c0c2e373affe4b18a Mon Sep 17 00:00:00 2001 From: Ben Mezger Date: Wed, 1 Jan 2025 23:57:02 +0100 Subject: [PATCH] nix: add formatter based on system --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 14a7c430..b7edc5f1 100644 --- a/flake.nix +++ b/flake.nix @@ -32,11 +32,12 @@ modules = [ ./conf.nix ]; }; userConf = evaledConfig.config; + system = builtins.currentSystem; in { overlays = import ./overlays { inherit inputs; }; - formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style; + formatter."${system}" = nixpkgs.legacyPackages."${system}".nixfmt-rfc-style; nixosConfigurations = { default = nixpkgs.lib.nixosSystem {