erikarvstedt / extra-container

Run declarative NixOS containers without full system rebuilds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Containers can't be built on non-nixos system (debian)

Melkor333 opened this issue · comments

I'm trying to run NixOS containers on a Debian host but I get the following error:

error: attribute 'kernelPackages' missing, at /nix/var/nix/profiles/per-user/root/channels/nixpkgs/nixos/modules/virtualisation/nixos-containers.nix:283:19

Can this be fixed somehow or is the tool only usable on NixOS systems? (Since the README contains install instructions for "other systemd-based systems" I assumed that is the case :) ).

I ran into the 'kernelPackages' error on NixOS 21.05. Perhaps the recent versions of nixpkgs are not compatible with extra-container.

I'm honestly scratching my head as to why a container needs a kernel.

@boxofrox it's related to #18 (with the rationale tl;dr at NixOS/nixpkgs#100433)

Fixed in the latest release (0.7).