Created
February 1, 2024 11:45
-
-
Save shift/7dbfea7092543b4bcf87aab49c9df573 to your computer and use it in GitHub Desktop.
esp flake.nix/shell.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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; }; | |
} | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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