srk changed the topic of #nixos-cs to: ale ved 'man configuration.nix' je po anglicky /o\ | https://logs.nix.samueldr.com/nixos-cs
jtojnar has joined #nixos-cs
<smrtak> https://nixos.wiki/wiki/Virtualization_in_NixOS :: To do this, we map over the guests argument that we previously ignored to create the services:
<smrtak> error: undefined variable 'lib' at /etc/nixos/configuration.nix:111:20
<smrtak> systemd.services = lib.mapAttrs' (name: guest: lib.nameValuePair "libvirtd-guest-${name}"
<smrtak> ten systemd.services ma ist do configuration.nix? :)
<smrtak> chcel by som si spawnut VM v ktorej chcem bezat wireguard ala router
<smrtak> ale vyzera, ze v nixose nezvladam ani uplne zakladne veci :/
<aither> smrtak: tu cast configu se systemd.services vkladas do nejake funkce, tak najdi jeji hlavicku a pridej lib mezi argumenty
<aither> pravdepodobne hned na zacatku toho souboru
<smrtak> ja som ten systemd service dal do configuration.nix
<smrtak> ale neviem ci som to dobre pochopil, mozno to malo ist skor niekam inam
<aither> ale jo, akorat ti nekde (pravdepobodne na prvnim radku) chybi argument `lib` a proto mas undefined variable
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-cs