erikarvstedt / extra-container

Run declarative NixOS containers without full system rebuilds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`autoStart` option doesn't work

danbst opened this issue · comments

On NixOS it is handled by setting extra symlinks in /etc/systemd/system/machines.target.wants directory. Currently I'm doing workaround of:

        machines_wants=/etc/systemd/system/machines.target.wants
        mkdir -p $machines_wants
        rm -rf $machines_wants/*
        for service in $(ls -d /usr/lib/systemd/system/*); do
          ln -s $service $machines_wants/
        done

Thanks for the suggestion, I'll fix that soon.

Implemented in 8f729fc.