default.nix 905 Bytes
Newer Older
1
2
3
# This file defines which commands are available
# To run a command:
# $ nix-build -A isoImage
Matthias Adamczyk's avatar
Matthias Adamczyk committed
4
let
5
6
  # sources.nix contains the nixpkgs checkout that is going
  # to be used on all hosts.
Matthias Adamczyk's avatar
Matthias Adamczyk committed
7
8
9
10
11
12
13
14
15
16
17
  sources = import ./nix/sources.nix;
  pkgs = import sources.nixpkgs {
    system = "x86_64-linux";
    # own packages are applied on top as overlay
    # todo overlay documentation
    overlays = [
      (self: super: import ./pkgs { pkgs = super; })
    ];
  };
in {
  inherit sources pkgs;
18
  inherit (pkgs) lib; # the syntax means: "inherit lib from pkgs"
Matthias Adamczyk's avatar
Matthias Adamczyk committed
19
  
20
  # The following commands are available:
21
  kexec_tarball = import ./lib/kexec-tarball { inherit pkgs; };
Matthias Adamczyk's avatar
Matthias Adamczyk committed
22
  isoImage = import ./lib/iso-image.nix { inherit pkgs; };
23
  deploy = import ./lib/deploy { inherit pkgs; };
24
  #unlock = import ./lib/unlock-fde.nix { inherit pkgs; }; # not needed right now
Matthias Adamczyk's avatar
Matthias Adamczyk committed
25
}
26
  // (import ./lib/deploy/hosts.nix { inherit pkgs; })