LXC config is imported in minimalConfig, enabled in flake.nix and proxmox-lxc.nix module is imported in flake

This commit is contained in:
Théo Barnouin 2024-10-16 15:37:45 +02:00
parent e29ce7840b
commit 4486f7bc2d
5 changed files with 14 additions and 10 deletions

View file

@ -1,5 +1,8 @@
{ config, pkgs, lib, inputs, modulesPath, ... }:
{
imports = [ ./lxc.nix ];
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
settings.trusted-users = [ "root" "@wheel" ];

View file

@ -0,0 +1,16 @@
{lib, config, modulesPath, ...}:
let
cfg = config.services.ct;
in
{
options.services.ct = {
enable = lib.mkEnableOption "Enable LXC container config";
};
config = lib.mkIf cfg.enable {
systemd.suppressedSystemUnits = [
"dev-mqueue.mount"
"sys-kernel-debug.mount"
"sys-fs-fuse-connections.mount"
];
};
}