test
This commit is contained in:
parent
14c3f58500
commit
7200611e52
3 changed files with 12 additions and 10 deletions
|
@ -1,14 +1,7 @@
|
|||
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
|
||||
# Useful to avoid using channels when using legacy nix commands
|
||||
let
|
||||
nixpkgs-lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
||||
sops-nix-lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.sops-nix.locked;
|
||||
in
|
||||
import (fetchTarball {
|
||||
let nixpkgs-lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
||||
in import (fetchTarball {
|
||||
url = "https://github.com/nixos/nixpkgs/archive/${nixpkgs-lock.rev}.tar.gz";
|
||||
sha256 = nixpkgs-lock.narHash;
|
||||
})
|
||||
import (fetchTarball {
|
||||
url = "https://github.com/Mic92/sops-nix/archive/${sops-nix-lock.rev}.tar.gz";
|
||||
sha256 = sops-nix.lock.narHash;
|
||||
})
|
6
lib/sops-nix.nix
Normal file
6
lib/sops-nix.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Useful to avoid using channels when using legacy nix commands
|
||||
let sops-nix-lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.sops-nix.locked;
|
||||
in import (fetchTarball {
|
||||
url = "https://github.com/Mic92/sops-nix/archive/${sops-nix-lock.rev}.tar.gz";
|
||||
sha256 = sops-nix.lock.narHash;
|
||||
})
|
|
@ -1,7 +1,10 @@
|
|||
# shell.nix
|
||||
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
|
||||
# Useful to avoid using channels when using legacy nix commands
|
||||
{ pkgs ? (import ./lib/nixpkgs.nix) { } }: {
|
||||
{
|
||||
pkgs ? (import ./lib/nixpkgs.nix) { },
|
||||
sops-nix ? (import ./lib/sops-nix.nix) { }
|
||||
}: {
|
||||
default = pkgs.mkShell {
|
||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||
# imports all files ending in .asc/.gpg
|
||||
|
|
Loading…
Reference in a new issue