LXC config is imported in minimalConfig, enabled in flake.nix and proxmox-lxc.nix module is imported in flake
This commit is contained in:
parent
e29ce7840b
commit
4486f7bc2d
5 changed files with 14 additions and 10 deletions
|
@ -2,6 +2,5 @@
|
|||
{
|
||||
imports = [
|
||||
./microvm.nix
|
||||
./lxc.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
{ inputs, lib, config, modulesPath, ... }:
|
||||
let
|
||||
cfg = config.services.vm;
|
||||
in
|
||||
{
|
||||
options.services.ct = {
|
||||
enable = lib.mkEnableOption "Enable LXC container config";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") ];
|
||||
systemd.suppressedSystemUnits = [
|
||||
"dev-mqueue.mount"
|
||||
"sys-kernel-debug.mount"
|
||||
"sys-fs-fuse-connections.mount"
|
||||
];
|
||||
|
||||
};
|
||||
}
|
|
@ -1,11 +1,8 @@
|
|||
{ inputs, lib, config, microvm, modulesPath, ... }:
|
||||
{ inputs, lib, config, microvm, ... }:
|
||||
let
|
||||
cfg = config.services.vm;
|
||||
in
|
||||
{
|
||||
options.services.ct = {
|
||||
enable = lib.mkEnableOption "Enable LXC container config";
|
||||
};
|
||||
options.services.vm = {
|
||||
enable = lib.mkEnableOption "Enable NixOS microvm config";
|
||||
hostname = lib.mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue