# vim: filetype=bash
export PASSWORD_STORE_DIR=$(expand_path nixops/secrets)
export NIX_PATH=nixpkgs=$(cat $(expand_path nix/sources.json) | jq -r '."nixpkgs-nixops".url')
+NIX_PATH=$NIX_PATH:nixpkgs-nix=$(cat $(expand_path nix/sources.json) | jq -r '."nixpkgs-nix".url')
export NIXOPS_ENV_LOADED=1
socket: '${env.redis.socket}'
auth: null
db: ${env.redis.db}
- auth:
- local:
- enabled: true
- ldap:
- enabled: true
- ldap_only: false
- url: ldaps://${env.ldap.host}/${env.ldap.base}
- bind_dn: ${env.ldap.dn}
- bind_password: ${env.ldap.password}
- base: ${env.ldap.base}
- mail_entry: "mail"
- user_filter: "${env.ldap.filter}"
smtp:
transport: sendmail
sendmail: '/run/wrappers/bin/sendmail'
"url": "https://github.com/NixOS/nixpkgs-channels/archive/c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
+ "nixpkgs-nix": {
+ "branch": "nixos-unstable",
+ "description": "A read-only mirror of NixOS/nixpkgs tracking the released channels. Send issues and PRs to",
+ "homepage": "https://github.com/NixOS/nixpkgs",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "891f607d5301d6730cb1f9dcf3618bcb1ab7f10e",
+ "sha256": "1cr39f0sbr0h5d83dv1q34mcpwnkwwbdk5fqlyqp2mnxghzwssng",
+ "type": "tarball",
+ "url": "https://github.com/NixOS/nixpkgs/archive/891f607d5301d6730cb1f9dcf3618bcb1ab7f10e.tar.gz",
+ "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
+ },
"nixpkgs-nixops": {
"branch": "nixos-unstable",
"description": "A read-only mirror of NixOS/nixpkgs tracking the released channels. Send issues and PRs to",
-Subproject commit 00f59f49098d79f0839541fd379e8933e3ddf9d7
+Subproject commit c16489e0bcb8785afa2b4c19d2c44e164ef4b7eb
-{ pkgs ? import <nixpkgs> { overlays = builtins.attrValues (import ./overlays); } }:
+{ pkgs ? import <nixpkgs> { overlays = builtins.attrValues (import ./overlays); },
+ pkgs-nix ? import <nixpkgs-nix> { overlays = builtins.attrValues (import ./overlays); }
+}:
+let
+ patchedNix = pkgs-nix.nixUnstable.overrideAttrs(old: {
+ patches = old.patches ++ [
+ # Fix the ETag bug. PR merged. Remove when updating to >= 20210125
+ # https://github.com/NixOS/nixpkgs/pull/109309#issuecomment-768331750
+ (pkgs-nix.fetchpatch {
+ url = "https://patch-diff.githubusercontent.com/raw/NixOS/nix/pull/4470.diff";
+ sha256 = "sha256-d4RNOKMxa4NMbFgYcqWRv2ByHt8F/XUWV+6P9qHz7S4=";
+ })
+ ];
+ });
+in
pkgs.mkShell {
- buildInputs = [ pkgs.nixUnstable pkgs.morph pkgs.niv pkgs.pass pkgs.curl pkgs.shellcheck pkgs.jq pkgs.gnumake ];
+ buildInputs = [ patchedNix pkgs.morph pkgs.niv pkgs.pass pkgs.curl pkgs.shellcheck pkgs.jq pkgs.gnumake ];
}