summaryrefslogtreecommitdiffstats
path: root/old/modules/common/nixpkgs.nix
blob: 486cf02079142b9835e814063d96eb4887100628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, ... }:

with lib;

{
  options = {
    nixpkgs.url = mkOption {
      type = types.str;
      description = "URL of the nixpkgs repository.";
    };
    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.
      '';
    };
  };
}