mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-10 07:58:30 +01:00
phone: Move containers config out of container module
We should explicitly enable it instead of conditionally disable it.
This commit is contained in:
parent
44cf7e6832
commit
591747784e
@ -94,6 +94,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.pipewire.enable = lib.mkForce false;
|
services.pipewire.enable = lib.mkForce false;
|
||||||
|
boot.enableContainers = false;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
wireless.enable = false;
|
wireless.enable = false;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
inherit (config.modules.system) username phone;
|
inherit (config.modules.system) username;
|
||||||
inherit (config.boot) enableContainers;
|
inherit (config.boot) enableContainers;
|
||||||
|
|
||||||
template = {
|
template = {
|
||||||
@ -50,7 +50,7 @@ in
|
|||||||
"d /run/user/1000 0700 ${username} users -"
|
"d /run/user/1000 0700 ${username} users -"
|
||||||
];
|
];
|
||||||
|
|
||||||
containers = mkIf (enableContainers && !phone) {
|
containers = mkIf enableContainers {
|
||||||
wine = template // {
|
wine = template // {
|
||||||
hostAddress = "192.168.100.34";
|
hostAddress = "192.168.100.34";
|
||||||
localAddress = "192.168.100.49";
|
localAddress = "192.168.100.49";
|
||||||
|
Loading…
Reference in New Issue
Block a user