Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/kata: pull in multi-user.target #1057

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion packages/nixos/kata.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,27 @@ in
unitConfig.AllowIsolate = true;
};

# https://github.com/kata-containers/kata-containers/blob/3.10.1/src/agent/kata-agent.service.in
# The DHCP daemon, which is pulled in via `multi-user.target` may overwrite
# the network settings of the PodVM, which are given by an agent call, and
# thus should not be overwritten by settings gathered via DHCP.
# networking.dhcpcd.enable = false;
# services.nscd.enable = false;
# system.nssModules = lib.mkForce [ ];

# # We don't want a virtual console to be set up, as this breaks the vsock-based
# # debug shell set up by the Kata agent. An interactive session in the podvm is
# # of no use anyway, as its consoles are not connected to anything besides the
# # vsock anyway.
# console.enable = false;
# systemd.services."systemd-user-sessions".enable = false;
# systemd.services."reload-systemd-vconsole-setup".enable = false;
# systemd.services."systemd-logind".enable = false;
# systemd.services."rescue".enable = false;
# systemd.targets."rescue".enable = false;
# systemd.targets."machines".enable = false;
# systemd.targets."network-online".enable = false;
# systemd.sockets."nix-daemon".enable = false;

systemd.services.kata-agent = {
description = "Kata Containers Agent";
documentation = [ "https://github.com/kata-containers/kata-containers" ];
Expand Down