summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-06-28 15:04:45 +0200
committertv <tv@krebsco.de>2015-06-28 15:06:12 +0200
commit530d385ac9b8ca19f8f78ff6da098d668ac8ed9a (patch)
tree3b84c415cbdc02394bed0b8ee698ea078842168a /modules
parentd503dbd4ff1f225f4685831e2354b36d96e70996 (diff)
fetchgit: allow using dirty local work trees
Diffstat (limited to 'modules')
-rw-r--r--modules/common/nixpkgs.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/common/nixpkgs.nix b/modules/common/nixpkgs.nix
index 36ebbb0..486cf02 100644
--- a/modules/common/nixpkgs.nix
+++ b/modules/common/nixpkgs.nix
@@ -10,7 +10,16 @@ with lib;
};
nixpkgs.rev = mkOption {
type = types.str;
+ default = "origin/master";
description = "Revision of the remote repository.";
};
+ nixpkgs.dirty = mkOption {
+ type = types.bool;
+ default = false;
+ description = ''
+ If nixpkgs.url is a local path, then use that as it is.
+ TODO this break if URL is not a local path.
+ '';
+ };
};
}