flake: only support x86_64-linux
This commit is contained in:
parent
30ed3a55e7
commit
c9419c8f9c
1 changed files with 10 additions and 5 deletions
15
flake.nix
15
flake.nix
|
@ -9,10 +9,15 @@
|
||||||
treefmt-nix,
|
treefmt-nix,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
eachSystem = f: nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: f nixpkgs.legacyPackages.${system});
|
supportedSystems = nixpkgs.lib.singleton "x86_64-linux";
|
||||||
treefmtEval = eachSystem (pkgs: treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
|
|
||||||
|
forAllSystems = function:
|
||||||
|
nixpkgs.lib.genAttrs
|
||||||
|
supportedSystems
|
||||||
|
(system: function nixpkgs.legacyPackages.${system});
|
||||||
|
treefmtEval = forAllSystems (pkgs: treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
|
||||||
in {
|
in {
|
||||||
devShells = eachSystem (pkgs: {
|
devShells = forAllSystems (pkgs: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.alejandra
|
pkgs.alejandra
|
||||||
|
@ -22,9 +27,9 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
formatter = eachSystem (pkgs: treefmtEval.${pkgs.system}.config.build.wrapper);
|
formatter = forAllSystems (pkgs: treefmtEval.${pkgs.system}.config.build.wrapper);
|
||||||
nixosConfigurations = import ./hosts {inherit self inputs;};
|
nixosConfigurations = import ./hosts {inherit self inputs;};
|
||||||
packages = eachSystem (pkgs: import ./shared/pkgs {inherit inputs pkgs;});
|
packages = forAllSystems (pkgs: import ./shared/pkgs {inherit inputs pkgs;});
|
||||||
deploy.nodes = import ./nodes.nix {inherit inputs;};
|
deploy.nodes = import ./nodes.nix {inherit inputs;};
|
||||||
checks = builtins.mapAttrs (_: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
checks = builtins.mapAttrs (_: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue