Dual Booting NixOS and Windows 10. Can it be done easily if NixOS is installed first?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have an SSD with NixOS installed on it and an HDD that is currently a LUKS encrypted data store. I want to put Windows 10 on part of the HDD.



Since I've already installed NixOS, does this work.



Usually, when I've done dual boots I remember installing Windows first.



I plan on referencing this.



https://nixos.wiki/wiki/Dual_Booting_NixOS_and_Windows



Thanks.







share|improve this question
















  • 1




    In the past with BIOS/MBR systems what would happen is Windows would override the Linux bootloader, which would have to be restored after the fact to boot Linux. With UEFI systems the same could happen, but tools like efibootmgr can be used change the default bootmanager back to systemd-boot. I had trouble setting the default on my system (Dell Latitude) so I installed rEFInd.
    – Emmanuel Rosa
    Apr 6 at 12:14














up vote
0
down vote

favorite












I have an SSD with NixOS installed on it and an HDD that is currently a LUKS encrypted data store. I want to put Windows 10 on part of the HDD.



Since I've already installed NixOS, does this work.



Usually, when I've done dual boots I remember installing Windows first.



I plan on referencing this.



https://nixos.wiki/wiki/Dual_Booting_NixOS_and_Windows



Thanks.







share|improve this question
















  • 1




    In the past with BIOS/MBR systems what would happen is Windows would override the Linux bootloader, which would have to be restored after the fact to boot Linux. With UEFI systems the same could happen, but tools like efibootmgr can be used change the default bootmanager back to systemd-boot. I had trouble setting the default on my system (Dell Latitude) so I installed rEFInd.
    – Emmanuel Rosa
    Apr 6 at 12:14












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have an SSD with NixOS installed on it and an HDD that is currently a LUKS encrypted data store. I want to put Windows 10 on part of the HDD.



Since I've already installed NixOS, does this work.



Usually, when I've done dual boots I remember installing Windows first.



I plan on referencing this.



https://nixos.wiki/wiki/Dual_Booting_NixOS_and_Windows



Thanks.







share|improve this question












I have an SSD with NixOS installed on it and an HDD that is currently a LUKS encrypted data store. I want to put Windows 10 on part of the HDD.



Since I've already installed NixOS, does this work.



Usually, when I've done dual boots I remember installing Windows first.



I plan on referencing this.



https://nixos.wiki/wiki/Dual_Booting_NixOS_and_Windows



Thanks.









share|improve this question











share|improve this question




share|improve this question










asked Apr 2 at 20:14









David West

1155




1155







  • 1




    In the past with BIOS/MBR systems what would happen is Windows would override the Linux bootloader, which would have to be restored after the fact to boot Linux. With UEFI systems the same could happen, but tools like efibootmgr can be used change the default bootmanager back to systemd-boot. I had trouble setting the default on my system (Dell Latitude) so I installed rEFInd.
    – Emmanuel Rosa
    Apr 6 at 12:14












  • 1




    In the past with BIOS/MBR systems what would happen is Windows would override the Linux bootloader, which would have to be restored after the fact to boot Linux. With UEFI systems the same could happen, but tools like efibootmgr can be used change the default bootmanager back to systemd-boot. I had trouble setting the default on my system (Dell Latitude) so I installed rEFInd.
    – Emmanuel Rosa
    Apr 6 at 12:14







1




1




In the past with BIOS/MBR systems what would happen is Windows would override the Linux bootloader, which would have to be restored after the fact to boot Linux. With UEFI systems the same could happen, but tools like efibootmgr can be used change the default bootmanager back to systemd-boot. I had trouble setting the default on my system (Dell Latitude) so I installed rEFInd.
– Emmanuel Rosa
Apr 6 at 12:14




In the past with BIOS/MBR systems what would happen is Windows would override the Linux bootloader, which would have to be restored after the fact to boot Linux. With UEFI systems the same could happen, but tools like efibootmgr can be used change the default bootmanager back to systemd-boot. I had trouble setting the default on my system (Dell Latitude) so I installed rEFInd.
– Emmanuel Rosa
Apr 6 at 12:14










1 Answer
1






active

oldest

votes

















up vote
0
down vote













You could install Windows and allow it to overwrite your boot partition.
Then you could use a NixOS live-cd to reinstall your NixOS bootloader.
Therefore first mount your system as you have done for installation to /mnt. Then run nixos-install again. Running nixos-install is idempotent so your nixos install is not in danger - your system will be re-installed based on your configuration.nix. After that you should be able to append the windows bootloader as described in the wiki






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f435122%2fdual-booting-nixos-and-windows-10-can-it-be-done-easily-if-nixos-is-installed-f%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You could install Windows and allow it to overwrite your boot partition.
    Then you could use a NixOS live-cd to reinstall your NixOS bootloader.
    Therefore first mount your system as you have done for installation to /mnt. Then run nixos-install again. Running nixos-install is idempotent so your nixos install is not in danger - your system will be re-installed based on your configuration.nix. After that you should be able to append the windows bootloader as described in the wiki






    share|improve this answer
























      up vote
      0
      down vote













      You could install Windows and allow it to overwrite your boot partition.
      Then you could use a NixOS live-cd to reinstall your NixOS bootloader.
      Therefore first mount your system as you have done for installation to /mnt. Then run nixos-install again. Running nixos-install is idempotent so your nixos install is not in danger - your system will be re-installed based on your configuration.nix. After that you should be able to append the windows bootloader as described in the wiki






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        You could install Windows and allow it to overwrite your boot partition.
        Then you could use a NixOS live-cd to reinstall your NixOS bootloader.
        Therefore first mount your system as you have done for installation to /mnt. Then run nixos-install again. Running nixos-install is idempotent so your nixos install is not in danger - your system will be re-installed based on your configuration.nix. After that you should be able to append the windows bootloader as described in the wiki






        share|improve this answer












        You could install Windows and allow it to overwrite your boot partition.
        Then you could use a NixOS live-cd to reinstall your NixOS bootloader.
        Therefore first mount your system as you have done for installation to /mnt. Then run nixos-install again. Running nixos-install is idempotent so your nixos install is not in danger - your system will be re-installed based on your configuration.nix. After that you should be able to append the windows bootloader as described in the wiki







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 22 at 14:39









        Mic92

        1612




        1612






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f435122%2fdual-booting-nixos-and-windows-10-can-it-be-done-easily-if-nixos-is-installed-f%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?