Skip to content

Instantly share code, notes, and snippets.

@jhillyerd
Created March 12, 2021 15:26
Show Gist options
  • Save jhillyerd/ee0028f6564ab38fa382592f325d4842 to your computer and use it in GitHub Desktop.
Save jhillyerd/ee0028f6564ab38fa382592f325d4842 to your computer and use it in GitHub Desktop.
dev shell flake
{
description = "my nixops & ansible configruation";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
hello.url = "github:ihsanturk/hello-world-nix?rev=03ec3abd2def85a97425660a96aa31565cc77821";
nixops-flake.url = "github:input-output-hk/nixops-flake";
};
outputs = { self, nixpkgs, flake-utils, hello, nixops-flake }:
flake-utils.lib.eachDefaultSystem
(system: let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
ansible
hello.defaultPackage.${system}
nixops-flake.defaultPackage.${system}
];
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment