From 57c0bd546c01d611b688f99244b97f7eb2e64c44 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 4 Feb 2024 22:23:20 +0800 Subject: [PATCH] flake: set NixOS configs with the current revision of flake in /etc/nixos --- configs/flake-parts/nixos.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/flake-parts/nixos.nix b/configs/flake-parts/nixos.nix index 6a4f9383..4071c83e 100644 --- a/configs/flake-parts/nixos.nix +++ b/configs/flake-parts/nixos.nix @@ -96,6 +96,11 @@ # The NixOS module that came from flake-parts. ({ config, lib, ... }: { _module.args = defaultExtraArgs; + + # Set the NixOS system at the time of evaluation for convenience. Take + # note, we assume that you develop your NixOS configuration somewhere + # not in `/etc/nixos`. + environment.etc.nixos.source = inputs.self; }) ]; };