From 4ed0c435ba9070087cf3a7011a19ef244061a560 Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Sun, 8 Sep 2024 00:47:24 +0200 Subject: [PATCH] feat(ap01): write nixpkgs version in /etc It's useful for debugging. We should also track our own revisions at some point. Signed-off-by: Ryan Lahfa --- machines/ap01/_configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/machines/ap01/_configuration.nix b/machines/ap01/_configuration.nix index edb1e16..380b16d 100644 --- a/machines/ap01/_configuration.nix +++ b/machines/ap01/_configuration.nix @@ -151,6 +151,11 @@ rec { filesystem = dir { etc = dir { "resolv.conf" = symlink "${config.services.resolvconf}/.outputs/resolv.conf"; + "nixpkgs.version" = { + type = "f"; + file = "${pkgs.lib.version}"; + mode = "0444"; + }; }; };