Тёмный

NixCon2023 disko and nixos-anywhere: Declarative and Remote Installation of NixOS 

NixCon
Подписаться 3,7 тыс.
Просмотров 5 тыс.
50% 1

media.ccc.de/v...
If you ask three NixOS users what their favorite NixOS deployment tool to update a NixOS system is, you might get four answers. However, installing NixOS on a machine can be a tedious and manual process, especially if the machine is not physically accessible or does not have a NixOS installer. In this talk, we will introduce two tools that can simplify and automate the installation of NixOS on any machine with Linux and SSH access: disko and nixos-anywhere.
If you ask three NixOS users what their favorite NixOS deployment tool to update a NixOS system is, you might get four answers. However, installing NixOS on a machine can be a tedious and manual process, especially if the machine is not physically accessible or does not have a NixOS installer. In this talk, we will introduce two tools that can simplify and automate the installation of NixOS on any machine with Linux and SSH access: disko and nixos-anywhere.
Disko is a declarative disk partitioning tool that allows you to specify the layout of your disks using a simple Nix expression. It can create, resize, format, and mount partitions on any device that supports block operations. It also supports encryption, ZFS, RAID, and LVM.
Nixos-anywhere is a tool that can install NixOS on any cloud or bare-metal environment over SSH. It can detect whether the target machine has a NixOS installer; if not, it can use kexec to boot into one. It then uses disko to partition and format the disks according to your configuration, and installs NixOS with your desired packages and secrets.
With these tools, you can easily deploy NixOS on any machine without needing physical access or manual intervention. You can also reuse the same configuration for multiple machines, ensuring consistency and reproducibility.
In this talk, we will demonstrate how to use disko and nixos-anywhere to install NixOS on various scenarios, such as a virtual machine, laptops or bare-metal servers. We will also discuss some of the challenges and limitations of these tools, and how they can be improved in the future.
Jörg Thalheim
lassulus
talks.nixcon.o...
#nixcon2023

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@gzoechi
@gzoechi 10 месяцев назад
Just started with NixOS and set up a bunch of machines with disko and nix-anywhere. Great stuff🚀
@FunkyDeleriousPriest
@FunkyDeleriousPriest Год назад
I will definitely need to return to this and attempt it. I have a dozen PCs that I'd like to streamline NixOS installation for.
@mindtrizzle
@mindtrizzle Год назад
Wicked stuff, would love to see disko in nixpkgs :) Maybe even an option in the generated `hardware-configuration.nix` or something?
@IogaMaster
@IogaMaster 10 месяцев назад
Same this would be amazing!
@adjbutler
@adjbutler 6 месяцев назад
awesome work guys!
@Redyf
@Redyf 8 месяцев назад
Great video
@ppen9u1n
@ppen9u1n 11 месяцев назад
Cool to see this in-person presentation! I've been using disko since I needed to provision NixOS on several VPS, which was indeed quite nice. For the last one I also tried nixos-anywhere (while booted from a CD image through the web-console of the VPS provider). I was a bit surprised about the distrust toward BTRFS, I must have missed something when I installed it on a home server spanning multiple different disks? So is it really that dangerous or is there some irony involved here? Are there any references that I really shouldn't use it? Or if I were to consider ZFS: would it (still) be a good match if my hardware is (relatively) limited (microserver Gen8 16GB Xeon-1265L, but need most RAM to run k3s with about 10 workloads), and if I (probably) wouldn't use snapshots (because of limited space and selective off-site backups)?
Далее
NixCon2023 microvm.nix
34:13
Просмотров 4,5 тыс.
"Когти льва" Анатолий МАЛЕЦ
53:01
Я ИДЕАЛЬНО ПОЮ
00:31
Просмотров 476 тыс.
LinuxFest Northwest 2024: Deploying NixOS Anywhere
55:59
NixCon2023 Daily-driving NixOS on the Librem 5
23:09
Просмотров 1,8 тыс.
NixCon2023 Tvix
36:05
Просмотров 1,8 тыс.
Nix and NeoVim
13:38
Просмотров 141 тыс.
This homelab setup is my favorite one yet.
21:30
Просмотров 284 тыс.
Ultimate guide to installing Gentoo Linux for new users
2:14:21
NixCon2023 Finding things in nixpkgs and NixOS source
22:17