infrastructure/common/generic-lxc.nix
2021-10-13 18:17:45 +02:00

19 lines
445 B
Nix

{ ... }: {
# See also: https://blog.xirion.net/posts/nixos-proxmox-lxc/
# Import nixos lxc config
imports = [
<nixpkgs/nixos/modules/virtualisation/lxc-container.nix>
];
# Supress systemd services that don't work (correctly) on LXC
systemd.suppressedSystemUnits = [
"dev-mqueue.mount"
"sys-kernel-debug.mount"
"sys-fs-fuse-connections.mount"
];
# Enable SSH daemon support.
services.openssh.enable = true;
}