-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
21 lines (20 loc) · 844 Bytes
/
flake.nix
File metadata and controls
21 lines (20 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
description = "A Nix DSL that compiles to Lua";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
forEachSystem = func: nixpkgs.lib.genAttrs [ "aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ] (system: func {
inherit system;
pkgs = import nixpkgs { inherit system; };
});
in
{
nixosModules.default = import ./.;
homeManagerModules.default = import ./.;
lib = forEachSystem ({ pkgs, ... }: (import ./. { inherit pkgs; inherit (pkgs) lib; }).config.notlua);
formatter = forEachSystem ({ pkgs, ... }: pkgs.nixpkgs-fmt);
checks.x86_64-linux.default = let pkgs = nixpkgs.legacyPackages.x86_64-linux; in pkgs.callPackage ./checks.nix {
flake = (pkgs.callPackage ./. { }).config.notlua;
};
};
}