{"action":"created","comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/77877048","id":77877048,"diff_hunk":"@@ -0,0 +1,58 @@\n+{ config, lib, pkgs, ... }:\n+\n+with lib;\n+\n+let cfg = config.services.unclutter-xfixes;\n+\n+in {\n+  options.services.unclutter-xfixes = {\n+\n+    enable = mkOption {\n+      description = \"Enable unclutter-xfixes to hide your mouse cursor when inactive.\";\n+      type = types.bool;\n+      default = false;\n+      example = true;\n+    };\n+\n+    package = mkOption {\n+      description = \"unclutter-xfixes derivation to use.\";\n+      type = types.package;\n+      default = pkgs.unclutter-xfixes;\n+      defaultText = \"pkgs.unclutter-xfixes\";\n+    };\n+\n+    timeout = mkOption {\n+      description = \"Number of seconds before the cursor is marked inactive.\";\n+      type = types.int;\n+      default = 1;\n+    };\n+\n+    threshold = mkOption {\n+      description = \"Minimum number of pixels considered cursor movement.\";\n+      type = types.int;\n+      default = 1;\n+    };\n+\n+    extraOptions = mkOption {\n+      description = \"More arguments to pass to the unclutter-xfixes command.\";\n+      type = types.listOf types.str;\n+      default = [];\n+      example = [ \"exclude-root\" \"ignore-scrolling\" \"fork\" ];\n+    };\n+  };\n+\n+  config = mkIf cfg.enable {\n+    systemd.user.services.unclutter-xfixes = {\n+      description = \"unclutter-xfixes\";\n+      wantedBy = [ \"default.target\" ];","path":"nixos/modules/services/x11/unclutter-xfixes.nix","position":47,"original_position":47,"commit_id":"6128c22315fa70651299b6a20bbece1e073ce524","original_commit_id":"6128c22315fa70651299b6a20bbece1e073ce524","user":{"login":"groxxda","id":5701271,"avatar_url":"https://avatars.githubusercontent.com/u/5701271?v=3","gravatar_id":"","url":"https://api.github.com/users/groxxda","html_url":"https://github.com/groxxda","followers_url":"https://api.github.com/users/groxxda/followers","following_url":"https://api.github.com/users/groxxda/following{/other_user}","gists_url":"https://api.github.com/users/groxxda/gists{/gist_id}","starred_url":"https://api.github.com/users/groxxda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groxxda/subscriptions","organizations_url":"https://api.github.com/users/groxxda/orgs","repos_url":"https://api.github.com/users/groxxda/repos","events_url":"https://api.github.com/users/groxxda/events{/privacy}","received_events_url":"https://api.github.com/users/groxxda/received_events","type":"User","site_admin":false},"body":"Minor nitpick: Imo this should be `graphical.target`.","created_at":"2016-09-07T18:20:40Z","updated_at":"2016-09-07T18:20:40Z","html_url":"https://github.com/NixOS/nixpkgs/pull/18398#discussion_r77877048","pull_request_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18398","_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/77877048"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/18398#discussion_r77877048"},"pull_request":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18398"}}},"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18398","id":84345093,"html_url":"https://github.com/NixOS/nixpkgs/pull/18398","diff_url":"https://github.com/NixOS/nixpkgs/pull/18398.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/18398.patch","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18398","number":18398,"state":"open","locked":false,"title":"Add x11 service for unclutter-xfixes","user":{"login":"erikryb","id":3787281,"avatar_url":"https://avatars.githubusercontent.com/u/3787281?v=3","gravatar_id":"","url":"https://api.github.com/users/erikryb","html_url":"https://github.com/erikryb","followers_url":"https://api.github.com/users/erikryb/followers","following_url":"https://api.github.com/users/erikryb/following{/other_user}","gists_url":"https://api.github.com/users/erikryb/gists{/gist_id}","starred_url":"https://api.github.com/users/erikryb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikryb/subscriptions","organizations_url":"https://api.github.com/users/erikryb/orgs","repos_url":"https://api.github.com/users/erikryb/repos","events_url":"https://api.github.com/users/erikryb/events{/privacy}","received_events_url":"https://api.github.com/users/erikryb/received_events","type":"User","site_admin":false},"body":"###### Motivation for this change\r\n\r\nThis is a service similar to the unclutter service, but for the new unclutter-xfixes. There is some [effort](https://github.com/Airblader/unclutter-xfixes/issues/14) to make unclutter-xfixes compatible with unclutter, but for now it is probably best to keep them as two different modules.\r\n\r\n###### Things done\r\n\r\n- [x] Tested using sandboxing\r\n  ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS,\r\n    or option `build-use-sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file)\r\n    on non-NixOS)\r\n- Built on platform(s)\r\n   - [x] NixOS\r\n   - [ ] OS X\r\n   - [ ] Linux\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\n\r\n","created_at":"2016-09-07T17:52:42Z","updated_at":"2016-09-07T18:20:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c149722e1f380f8d58e833c351993c3401a230e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18398/commits","review_comments_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18398/comments","review_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18398/comments","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/6128c22315fa70651299b6a20bbece1e073ce524","head":{"label":"erikryb:master","ref":"master","sha":"6128c22315fa70651299b6a20bbece1e073ce524","user":{"login":"erikryb","id":3787281,"avatar_url":"https://avatars.githubusercontent.com/u/3787281?v=3","gravatar_id":"","url":"https://api.github.com/users/erikryb","html_url":"https://github.com/erikryb","followers_url":"https://api.github.com/users/erikryb/followers","following_url":"https://api.github.com/users/erikryb/following{/other_user}","gists_url":"https://api.github.com/users/erikryb/gists{/gist_id}","starred_url":"https://api.github.com/users/erikryb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikryb/subscriptions","organizations_url":"https://api.github.com/users/erikryb/orgs","repos_url":"https://api.github.com/users/erikryb/repos","events_url":"https://api.github.com/users/erikryb/events{/privacy}","received_events_url":"https://api.github.com/users/erikryb/received_events","type":"User","site_admin":false},"repo":{"id":65042529,"name":"nixpkgs","full_name":"erikryb/nixpkgs","owner":{"login":"erikryb","id":3787281,"avatar_url":"https://avatars.githubusercontent.com/u/3787281?v=3","gravatar_id":"","url":"https://api.github.com/users/erikryb","html_url":"https://github.com/erikryb","followers_url":"https://api.github.com/users/erikryb/followers","following_url":"https://api.github.com/users/erikryb/following{/other_user}","gists_url":"https://api.github.com/users/erikryb/gists{/gist_id}","starred_url":"https://api.github.com/users/erikryb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikryb/subscriptions","organizations_url":"https://api.github.com/users/erikryb/orgs","repos_url":"https://api.github.com/users/erikryb/repos","events_url":"https://api.github.com/users/erikryb/events{/privacy}","received_events_url":"https://api.github.com/users/erikryb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erikryb/nixpkgs","description":"Nix Packages collection","fork":true,"url":"https://api.github.com/repos/erikryb/nixpkgs","forks_url":"https://api.github.com/repos/erikryb/nixpkgs/forks","keys_url":"https://api.github.com/repos/erikryb/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erikryb/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erikryb/nixpkgs/teams","hooks_url":"https://api.github.com/repos/erikryb/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/erikryb/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/erikryb/nixpkgs/events","assignees_url":"https://api.github.com/repos/erikryb/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/erikryb/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/erikryb/nixpkgs/tags","blobs_url":"https://api.github.com/repos/erikryb/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erikryb/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erikryb/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/erikryb/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erikryb/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/erikryb/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/erikryb/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/erikryb/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/erikryb/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/erikryb/nixpkgs/subscription","commits_url":"https://api.github.com/repos/erikryb/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/erikryb/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/erikryb/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/erikryb/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/erikryb/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/erikryb/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erikryb/nixpkgs/merges","archive_url":"https://api.github.com/repos/erikryb/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erikryb/nixpkgs/downloads","issues_url":"https://api.github.com/repos/erikryb/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/erikryb/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/erikryb/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/erikryb/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erikryb/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/erikryb/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/erikryb/nixpkgs/deployments","created_at":"2016-08-05T19:03:50Z","updated_at":"2016-08-05T19:04:14Z","pushed_at":"2016-09-07T18:06:18Z","git_url":"git://github.com/erikryb/nixpkgs.git","ssh_url":"git@github.com:erikryb/nixpkgs.git","clone_url":"https://github.com/erikryb/nixpkgs.git","svn_url":"https://github.com/erikryb/nixpkgs","homepage":null,"size":340056,"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":"4876c7362baa7fa0ed4afcbbdb9e5f8534cce239","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-09-07T00:27:18Z","pushed_at":"2016-09-07T18:06:21Z","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":584424,"stargazers_count":1275,"watchers_count":1275,"language":"Nix","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1599,"mirror_url":null,"open_issues_count":1524,"forks":1599,"open_issues":1524,"watchers":1275,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18398"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/18398"},"issue":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/18398"},"comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/18398/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18398/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18398/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nixpkgs/statuses/6128c22315fa70651299b6a20bbece1e073ce524"}}}}
{"actor":{"display_login":"groxxda"}}