This commit is contained in:
parent
35c77a3e63
commit
f81e3475e1
4 changed files with 8 additions and 5 deletions
5
lib/deploy-rs.nix
Normal file
5
lib/deploy-rs.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
let lock = builtins.fromJSON (builtins.readFile ./flake.lock).nodes.flake-compat.lockedd;
|
||||||
|
in import (fetchTarball {
|
||||||
|
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||||
|
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||||
|
})
|
|
@ -1,5 +1,3 @@
|
||||||
# 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;
|
let nixpkgs-lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes.nixpkgs.locked;
|
||||||
in import (fetchTarball {
|
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";
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# Useful to avoid using channels when using legacy nix commands
|
|
||||||
let sops-nix-lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes.sops-nix.locked;
|
let sops-nix-lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes.sops-nix.locked;
|
||||||
in import (fetchTarball {
|
in import (fetchTarball {
|
||||||
url = "https://github.com/Mic92/sops-nix/archive/${sops-nix-lock.rev}.tar.gz";
|
url = "https://github.com/Mic92/sops-nix/archive/${sops-nix-lock.rev}.tar.gz";
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
# 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) { }
|
sops-nix ? (import ./lib/sops-nix.nix ) { },
|
||||||
|
deploy-rs ? (import ./lib/deploy-rs.nix) { }
|
||||||
}: {
|
}: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||||
|
|
Loading…
Reference in a new issue