We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c30fc3 commit 2942a8dCopy full SHA for 2942a8d
flake.nix
@@ -21,13 +21,20 @@
21
{ pkgs }:
22
{
23
default = pkgs.mkShell {
24
- # The Nix packages provided in the environment.
+ # The Nix packages installed in the dev environment.
25
packages = with pkgs; [
26
opentofu # infrastructure as code
27
sops # simple tool for managing secrets
28
git-cliff # changelog generator
29
trivy # scan security issues
30
];
31
+ # The shell script executed when the environment is activated.
32
+ shellHook = ''
33
+ # Print the last modified date of "flake.lock".
34
+ stat flake.lock | grep "Modify" |
35
+ awk '{printf "\"flake.lock\" last modified on: %s", $2}' &&
36
+ echo " ($((($(date +%s) - $(stat -c %Y flake.lock)) / 86400)) days ago)"
37
+ '';
38
};
39
}
40
);
0 commit comments