flake: change format

This commit is contained in:
Bruno BELANYI 2021-05-31 23:01:21 +02:00
parent cd0fe40c94
commit 21fa1ccdac

View file

@ -33,7 +33,14 @@
}; };
}; };
outputs = { self, futils, home-manager, nixpkgs, nur } @ inputs: outputs =
inputs @
{ self
, futils
, home-manager
, nixpkgs
, nur
}:
let let
inherit (futils.lib) eachDefaultSystem; inherit (futils.lib) eachDefaultSystem;
@ -81,28 +88,29 @@
in in
eachDefaultSystem eachDefaultSystem
(system: (system:
let let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in in
rec { rec {
apps = { apps = {
diff-flake = futils.lib.mkApp { drv = packages.diff-flake; }; diff-flake = futils.lib.mkApp { drv = packages.diff-flake; };
}; };
defaultApp = apps.diff-flake; defaultApp = apps.diff-flake;
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
name = "NixOS-config"; name = "NixOS-config";
buildInputs = with pkgs; [
git-crypt
gitAndTools.pre-commit
gnupg
nixpkgs-fmt
];
};
packages = import ./pkgs { inherit pkgs; }; buildInputs = with pkgs; [
}) // { git-crypt
gitAndTools.pre-commit
gnupg
nixpkgs-fmt
];
};
packages = import ./pkgs { inherit pkgs; };
}) // {
overlay = self.overlays.pkgs; overlay = self.overlays.pkgs;
overlays = import ./overlays // { overlays = import ./overlays // {