diff --git a/containers/default.nix b/containers/default.nix index fea50fe..a6c5faa 100644 --- a/containers/default.nix +++ b/containers/default.nix @@ -4,17 +4,11 @@ , ... }: -{ - systemd.tmpfiles.rules = [ - "d /run/user/1000 0700 user users -" - ]; - - containers.wine = { +let + template = { privateNetwork = true; ephemeral = true; autoStart = true; - hostAddress = "192.168.100.34"; - localAddress = "192.168.100.49"; bindMounts = { "/mnt" = { @@ -44,6 +38,15 @@ node = "/dev/dri/renderD128"; } ]; + }; +in { + systemd.tmpfiles.rules = [ + "d /run/user/1000 0700 user users -" + ]; + + containers.wine = template // { + hostAddress = "192.168.100.34"; + localAddress = "192.168.100.49"; config = { lib, pkgs, ... }: { imports = [