-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
53 lines (46 loc) · 845 Bytes
/
shell.nix
File metadata and controls
53 lines (46 loc) · 845 Bytes
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
{
mkShellNoCC,
git,
writeShellApplication,
nh,
alejandra,
}:
mkShellNoCC {
name = "Nix Configurations";
DIRENV_LOG_FORMAT = "";
packages = [
git # take a guess
nh # for upgrading
alejandra # for formatting
(writeShellApplication {
name = "update";
text = ''
nix flake update --flake .
'';
})
(writeShellApplication {
name = "upgrade";
text = ''
nh os switch
'';
})
(writeShellApplication {
name = "push";
text = ''
nix flake check && git push
'';
})
(writeShellApplication {
name = "format";
text = ''
alejandra .
'';
})
(writeShellApplication {
name = "occ";
text = ''
sudo docker exec --user www-data nextcloud php occ "$@"
'';
})
];
}