aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-05-21 14:45:42 -0500
committerRobert Helgesson <robert@rycee.net>2020-05-26 19:25:55 +0200
commit0e2858af94e3136cfa31d02c04c546fff0502c80 (patch)
tree1cbf9de5a6123d5a668294e5c876c6b46138326a /default.nix
parent5ba71ef91f3863508a61f5a7feba567c832a225e (diff)
Add path attribute to root `default.nix`
This makes it possible to refer to the path of Home Manager when you just have a Nix expression, not the actual source. Some things run import on a source and just give access to the result of the import, not the source. PR #1259
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index 545b0114191..dbaea4b50d1 100644
--- a/default.nix
+++ b/default.nix
@@ -7,4 +7,6 @@ rec {
pkgs.callPackage ./home-manager/install.nix { inherit home-manager; };
nixos = import ./nixos;
+
+ path = ./.;
}