From d5dc7479c489d17e6dcacf081c0f1b5242d99bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 8 Jan 2023 11:25:01 +0100 Subject: Format using Alejandra --- flake.nix | 47 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 13 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index eb277fa..d1344cc 100644 --- a/flake.nix +++ b/flake.nix @@ -17,18 +17,39 @@ usbkey.url = "git+https://git.cynerd.cz/usbkey?ref=modules"; }; - outputs = { self, nixpkgs, nix, nixos-hardware, flake-utils, shellrc, ... }: + outputs = { + self, + nixpkgs, + nix, + nixos-hardware, + flake-utils, + shellrc, + ... + }: with flake-utils.lib; - { - overlays.default = final: prev: import ./pkgs { inherit self; nixpkgs = prev; }; - nixosModules = import ./nixos self; - nixosConfigurations = import ./nixos/configurations.nix self; - } // eachDefaultSystem (system: { - packages = filterPackages system (flattenTree ( - import ./pkgs { inherit self; nixpkgs = nixpkgs.legacyPackages."${system}"; } - )); - devShells = filterPackages system - (import ./devShells { inherit nixpkgs; inherit shellrc; inherit system; }); - }); - + { + overlays.default = final: prev: + import ./pkgs { + inherit self; + nixpkgs = prev; + }; + nixosModules = import ./nixos self; + nixosConfigurations = import ./nixos/configurations.nix self; + } + // eachDefaultSystem (system: { + packages = filterPackages system (flattenTree ( + import ./pkgs { + inherit self; + nixpkgs = nixpkgs.legacyPackages."${system}"; + } + )); + devShells = + filterPackages system + (import ./devShells { + inherit nixpkgs; + inherit shellrc; + inherit system; + }); + formatter = nixpkgs.legacyPackages.${system}.alejandra; + }); } -- cgit v1.2.3