From 13b2379d97d922128f0403c7b69d4e3c8fcdcaed Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sat, 2 Sep 2023 23:37:11 +0200 Subject: [PATCH] Store nixos config in /etc/nixos/config.rev --- m/common/main.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/m/common/main.nix b/m/common/main.nix index f9141aa8..25a209c8 100644 --- a/m/common/main.nix +++ b/m/common/main.nix @@ -33,6 +33,9 @@ then theFlake.rev else throw ("Refusing to build from a dirty Git tree!"); + # Save the commit of the config in /etc/nixos/config.rev + environment.etc."nixos/config.rev".text = system.configurationRevision; + environment.systemPackages = with pkgs; [ vim wget git htop tmux pciutils tcpdump ripgrep nix-index nixos-option nix-diff ipmitool freeipmi ethtool lm_sensors ix cmake gnumake file tree