-
Notifications
You must be signed in to change notification settings - Fork 11
/
flake.nix
46 lines (39 loc) · 1.32 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
description = "novaboot";
inputs = {
# The nixpkgs entry in the flake registry.
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
novaboot = (import ./novaboot.nix { inherit self pkgs; });
in {
# Utilized by `nix build .`
defaultPackage = novaboot.novaboot;
packages.novaboot = novaboot.novaboot;
packages.novaboot-server = novaboot.novaboot_server;
devShell = pkgs.mkShell {
inputsFrom = [
(import ./novaboot.nix {
inherit self pkgs;
otherPerlPackages = [ pkgs.perl.pkgs.PodParser ];
}).novaboot
];
buildInputs = with pkgs; [
syslinux
cdrkit
grub2
dhcp
];
};
# Default overlay, for use in dependent flakes
overlay = final: prev: { };
# Default module, for use in dependent flakes
#nixosModule = { config, ... }: { options = {}; config = {}; };
# Same idea as nixosModule but a list or attrset of them.
#nixosModules = { exampleModule = self.nixosModule; };
});
}