chore: set formatter to nixpkgs-fmt
This commit is contained in:
parent
c88242c4fa
commit
f2332cd872
1 changed files with 23 additions and 4 deletions
21
flake.nix
21
flake.nix
|
@ -8,8 +8,27 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, ... }: {
|
outputs = { nixpkgs, ... }:
|
||||||
|
let
|
||||||
|
systems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
"x86_64-darwin"
|
||||||
|
"aarch64-darwin"
|
||||||
|
];
|
||||||
|
|
||||||
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||||
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
||||||
|
forEachSystem = fn:
|
||||||
|
forAllSystems (system:
|
||||||
|
fn {
|
||||||
|
inherit system;
|
||||||
|
pkgs = nixpkgsFor.${system};
|
||||||
|
});
|
||||||
|
in
|
||||||
|
{
|
||||||
nixosModules.catppuccin = import ./modules/nixos nixpkgs;
|
nixosModules.catppuccin = import ./modules/nixos nixpkgs;
|
||||||
homeManagerModules.catppuccin = import ./modules/home-manager nixpkgs;
|
homeManagerModules.catppuccin = import ./modules/home-manager nixpkgs;
|
||||||
|
formatter = forEachSystem ({ pkgs, ... }: pkgs.nixpkgs-fmt);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue