mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 00:26:24 +00:00
39 lines
940 B
Nix
39 lines
940 B
Nix
# Shell for bootstrapping flake-enabled nix and other tooling
|
|
{ pkgs ? # If pkgs is not defined, instanciate nixpkgs from locked commit
|
|
let
|
|
lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
|
nixpkgs = fetchTarball {
|
|
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
|
|
sha256 = lock.narHash;
|
|
};
|
|
in
|
|
import nixpkgs { overlays = [ ]; }
|
|
, ... }:
|
|
{
|
|
default = pkgs.mkShell {
|
|
NIX_CONFIG = "extra-experimental-features = nix-command flakes repl-flake";
|
|
nativeBuildInputs = with pkgs; [
|
|
nix
|
|
home-manager
|
|
git
|
|
vim
|
|
emacs
|
|
tig
|
|
ripgrep
|
|
|
|
sops
|
|
ssh-to-age
|
|
gnupg
|
|
age
|
|
yubikey-manager
|
|
pinentry-curses
|
|
];
|
|
};
|
|
services.dbus.packages = [ pkgs.gcr ];
|
|
services.pcscd.enable = true;
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
pinentryFlavor = "curses";
|
|
enableSSHSupport = true;
|
|
};
|
|
}
|