Move interfaces to nix/base