tooling: switch from alejandra to nixfmt
Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a696436b90e48895139b7e0b59b75c0e64cae
This commit is contained in:
parent
9603b43f34
commit
f4464732e3
7 changed files with 31 additions and 33 deletions
24
flake.nix
24
flake.nix
|
@ -6,22 +6,18 @@
|
|||
outputs = _: let
|
||||
sources = import ./npins;
|
||||
nixpkgs = (import sources.flake-compat {src = sources.nixpkgs;}).outputs;
|
||||
|
||||
inherit (nixpkgs) lib;
|
||||
eachSystem = lib.genAttrs (import sources.systems);
|
||||
pkgsFor = nixpkgs.legacyPackages;
|
||||
inputs = sources;
|
||||
in {
|
||||
nixosConfigurations = import ./default.nix;
|
||||
|
||||
formatter = eachSystem (system: pkgsFor.${system}.alejandra);
|
||||
|
||||
packages =
|
||||
lib.mapAttrs (
|
||||
_: pkgs: {
|
||||
inherit
|
||||
(import ./packages {
|
||||
inherit inputs pkgs;
|
||||
inherit inputs pkgs sources;
|
||||
})
|
||||
fish
|
||||
helix
|
||||
|
@ -44,24 +40,6 @@
|
|||
)
|
||||
pkgsFor;
|
||||
|
||||
apps = eachSystem (system: let
|
||||
inherit (inputs.self.packages.${system}) fish helix nushell;
|
||||
in {
|
||||
default = inputs.self.apps.${system}.nushell;
|
||||
helix = {
|
||||
type = "app";
|
||||
program = "${helix}/bin/hx";
|
||||
};
|
||||
nushell = {
|
||||
type = "app";
|
||||
program = "${nushell}/bin/nu";
|
||||
};
|
||||
fish = {
|
||||
type = "app";
|
||||
program = "${fish}/bin/fish";
|
||||
};
|
||||
});
|
||||
|
||||
templates = import ./templates;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue