-
Notifications
You must be signed in to change notification settings - Fork 8
/
shell.nix
61 lines (50 loc) · 1.2 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Shell for bootstrapping flake-enabled nix and home-manager
# You can enter it through 'nix develop' or (legacy) 'nix-shell'
{ pkgs ? (import ./nixpkgs.nix) { }, system }:
let uefi_file = "${pkgs.OVMF.fd}/FV/OVMF.fd";
in {
default = pkgs.mkShell {
# Enable experimental features without having to specify the argument
NIX_CONFIG = "experimental-features = nix-command flakes";
nativeBuildInputs = with pkgs;
[
# Required by nix-homelab project
borgbackup
deno
git
home-manager
just
nix
plantuml
pre-commit
# Testing nix-homelab
qemu
qemu_kvm
OVMF
# Nix unentended installation
nixos-anywhere
# Credentials
age
gnupg
pass
pwgen
sops
ssh-to-age
# Required by invoke
wireguard-tools
openssl_3_0.bin
# diagrams
graphviz
d2
# Wireguard
wireguard-tools
openssl_3_0.bin
# Wireguard
openssl_3_0.bin
wireguard-tools
] ++ lib.optional (stdenv.isLinux) mkpasswd;
shellHook = ''
export UEFI_FILE=${uefi_file};
'';
};
}