Skip to content

Use with nixos modules, services, and machine configs #137

@msackman

Description

@msackman

It would be nice to use this to containerise not just nixos services and modules, but entire machine configs. I'm thinking both things like services.caddy, security.acme, and also, rather than setting config.entrypoint to some pkg, also supporting machine configuration, just like how the native nixos containers work, so config becomes a function: config = { config, pkgs, lib, ... }: { ...

Is there any way to do this sort of thing with nix-snapshotter? For the whole machine config, would it be "as simple" (ha!) as just figuring out what the relevant systemd entry point is and adding some flags so it knows it's in an image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions