From 54fc2a5853a264e2e43be47f28b46e6906db0c83 Mon Sep 17 00:00:00 2001 From: derped Date: Thu, 11 Jul 2019 12:38:37 +0200 Subject: [PATCH] Make sure current config is copied to store, add environment variable for quick/easy access. --- options/copySysConf.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/options/copySysConf.nix b/options/copySysConf.nix index fd5ec27..c78cfe7 100644 --- a/options/copySysConf.nix +++ b/options/copySysConf.nix @@ -33,6 +33,9 @@ in { }; config = mkIf cfg.enable { + environment.variables = { + NIXOS_CONFIG_PATH = "${copySysConf}"; + }; nix = mkIf cfg.addToNixPath { # Do not use lib.optionals as it would override the default nixPath nixPath = [