flake.nix: fix helix for all systems
This commit is contained in:
parent
99474e28c0
commit
fff25b9905
1 changed files with 9 additions and 5 deletions
14
flake.nix
14
flake.nix
|
@ -1,20 +1,24 @@
|
||||||
{
|
{
|
||||||
description = "My NixOS config flake";
|
description = "My NixOS config flake";
|
||||||
outputs = inputs: let
|
outputs = inputs: let
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
inherit (inputs.nixpkgs) lib;
|
||||||
eachSystem = inputs.nixpkgs.lib.genAttrs (import inputs.systems);
|
eachSystem = lib.genAttrs (import inputs.systems);
|
||||||
pkgsFor = inputs.nixpkgs.legacyPackages;
|
pkgsFor = inputs.nixpkgs.legacyPackages;
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = import ./hosts inputs;
|
nixosConfigurations = import ./hosts inputs;
|
||||||
|
|
||||||
devShells.x86_64-linux.default = pkgs.callPackage ./shell.nix {};
|
devShells =
|
||||||
|
lib.mapAttrs (system: pkgs: {
|
||||||
|
default = pkgs.callPackage ./shell.nix {};
|
||||||
|
})
|
||||||
|
pkgsFor;
|
||||||
|
|
||||||
formatter.x86_64-linux = pkgs.alejandra;
|
formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
||||||
|
|
||||||
packages = eachSystem (
|
packages = eachSystem (
|
||||||
system: {
|
system: {
|
||||||
inherit
|
inherit
|
||||||
(import ./packages {
|
(import ./packages rec {
|
||||||
pkgs = pkgsFor.${system};
|
pkgs = pkgsFor.${system};
|
||||||
helix = inputs.helix.packages.${pkgs.system}.default;
|
helix = inputs.helix.packages.${pkgs.system}.default;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue