Skip to content

Commit

Permalink
feat: update flake template
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed May 10, 2024
1 parent 928fdeb commit 0151527
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions templates/default/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
};

outputs =
{
self,
nixpkgs,
nixpkgs-unstable,
...
}:
{ ... }@inputs:
let
mkOverlay =
input: name:
Expand All @@ -25,7 +20,7 @@

forAllSystems =
function:
nixpkgs.lib.genAttrs
inputs.nixpkgs.lib.genAttrs
[
"x86_64-linux"
"aarch64-linux"
Expand All @@ -35,10 +30,10 @@
(
system:
function (
import nixpkgs {
import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ (mkOverlay nixpkgs-unstable "unstable") ];
overlays = [ (mkOverlay inputs.nixpkgs-unstable "unstable") ];
}
)
);
Expand All @@ -51,6 +46,6 @@
packages = [ ];
};
});
formatter = forAllSystems (pkgs: pkgs.nixpkgs-fmt);
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
};
}

0 comments on commit 0151527

Please sign in to comment.