Skip to content

Instantly share code, notes, and snippets.

@shift
Created February 1, 2024 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shift/7dbfea7092543b4bcf87aab49c9df573 to your computer and use it in GitHub Desktop.
Save shift/7dbfea7092543b4bcf87aab49c9df573 to your computer and use it in GitHub Desktop.
esp flake.nix/shell.nix
{
description = "shift's esphome-devices.";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShells.default = import ./shell.nix { inherit pkgs; };
}
);
}
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [
nixpkgs-fmt
esphome
sops
ssh-to-age
];
shellHook = ''
sops -d secrets.sops.yaml > secrets.yaml
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment