phone: Move containers config out of container module

We should explicitly enable it instead of conditionally disable it.
This commit is contained in:
Donovan Glover 2024-07-17 05:55:08 -04:00
parent 44cf7e6832
commit 591747784e
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 3 additions and 2 deletions

View File

@ -94,6 +94,7 @@ in
};
services.pipewire.enable = lib.mkForce false;
boot.enableContainers = false;
networking = {
wireless.enable = false;

View File

@ -2,7 +2,7 @@
let
inherit (lib) mkIf;
inherit (config.modules.system) username phone;
inherit (config.modules.system) username;
inherit (config.boot) enableContainers;
template = {
@ -50,7 +50,7 @@ in
"d /run/user/1000 0700 ${username} users -"
];
containers = mkIf (enableContainers && !phone) {
containers = mkIf enableContainers {
wine = template // {
hostAddress = "192.168.100.34";
localAddress = "192.168.100.49";