Skip to content

Commit

Permalink
nixos/aplaz: add proxy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Apr 30, 2024
1 parent 177710f commit d35a8e2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nixos/configurations/aplaz/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

{ inputs, lib, pkgs, ... }:

let
proxy = "socks5://localhost:8899";
in
{
imports = [
# Include the results of the hardware scan.
Expand All @@ -12,6 +15,9 @@
inputs.nixos-apple-silicon.nixosModules.apple-silicon-support
];

networking.proxy.default = proxy;
networking.proxy.allProxy = proxy;

# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot = {
enable = true;
Expand All @@ -32,8 +38,6 @@
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.

services.dae.enable = true;

services.clash = {
enable = true;
rule.enable = true;
Expand Down Expand Up @@ -154,4 +158,3 @@
virtualisation.podman.enable = true;

}

0 comments on commit d35a8e2

Please sign in to comment.