The Nix Hour is a weekly beginner-oriented improvised QA-style lecture on Nix, hosted by Tweag. Here you can bring your questions and we'll answer them with more context, examples, alternatives, tradeoffs and related topics. These meetings are open for anybody to join, but also recorded and uploaded to the Tweag YouTube channel. For more information check out https://discourse.nixos.org/t/the-nix-hour-a-weekly-nix-qa-lecture-by-tweag/22767
Curated by: Tweag by Modus Create (81 videos)
If you'd like to join but the time doesn't work for you, please vote for your preferred times in this poll: https://discourse.nixos.org/t/poll-best-nix-hour-time-and-day/26141 The Nix Hour is a weekly beginner-oriented improvised Q&A-style lecture on Nix, where you can bring your questions and we'll answer them with more context, examples, alternatives, tradeoffs and related topics. Feel free to ask questions using the live chat, or even ask questions directly by joining the meeting: https://meet.jit.si/nix-hour. Alternatively ask questions ahead of time by opening an issue in https://github.com/tweag/nix-hour For more information and updates, check out https://discourse.nixos.org/t/the-nix-hour-a-weekly-nix-qa-lecture-by-tweag/22767 00:00 Intro and poll for a new time 01:28 NixOS test declarations in Nixpkgs 05:38 Basic structure of NixOS tests 06:45 The testScript and its API 09:39 Running the tests in Nixpkgs 10:58 Building the interactive test driver 11:55 Question: Do the tests use the host's Nix store? 13:47 Running tests interactively and networking between nodes 16:23 Creating our own basic NixOS test 24:11 Looking at some other available options, including extraPythonPackages 25:18 Logging into the machine interactively 29:00 Changing the keyboard layout of the machine 30:55 Taking a screenshot interactively, needs to be an absolute path 36:45 Taking a screenshot non-interactively, also needs to be an absolute path for some reason 45:44 system-features, requiredSystemFeatures and kvm being required for NixOS tests 48:41 Remote builder system-features specification 50:08 Question: Can custom system features be declared? 51:47 Temporarily changing a static etc file hackily 53:11 Setting a custom feature in nix.conf 54:16 Undoing the temporary file change