Skip to content

roaming laptop: network proxy configuration #27535

@vmandela

Description

@vmandela

Issue description

Is there a way to setup nixos to automatically choose the right proxy based on the network it is on? I have nixos installed on my laptop which I use

  • on work network which has a proxy
  • on home network where there is no proxy

I have so far been modifying

networking.proxy.default

and doing

nixos-rebuild switch

each time I switch network.

What is the right way to handle changing proxy configuration in nixos?

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: questionRequests for a specific question to be answered6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions