Skip to content

Instantly share code, notes, and snippets.

@nyarly
Last active August 27, 2016 21:38
Show Gist options
  • Save nyarly/198f10ee7ce2437e8ba69e3adae02ed5 to your computer and use it in GitHub Desktop.
Save nyarly/198f10ee7ce2437e8ba69e3adae02ed5 to your computer and use it in GitHub Desktop.
{ system ? builtins.currentSystem, ... }:
let
nixpkgs = import ./channels/nixpkgs { inherit system; };
nixos_cfg = nixpkgs.callPackage /etc/nixos/configuration.nix {};
nixos_overrides = nixos_cfg.nixpkgs.config.packageOverrides;
kernelConfigs = pkgs: pkgs // nixos_overrides pkgs // rec {
linuxPackages = pkgs.linuxPackages // {
kernel = pkgs.linuxPackages.kernel // nixos_overrides pkgs.linuxPackages.kernel;
};
};
nixos = kernelConfigs (import ./channels_root/nixos {inherit system; });
in
{
inherit nixos;
inherit nixos_cfg;
bcc = (nixpkgs.linuxPackagesFor nixos.linuxPackages.kernel nixos.linuxPackages).bcc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment