-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathflake.nix
More file actions
19 lines (18 loc) · 711 Bytes
/
flake.nix
File metadata and controls
19 lines (18 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
description = "A Nix DSL that compiles to Nftables JSON";
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) lib; }).config.notnft);
checks.x86_64-linux.default = let pkgs = nixpkgs.legacyPackages.x86_64-linux; in pkgs.callPackage ./checks.nix {
flake = (pkgs.callPackage ./. { }).config.notnft;
};
};
}