home.social

#nixops — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nixops, aggregated by home.social.

  1. @ocramius @nyunyu Feel free to disregard but you don't have to do full #NixOps to provision remotely. You can just do:
    nixos-rebuild --target-host root@host switch

    That said - it won't mix very well with a gui running on destination machine. In my setup the destination nodes don't even have /etc/nixos for example, only the node deploying them has the repo/config.

  2. Well, since @nyunyu's PC now runs #Nixos + flakes, it is time for me to learn #NixOps in practice, so I can provision her machine from remote.

    The declarative approach is cool for me, not for her, and really needs a small GUI that does:

    * edit a list of wished system / user programs
    * do a `rebuild test`
    * do a `commit` + push
    * do a `rebuild switch`
    * sometimes with `nix flake update`

  3. Holy fuck, a huge journey just ended today:

    My final, my largest, most active personal repo was finally converted to flakes & #colmena for managing #nixOS hosts.

    My Git oracles informed me that I first started trying to convert this repo on the 8th April 2021 😳

    It had become such a massive chore to have one repo still stuck in the #nixops swamp, that I finally set aside a day on the weekend and JFDI.

    Being a personal repo, previous attempts had suffered from "bah, I don't have time for this"

  4. @nobodyinperson how are you managing multiple #NixOS #RapberryPi configurations?

    I only have a new #FrameWork and legacy #System76, laptops, and my configurations are already divergent. I plan to add my Pi's into the mix, but need a better strategy.

    #GitOps doesn't seem to cut it, and, though I know it would work, think I should go for something more idiomatic than #Ansible templates. I've seen some very interesting #NixOps setups, but github.com/NixOS/nixops?tab=re says it's in maintenance mode!?!

  5. I've just deployed my first #Nix package to a remote machine using #NixOps, and it's been quite easy and convenient. Now it's time to learn how to write a #NixOS service to run the binary as part of the system's lifecycle and I'll be able to say that I've deployed a pet project using the #Nix stack for the first time!

  6. @publicvoit sure,
    My best advice for #nixos migration:
    so don't use #flake if you don't need it
    Don't use #homemanager if you don't need it
    Don't use #nixops/#colmena if you don't need it
    Don't use ....

  7. Is a better solution than ?

  8. It's just dawned on me that now my #pinephone has #mobileNixos on it, I'm going to have to re-learn how to manage #NixOS _without_ #colmena or #NixOps 🤣

    `nix rebuild` or `nix-rebuild` or something? It's only been 5 years or so since I worked that way...

    I'm a professional, honest, I am... 🤣

  9. upgraded to #colmena v0.4.0 and `colmena apply --reboot` is my new favourite thing in my #NixOS deployment. That's a feature-complete transition from #nixops for me 🎉 😀

  10. Moved my #NixOS deployment from #NixOps to #Colmena

    That's just my rock'n'roll lifestyle on a Saturday night 🤘🤣

  11. playing around with #SelfHosting #Nextcloud on #NixOS while waiting for new hardware to arrive... realizing that I don't quite know the right way, NixOS-wise, to structure things. this machine will be responsible for a few different things - it'll serve as a NAS, a NextCloud instance, a NixOS cache and build machine, a #HomeAssistant instance, and probably more...

    should the responsibilities be split into VMs? (#NixOps?) docker containers? just throw everything in the main install?

    I intend to back all the data up outside, so I'm not sure what the best balance is...

  12. A wee bit of #Terraform on #Hetzner cloud, a couple minutes, and, presto:

    [root@test-server:~]# uname -a
    Linux test-server 5.15.77 #1-NixOS SMP Thu Nov 3 14:59:20 UTC 2022 x86_64 GNU/Linux

    Tomorrow, #Nixops.

  13. С новой версией nixops стало неудобно работать.
    Теперь утилита проверяет наличие файла nixops.nix или flake.nix в текущей директории. Если его нету - выдаёт ошибку. Из директории с исходным кодом nixpkgs тоже не запускается. Надо, либо указывать новый параметр `--network` с указанием расположения файла `nixops.nix`, либо переходить сперва в директорию где он расположен, и только после этого запускать nixops.
    Неудобно и непривычно :(
    Так ещё надо осваивать `nix flake`...

    #linux #nixos #nixops

  14. @albi for development, as an alternative to docker. You'll want to _slowly_ work through the Nix Pills series because working with an immutable operating system with tendencies for reproducible builds has a learning curve.

  15. Anyone running #PostgreSQL on #NixOS and (optionally) #NixOps?

    I'm looking for a few pointers about setting up hot standby replication, but it doesn't seem to be supported out of the box on NixOS, nor it's generally discussed in much detail...