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
|
# 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
|
# Useful to avoid using channels when using legacy nix commands
|
||||||
let
|
let nixpkgs-lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
||||||
nixpkgs-lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
in import (fetchTarball {
|
||||||
sops-nix-lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.sops-nix.locked;
|
|
||||||
in
|
|
||||||
import (fetchTarball {
|
|
||||||
url = "https://github.com/nixos/nixpkgs/archive/${nixpkgs-lock.rev}.tar.gz";
|
url = "https://github.com/nixos/nixpkgs/archive/${nixpkgs-lock.rev}.tar.gz";
|
||||||
sha256 = nixpkgs-lock.narHash;
|
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
|
# shell.nix
|
||||||
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
|
# 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
|
# 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 {
|
default = pkgs.mkShell {
|
||||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||||
# imports all files ending in .asc/.gpg
|
# imports all files ending in .asc/.gpg
|
||||||
|
|
Loading…
Reference in a new issue