disable services which don't work in nixos containers
All checks were successful
Check Flake / check-flake (push) Successful in 3m17s
All checks were successful
Check Flake / check-flake (push) Successful in 3m17s
This commit is contained in:
@@ -96,7 +96,7 @@
|
|||||||
{ groups = [ "wheel" ]; persist = true; }
|
{ groups = [ "wheel" ]; persist = true; }
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.gc.automatic = true;
|
nix.gc.automatic = !config.boot.isContainer;
|
||||||
|
|
||||||
security.acme.acceptTerms = true;
|
security.acme.acceptTerms = true;
|
||||||
security.acme.defaults.email = "zuckerberg@neet.dev";
|
security.acme.defaults.email = "zuckerberg@neet.dev";
|
||||||
|
|||||||
@@ -133,8 +133,15 @@ let
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = mkIf (cfg.enable && vmWorkspaces != { }) {
|
config = mkMerge [
|
||||||
# Convert VM workspace configs to microvm.nix format
|
(mkIf (cfg.enable && vmWorkspaces != { }) {
|
||||||
microvm.vms = mapAttrs mkVmConfig vmWorkspaces;
|
# Convert VM workspace configs to microvm.nix format
|
||||||
};
|
microvm.vms = mapAttrs mkVmConfig vmWorkspaces;
|
||||||
|
})
|
||||||
|
|
||||||
|
# microvm.nixosModules.host enables KSM, but /sys is read-only in containers
|
||||||
|
(mkIf config.boot.isContainer {
|
||||||
|
hardware.ksm.enable = false;
|
||||||
|
})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user