Skip to content

Instantly share code, notes, and snippets.

@shelvacu
Created November 2, 2024 23:03
Show Gist options
  • Save shelvacu/f63fec7ed447d21b6eee469183c4e7cb to your computer and use it in GitHub Desktop.
Save shelvacu/f63fec7ed447d21b6eee469183c4e7cb to your computer and use it in GitHub Desktop.
{
"nodes": {
"dns": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1726867691,
"narHash": "sha256-IK3r16N9pizf53AipOmrcrcyjVsPJwC4PI5hIqEyKwQ=",
"owner": "nix-community",
"repo": "dns.nix",
"rev": "a3196708a56dee76186a9415c187473b94e6cbae",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "dns.nix",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1614513358,
"narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5466c5bbece17adaab2d82fae80b46e807611bf3",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1730327045,
"narHash": "sha256-xKel5kd1AbExymxoIfQ7pgcX6hjw9jCgbiBjiUfSVJ8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "080166c15633801df010977d9d7474b4a6c549d7",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-24.05",
"type": "indirect"
}
},
"root": {
"inputs": {
"dns": "dns",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
# To reproduce: attempt `nix build .`
{
inputs.nixpkgs.url = "nixpkgs/nixos-24.05";
inputs.dns = {
url = "github:nix-community/dns.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, dns }: let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) lib;
eval = lib.evalModules {
modules = [{
options.bla = lib.mkOption { type = dns.lib.types.zone; };
config._module.check = false;
}];
};
in
{
packages.${system}.default = (pkgs.nixosOptionsDoc { inherit (eval) options; }).optionsCommonMark;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment