{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7406","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7406/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7406/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7406/events","html_url":"https://github.com/NixOS/nixpkgs/issues/7406","id":68846205,"number":7406,"title":"grub2: Auto-detect other Linux and Windows installations?","user":{"login":"MP2E","id":167708,"avatar_url":"https://avatars.githubusercontent.com/u/167708?v=3","gravatar_id":"","url":"https://api.github.com/users/MP2E","html_url":"https://github.com/MP2E","followers_url":"https://api.github.com/users/MP2E/followers","following_url":"https://api.github.com/users/MP2E/following{/other_user}","gists_url":"https://api.github.com/users/MP2E/gists{/gist_id}","starred_url":"https://api.github.com/users/MP2E/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MP2E/subscriptions","organizations_url":"https://api.github.com/users/MP2E/orgs","repos_url":"https://api.github.com/users/MP2E/repos","events_url":"https://api.github.com/users/MP2E/events{/privacy}","received_events_url":"https://api.github.com/users/MP2E/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/feedback-requested","name":"feedback-requested","color":"f7c6c7"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/nixos","name":"nixos","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-16T05:10:47Z","updated_at":"2015-04-16T14:35:00Z","closed_at":null,"body":"This is a commonly asked for feature in #nixos and I'd be interested in seeing this as well! I'm thinking of something similar to os-prober on Arch Linux.\r\n\r\nI'm just not sure where to begin implementing such a thing. Should I attempt to integrate os-prober? Is there some obvious solution I am missing? Any feedback would be appreciated!"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/93749877","html_url":"https://github.com/NixOS/nixpkgs/issues/7406#issuecomment-93749877","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7406","id":93749877,"user":{"login":"vcunat","id":1785925,"avatar_url":"https://avatars.githubusercontent.com/u/1785925?v=3","gravatar_id":"","url":"https://api.github.com/users/vcunat","html_url":"https://github.com/vcunat","followers_url":"https://api.github.com/users/vcunat/followers","following_url":"https://api.github.com/users/vcunat/following{/other_user}","gists_url":"https://api.github.com/users/vcunat/gists{/gist_id}","starred_url":"https://api.github.com/users/vcunat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcunat/subscriptions","organizations_url":"https://api.github.com/users/vcunat/orgs","repos_url":"https://api.github.com/users/vcunat/repos","events_url":"https://api.github.com/users/vcunat/events{/privacy}","received_events_url":"https://api.github.com/users/vcunat/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T14:35:00Z","updated_at":"2015-04-16T14:35:00Z","body":"The problem is that our grub config is (and should be) generated just from the expressions, i.e. independently of the machine it will be run on. We still might integrate such behavior e.g. into ``nixos-rebuild switch``; or if something like the above script can work generically, detecting *during boot-time*..."}}