-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
66 lines (66 loc) · 1.33 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
62
63
64
65
66
{pkgs ? import <nixpkgs> {}}:
with pkgs;
with builtins; let
phoenixBuild = writeShellApplication {
name = "phx-build";
text = readFile ./shell/build.bash;
};
phoenixLintFmt = writeShellApplication {
name = "phx-lint-fmt";
text = readFile ./shell/lintfmt.bash;
};
phoenixMount = writeShellApplication {
name = "phx-mount";
text = readFile ./shell/mount.bash;
};
phoenixTest = writeShellApplication {
name = "phx-test";
text = readFile ./shell/test.bash;
};
phoenixTestBuild = writeShellApplication {
name = "phx-test-build";
text = readFile ./shell/test-build.bash;
};
phoenixUmount = writeShellApplication {
name = "phx-umount";
text = readFile ./shell/mount.bash;
};
in
pkgs.mkShell {
name = "phoenix";
packages = [
OVMF
age
alejandra
cacert
cryptsetup
git
git-lfs
haskellPackages.hindent
haskellPackages.hlint
home-manager
kmod
less
mount
nix
nixos-rebuild
phoenixBuild
phoenixLintFmt
phoenixMount
phoenixTest
phoenixTestBuild
phoenixUmount
qemu
sops
ssh-to-age
statix
udisks
umount
util-linux
zstd
];
shellHook = ''
alias sudo=/run/wrappers/bin/sudo
phx-lint-fmt install
'';
}