nixos/proxmox-lxc: reformat

This commit is contained in:
Franz Pletz
2024-07-20 16:54:28 +02:00
parent 7c67f72893
commit 4aa419c046
+28 -14
View File
@@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
with lib;
@@ -42,15 +47,19 @@ with lib;
in
mkIf cfg.enable {
system.build.tarball = pkgs.callPackage ../../lib/make-system-tarball.nix {
storeContents = [{
object = config.system.build.toplevel;
symlink = "none";
}];
storeContents = [
{
object = config.system.build.toplevel;
symlink = "none";
}
];
contents = [{
source = config.system.build.toplevel + "/init";
target = "/sbin/init";
}];
contents = [
{
source = config.system.build.toplevel + "/init";
target = "/sbin/init";
}
];
extraCommands = "mkdir -p root etc/systemd/network";
};
@@ -84,11 +93,16 @@ with lib;
};
systemd = {
mounts = mkIf (!cfg.privileged) [{
enable = false;
where = "/sys/kernel/debug";
}];
services."getty@".unitConfig.ConditionPathExists = [ "" "/dev/%I" ];
mounts = mkIf (!cfg.privileged) [
{
enable = false;
where = "/sys/kernel/debug";
}
];
services."getty@".unitConfig.ConditionPathExists = [
""
"/dev/%I"
];
};
};