{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6195","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6195/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6195/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6195/events","html_url":"https://github.com/NixOS/nixpkgs/issues/6195","id":56775800,"number":6195,"title":"tinc module fails if private key missing","user":{"login":"falsifian","id":225893,"avatar_url":"https://avatars.githubusercontent.com/u/225893?v=3","gravatar_id":"","url":"https://api.github.com/users/falsifian","html_url":"https://github.com/falsifian","followers_url":"https://api.github.com/users/falsifian/followers","following_url":"https://api.github.com/users/falsifian/following{/other_user}","gists_url":"https://api.github.com/users/falsifian/gists{/gist_id}","starred_url":"https://api.github.com/users/falsifian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falsifian/subscriptions","organizations_url":"https://api.github.com/users/falsifian/orgs","repos_url":"https://api.github.com/users/falsifian/repos","events_url":"https://api.github.com/users/falsifian/events{/privacy}","received_events_url":"https://api.github.com/users/falsifian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/nixos","name":"nixos","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-06T06:33:31Z","updated_at":"2015-02-06T06:38:52Z","closed_at":null,"body":"@wkennington (Thanks for making a tinc module!)\r\n\r\nThe tinc module won't start, and gives the following error message:\r\n\r\n```Feb 05 22:13:49 angel-nixos tinc.falsifian-pre-start[1513]: /nix/store/44hna616h8c70lr6mcqlyjjynrvkyp5a-unit-script/bin/tinc.falsifian-pre-start: line 5: tinc: command not found```\r\n\r\nI am pretty sure the trouble is this line in /nixos/modules/services/networking/tinc.nix:\r\n\r\n    [ -f \"/etc/tinc/${network}/ed25519_key.priv\" ] || tinc -n ${network} generate-ed25519-keys\r\n\r\nThis should call ```${data.package}/bin/tinc``` or something like that."},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/73189457","html_url":"https://github.com/NixOS/nixpkgs/issues/6195#issuecomment-73189457","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6195","id":73189457,"user":{"login":"wkennington","id":1773309,"avatar_url":"https://avatars.githubusercontent.com/u/1773309?v=3","gravatar_id":"","url":"https://api.github.com/users/wkennington","html_url":"https://github.com/wkennington","followers_url":"https://api.github.com/users/wkennington/followers","following_url":"https://api.github.com/users/wkennington/following{/other_user}","gists_url":"https://api.github.com/users/wkennington/gists{/gist_id}","starred_url":"https://api.github.com/users/wkennington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkennington/subscriptions","organizations_url":"https://api.github.com/users/wkennington/orgs","repos_url":"https://api.github.com/users/wkennington/repos","events_url":"https://api.github.com/users/wkennington/events{/privacy}","received_events_url":"https://api.github.com/users/wkennington/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T06:38:52Z","updated_at":"2015-02-06T06:38:52Z","body":"But data.package is in the path. The tinc binary should be in the preStart\nthen......\n\nOn Thu, Feb 5, 2015 at 10:33 PM, James Cook <notifications@github.com>\nwrote:\n\n> @wkennington <https://github.com/wkennington> (Thanks for making a tinc\n> module!)\n>\n> The tinc module won't start, and gives the following error message:\n>\n> Feb 05 22:13:49 angel-nixos tinc.falsifian-pre-start[1513]:\n> /nix/store/44hna616h8c70lr6mcqlyjjynrvkyp5a-unit-script/bin/tinc.falsifian-pre-start:\n> line 5: tinc: command not found\n>\n> I am pretty sure the trouble is this line in\n> /nixos/modules/services/networking/tinc.nix:\n>\n> [ -f \"/etc/tinc/${network}/ed25519_key.priv\" ] || tinc -n ${network} generate-ed25519-keys\n>\n> This should call ${data.package}/bin/tinc or something like that.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/NixOS/nixpkgs/issues/6195>.\n>\n"}}