diff options
Diffstat (limited to 'nixos/configuration.nix')
-rw-r--r-- | nixos/configuration.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 2ef2d79..af1a358 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -37,9 +37,13 @@ enable = true; powerOnBoot = true; }; - networking.proxy = { - default = "http://127.0.0.1:7897/"; - noProxy = "127.0.0.1,localhost,internal.domain"; + specialisation = { + in-china.configuration = { + networking.proxy = { + default = "http://127.0.0.1:7897/"; + noProxy = "127.0.0.1,localhost,internal.domain"; + }; + }; }; systemd.user.services.mpris-proxy = { |