• @Vincent@feddit.nl
    link
    fedilink
    35 days ago

    Copy one file over and it’s set up for you.

    So, I’ve only played around with NixOS on a Raspberry Pi, but… Don’t people usually split their config up in multiple files, and then store than in a Git repository?

    The process then still is: check out that Git repository, except there’s another step: copy over your private key so that you can decrypt your secrets.

    Is that correct? Or did I make things needlessly complex for myself?

        • @balsoft@lemmy.ml
          link
          fedilink
          15 days ago

          The ssh key to access the private git repo is on the same yubikey as the decryption key (they are technically different GPG slots but I don’t need to care about that, just plug the key in, type in the pin, and it all works automagically)

    • @OhVenus_Baby@lemmy.ml
      link
      fedilink
      15 days ago

      Way over complex lol. I don’t copy anything to online source for better or worse. I auto script backups. The only backups you’ll ever need are nix config. Nothing else aside from your home folder obviously. With those two you can boot on any machine, anytime, as if you never left. I am not shilling. It’s been dead stable so far, aside from tweaks I done to break my own builds testing.

    • dblsaiko
      link
      fedilink
      15 days ago

      I don’t have any secrets in my config or a private key or anything and I’m currently running 4 servers from the same config (it used to be 8 or even more machines at some point even, including desktops).

      But yes, it’s a multi-file config, it would be absolutely crazy to not split it up with how large it is.

      • @Vincent@feddit.nl
        link
        fedilink
        1
        edit-2
        5 days ago

        Is that just because your four servers aren’t used for anything that need a secret? e.g. I wanted to put my wifi password in there, and the password for my user account.