inputs = {
devshell.url = "github:numtide/devshell";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable?dir=lib";
- # Uncomment temporarily below value and replace with local path to
- # your secrets, and replace "follows" key below to use it.
- #secrets-local.url = "path:/home/immae/projets/mes_sites/nixops-secrets";
secrets = {
type = "git";
url = "git+ssh://gitolite@git.immae.eu/perso/Immae/Config/Nix/Nixops/Secrets";
main-flake.inputs.secrets.follows = "secrets";
};
outputs = inputs@{ self, nixpkgs, main-flake, devshell, ... }: {
- sops-vars-file = (inputs.secrets-local or inputs.secrets).vars-file;
+ sops-vars-file = inputs.secrets.vars-file;
devShells.x86_64-linux.default = devshell.legacyPackages.x86_64-linux.mkShell {
env = [
{ name = "NIX_BUILD_TOP"; value = ""; }