nix/shell.nix

26 lines
711 B
Nix
Raw Normal View History

2023-08-15 05:29:23 +02:00
# shell.nix
with import <nixpkgs> {};
let
sops-nix = builtins.fetchTarball {
url = "https://github.com/Mic92/sops-nix/archive/master.tar.gz";
};
2023-09-19 10:39:24 +02:00
lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
2023-08-15 05:29:23 +02:00
in
mkShell {
2023-09-19 10:39:24 +02:00
import (fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
sha256 = lock.narHash;
})
NIX_CONFIG = "experimental-features = nix-command flakes";
2023-08-15 05:29:23 +02:00
# imports all files ending in .asc/.gpg
sopsPGPKeyDirs = [
"${toString ./.}/keys/hosts"
"${toString ./.}/keys/users"
];
nativeBuildInputs = [
2023-09-19 10:39:24 +02:00
pkgs.nix
pkgs.home-manager
pkgs.git
2023-08-15 05:29:23 +02:00
(pkgs.callPackage sops-nix {}).sops-import-keys-hook
];
}