Automated method for bootstrapping NixOSBest method of copying full /nix/store over the network from one...

Were any toxic metals used in the International Space Station?

Is there an academic word that means "to split hairs over"?

Why doesn't Iron Man's action affect this person in Endgame?

Did galley captains put corks in the mouths of slave rowers to keep them quiet?

Is this possible when it comes to the relations of P, NP, NP-Hard and NP-Complete?

Adding labels and comments to a matrix

Given 0s on Assignments with suspected and dismissed cheating?

How can we allow remote players to effectively interact with a physical tabletop battle-map?

Should I communicate in my applications that I'm unemployed out of choice rather than because nobody will have me?

Substring join or additional table, which is faster?

Is this a group? If so, what group is it?

Do we have C++20 ranges library in GCC 9?

Segmentation fault when popping x86 stack

How to continually let my readers know what time it is in my story, in an organic way?

Why did the soldiers of the North disobey Jon?

Are there any sonatas with only two sections?

complicated arrows in flowcharts

How to describe a building set which is like LEGO without using the "LEGO" word?

Smooth function that vanishes only on unit cube

Source of the Wildfire?

Will a coyote attack my dog on a leash while I'm on a hiking trail?

What was the ring Varys took off?

Why didn't the Avengers use this object earlier?

Is 95% of what you read in the financial press “either wrong or irrelevant?”



Automated method for bootstrapping NixOS


Best method of copying full /nix/store over the network from one nixos machine to anotherJava SDK on NixOS for IntelliJLocal Nix cache is ignored because NAR info file lacks a signatureNixos X11 header files not foundnixos Error: GDK_BACKEND does not match available displayshow to set custom xkb_keymap in nixosnixos - Installing citrix-receiver and all needed certs as part of `nixos-rebuild`How can I install Dragon Player on NixOS?How to boot to single user mode in nixosConfiguring programs and services from unstable channel in NixOS






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I am currently managing three NixOS machines - one physical server, one virtual server running on a Proxmox instance, one laptop.



I have all three machines configuration stored in version control, so any changes that I make are conveniently tracked and it's awesome and all that.



My question is what is the recommended way for setting up NixOS on this set of machines initially?



What I am currently doing is basically following the NixOS installation instructions:




  • boot NixOS ISO

  • partition the disk

  • create a minimal configuration.nix including just partitioning, networking and my SSH key setup

  • nixos-install

  • copy over the corresponding configuration.nix file

  • nixos-rebuild switch


This process seems very tedious and anti-NixOS. I can't help thinking that there must a way to automate this process.



A major pain point for me is that during the installation I only have console access (i.e. no SSH). To obtain SSH access I need to either set a root password and switch the configuration to one allowing SSH password login or somehow copy my public key over. The only option for copying I could think of (short of manually typing it in) is using xdotool to type it to the console for me (which has its own limitations).



I thought of deploying the server boxes with NixOps, but it doesn't seem to support neither physical servers (apart from Hetzner, which is not my case), nor Proxmox VMs.










share|improve this question







New contributor



sasoiliev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    0















    I am currently managing three NixOS machines - one physical server, one virtual server running on a Proxmox instance, one laptop.



    I have all three machines configuration stored in version control, so any changes that I make are conveniently tracked and it's awesome and all that.



    My question is what is the recommended way for setting up NixOS on this set of machines initially?



    What I am currently doing is basically following the NixOS installation instructions:




    • boot NixOS ISO

    • partition the disk

    • create a minimal configuration.nix including just partitioning, networking and my SSH key setup

    • nixos-install

    • copy over the corresponding configuration.nix file

    • nixos-rebuild switch


    This process seems very tedious and anti-NixOS. I can't help thinking that there must a way to automate this process.



    A major pain point for me is that during the installation I only have console access (i.e. no SSH). To obtain SSH access I need to either set a root password and switch the configuration to one allowing SSH password login or somehow copy my public key over. The only option for copying I could think of (short of manually typing it in) is using xdotool to type it to the console for me (which has its own limitations).



    I thought of deploying the server boxes with NixOps, but it doesn't seem to support neither physical servers (apart from Hetzner, which is not my case), nor Proxmox VMs.










    share|improve this question







    New contributor



    sasoiliev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      I am currently managing three NixOS machines - one physical server, one virtual server running on a Proxmox instance, one laptop.



      I have all three machines configuration stored in version control, so any changes that I make are conveniently tracked and it's awesome and all that.



      My question is what is the recommended way for setting up NixOS on this set of machines initially?



      What I am currently doing is basically following the NixOS installation instructions:




      • boot NixOS ISO

      • partition the disk

      • create a minimal configuration.nix including just partitioning, networking and my SSH key setup

      • nixos-install

      • copy over the corresponding configuration.nix file

      • nixos-rebuild switch


      This process seems very tedious and anti-NixOS. I can't help thinking that there must a way to automate this process.



      A major pain point for me is that during the installation I only have console access (i.e. no SSH). To obtain SSH access I need to either set a root password and switch the configuration to one allowing SSH password login or somehow copy my public key over. The only option for copying I could think of (short of manually typing it in) is using xdotool to type it to the console for me (which has its own limitations).



      I thought of deploying the server boxes with NixOps, but it doesn't seem to support neither physical servers (apart from Hetzner, which is not my case), nor Proxmox VMs.










      share|improve this question







      New contributor



      sasoiliev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I am currently managing three NixOS machines - one physical server, one virtual server running on a Proxmox instance, one laptop.



      I have all three machines configuration stored in version control, so any changes that I make are conveniently tracked and it's awesome and all that.



      My question is what is the recommended way for setting up NixOS on this set of machines initially?



      What I am currently doing is basically following the NixOS installation instructions:




      • boot NixOS ISO

      • partition the disk

      • create a minimal configuration.nix including just partitioning, networking and my SSH key setup

      • nixos-install

      • copy over the corresponding configuration.nix file

      • nixos-rebuild switch


      This process seems very tedious and anti-NixOS. I can't help thinking that there must a way to automate this process.



      A major pain point for me is that during the installation I only have console access (i.e. no SSH). To obtain SSH access I need to either set a root password and switch the configuration to one allowing SSH password login or somehow copy my public key over. The only option for copying I could think of (short of manually typing it in) is using xdotool to type it to the console for me (which has its own limitations).



      I thought of deploying the server boxes with NixOps, but it doesn't seem to support neither physical servers (apart from Hetzner, which is not my case), nor Proxmox VMs.







      nixos






      share|improve this question







      New contributor



      sasoiliev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      sasoiliev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      sasoiliev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 2 hours ago









      sasoilievsasoiliev

      1




      1




      New contributor



      sasoiliev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      sasoiliev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          0






          active

          oldest

          votes












          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          sasoiliev is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f518790%2fautomated-method-for-bootstrapping-nixos%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          sasoiliev is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          sasoiliev is a new contributor. Be nice, and check out our Code of Conduct.













          sasoiliev is a new contributor. Be nice, and check out our Code of Conduct.












          sasoiliev is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f518790%2fautomated-method-for-bootstrapping-nixos%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m