{"action":"created","comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/55145745","id":55145745,"diff_hunk":"@@ -0,0 +1,27 @@\n+{ config, lib, ... }:\n+\n+with lib;\n+\n+let cfg = config.services.mba6x_bl;\n+    kernel = config.boot.kernelPackages;\n+    modprobe = \"${config.system.sbin.modprobe}/sbin/modprobe\";\n+in\n+{\n+  options = {\n+    services.mba6x_bl = {\n+      enable = mkEnableOption \"the mba6x_bl backlight driver for MacBook Air 6,1 and 6,2\";\n+    };\n+  };\n+\n+  config = mkIf cfg.enable {\n+    boot.extraModulePackages = [ kernel.mba6x_bl ];\n+    systemd.services.mba6x_blWorkaround = {\n+      description = \"Remove and reload mba6x to workaround no brightness bug (#43)\";","path":"nixos/modules/hardware/video/backlight/mba6x_bl.nix","position":19,"original_position":19,"commit_id":"fd8f54294324b0dc7f66070bf88ebb495e49feab","original_commit_id":"fd8f54294324b0dc7f66070bf88ebb495e49feab","user":{"login":"hrdinka","id":1436960,"avatar_url":"https://avatars.githubusercontent.com/u/1436960?v=3","gravatar_id":"","url":"https://api.github.com/users/hrdinka","html_url":"https://github.com/hrdinka","followers_url":"https://api.github.com/users/hrdinka/followers","following_url":"https://api.github.com/users/hrdinka/following{/other_user}","gists_url":"https://api.github.com/users/hrdinka/gists{/gist_id}","starred_url":"https://api.github.com/users/hrdinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrdinka/subscriptions","organizations_url":"https://api.github.com/users/hrdinka/orgs","repos_url":"https://api.github.com/users/hrdinka/repos","events_url":"https://api.github.com/users/hrdinka/events{/privacy}","received_events_url":"https://api.github.com/users/hrdinka/received_events","type":"User","site_admin":false},"body":"It's not clear to which project Issue 43 belongs. Maybe you can add a hint where to find it.","created_at":"2016-03-06T18:42:26Z","updated_at":"2016-03-06T18:42:26Z","html_url":"https://github.com/NixOS/nixpkgs/pull/13688#discussion_r55145745","pull_request_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/13688","_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/55145745"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/13688#discussion_r55145745"},"pull_request":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/13688"}}},"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/13688","id":61809202,"html_url":"https://github.com/NixOS/nixpkgs/pull/13688","diff_url":"https://github.com/NixOS/nixpkgs/pull/13688.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/13688.patch","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/13688","number":13688,"state":"open","locked":false,"title":"mba6x_bl: init at 2016-02-12","user":{"login":"simonvandel","id":2770647,"avatar_url":"https://avatars.githubusercontent.com/u/2770647?v=3","gravatar_id":"","url":"https://api.github.com/users/simonvandel","html_url":"https://github.com/simonvandel","followers_url":"https://api.github.com/users/simonvandel/followers","following_url":"https://api.github.com/users/simonvandel/following{/other_user}","gists_url":"https://api.github.com/users/simonvandel/gists{/gist_id}","starred_url":"https://api.github.com/users/simonvandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonvandel/subscriptions","organizations_url":"https://api.github.com/users/simonvandel/orgs","repos_url":"https://api.github.com/users/simonvandel/repos","events_url":"https://api.github.com/users/simonvandel/events{/privacy}","received_events_url":"https://api.github.com/users/simonvandel/received_events","type":"User","site_admin":false},"body":"###### Things done:\r\n\r\n- [x] Tested using sandboxing (`nix-build --option build-use-chroot true` or [nix.useChroot](http://nixos.org/nixos/manual/options.html#opt-nix.useChroot) on NixOS)\r\n- [x] Built on platform(s): NixOS\r\n- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nox --run \"nox-review wip\"`\r\n- [ ] Tested execution of all binary files (usually in `./result/bin/`)\r\n- [x] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).\r\n\r\n---\r\n\r\nThis driver fixes backlight after suspend/resume on Macbook Air 6,1\r\nand 6,2.\r\n\r\nAdded a workaround for https://github.com/patjak/mba6x_bl/issues/43 in\r\nform of a systemd service.\r\n\r\nHas been working great on my machine for at least a month now.","created_at":"2016-03-05T11:11:13Z","updated_at":"2016-03-06T18:42:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63800a83fab414c100833eba5185dda136b59283","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/13688/commits","review_comments_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/13688/comments","review_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/13688/comments","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/fd8f54294324b0dc7f66070bf88ebb495e49feab","head":{"label":"simonvandel:mba6x_bl","ref":"mba6x_bl","sha":"fd8f54294324b0dc7f66070bf88ebb495e49feab","user":{"login":"simonvandel","id":2770647,"avatar_url":"https://avatars.githubusercontent.com/u/2770647?v=3","gravatar_id":"","url":"https://api.github.com/users/simonvandel","html_url":"https://github.com/simonvandel","followers_url":"https://api.github.com/users/simonvandel/followers","following_url":"https://api.github.com/users/simonvandel/following{/other_user}","gists_url":"https://api.github.com/users/simonvandel/gists{/gist_id}","starred_url":"https://api.github.com/users/simonvandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonvandel/subscriptions","organizations_url":"https://api.github.com/users/simonvandel/orgs","repos_url":"https://api.github.com/users/simonvandel/repos","events_url":"https://api.github.com/users/simonvandel/events{/privacy}","received_events_url":"https://api.github.com/users/simonvandel/received_events","type":"User","site_admin":false},"repo":{"id":37784948,"name":"nixpkgs","full_name":"simonvandel/nixpkgs","owner":{"login":"simonvandel","id":2770647,"avatar_url":"https://avatars.githubusercontent.com/u/2770647?v=3","gravatar_id":"","url":"https://api.github.com/users/simonvandel","html_url":"https://github.com/simonvandel","followers_url":"https://api.github.com/users/simonvandel/followers","following_url":"https://api.github.com/users/simonvandel/following{/other_user}","gists_url":"https://api.github.com/users/simonvandel/gists{/gist_id}","starred_url":"https://api.github.com/users/simonvandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonvandel/subscriptions","organizations_url":"https://api.github.com/users/simonvandel/orgs","repos_url":"https://api.github.com/users/simonvandel/repos","events_url":"https://api.github.com/users/simonvandel/events{/privacy}","received_events_url":"https://api.github.com/users/simonvandel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simonvandel/nixpkgs","description":"Nix Packages collection","fork":true,"url":"https://api.github.com/repos/simonvandel/nixpkgs","forks_url":"https://api.github.com/repos/simonvandel/nixpkgs/forks","keys_url":"https://api.github.com/repos/simonvandel/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simonvandel/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simonvandel/nixpkgs/teams","hooks_url":"https://api.github.com/repos/simonvandel/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/simonvandel/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/simonvandel/nixpkgs/events","assignees_url":"https://api.github.com/repos/simonvandel/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/simonvandel/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/simonvandel/nixpkgs/tags","blobs_url":"https://api.github.com/repos/simonvandel/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simonvandel/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simonvandel/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/simonvandel/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simonvandel/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/simonvandel/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/simonvandel/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/simonvandel/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/simonvandel/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/simonvandel/nixpkgs/subscription","commits_url":"https://api.github.com/repos/simonvandel/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/simonvandel/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/simonvandel/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/simonvandel/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/simonvandel/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/simonvandel/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simonvandel/nixpkgs/merges","archive_url":"https://api.github.com/repos/simonvandel/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simonvandel/nixpkgs/downloads","issues_url":"https://api.github.com/repos/simonvandel/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/simonvandel/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/simonvandel/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/simonvandel/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simonvandel/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/simonvandel/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/simonvandel/nixpkgs/deployments","created_at":"2015-06-20T20:34:33Z","updated_at":"2015-06-20T20:34:49Z","pushed_at":"2016-03-06T16:08:29Z","git_url":"git://github.com/simonvandel/nixpkgs.git","ssh_url":"git@github.com:simonvandel/nixpkgs.git","clone_url":"https://github.com/simonvandel/nixpkgs.git","svn_url":"https://github.com/simonvandel/nixpkgs","homepage":null,"size":317967,"stargazers_count":0,"watchers_count":0,"language":"Nix","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NixOS:master","ref":"master","sha":"4e8853ca8d46988d283bc06a4c7cd6cf68a25576","user":{"login":"NixOS","id":487568,"avatar_url":"https://avatars.githubusercontent.com/u/487568?v=3","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"repo":{"id":4542716,"name":"nixpkgs","full_name":"NixOS/nixpkgs","owner":{"login":"NixOS","id":487568,"avatar_url":"https://avatars.githubusercontent.com/u/487568?v=3","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NixOS/nixpkgs","description":"Nix Packages collection","fork":false,"url":"https://api.github.com/repos/NixOS/nixpkgs","forks_url":"https://api.github.com/repos/NixOS/nixpkgs/forks","keys_url":"https://api.github.com/repos/NixOS/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NixOS/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NixOS/nixpkgs/teams","hooks_url":"https://api.github.com/repos/NixOS/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/NixOS/nixpkgs/events","assignees_url":"https://api.github.com/repos/NixOS/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/NixOS/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/NixOS/nixpkgs/tags","blobs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NixOS/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/NixOS/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/NixOS/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/NixOS/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/NixOS/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/NixOS/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/NixOS/nixpkgs/subscription","commits_url":"https://api.github.com/repos/NixOS/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/NixOS/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/NixOS/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/NixOS/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NixOS/nixpkgs/merges","archive_url":"https://api.github.com/repos/NixOS/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NixOS/nixpkgs/downloads","issues_url":"https://api.github.com/repos/NixOS/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/NixOS/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/NixOS/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/NixOS/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/NixOS/nixpkgs/deployments","created_at":"2012-06-04T02:49:46Z","updated_at":"2016-03-03T14:36:30Z","pushed_at":"2016-03-06T18:16:19Z","git_url":"git://github.com/NixOS/nixpkgs.git","ssh_url":"git@github.com:NixOS/nixpkgs.git","clone_url":"https://github.com/NixOS/nixpkgs.git","svn_url":"https://github.com/NixOS/nixpkgs","homepage":null,"size":357693,"stargazers_count":967,"watchers_count":967,"language":"Nix","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1303,"mirror_url":null,"open_issues_count":1294,"forks":1303,"open_issues":1294,"watchers":967,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/13688"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/13688"},"issue":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/13688"},"comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/13688/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/13688/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/13688/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nixpkgs/statuses/fd8f54294324b0dc7f66070bf88ebb495e49feab"}}}}