Skip to content

Commit

Permalink
surface: enable hotpot
Browse files Browse the repository at this point in the history
  • Loading branch information
jz8132543 committed Mar 5, 2024
1 parent 7d9c8ca commit b5a69be
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
1 change: 0 additions & 1 deletion nixos/hosts/arx8/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
refind
efibootmgr
];
services.dnscrypt-proxy2.enable = true;
services.create_ap = {
enable = true;
settings = {
Expand Down
1 change: 0 additions & 1 deletion nixos/hosts/isk/_steam/dst/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
config,
lib,
pkgs,
...
}: let
Expand Down
13 changes: 13 additions & 0 deletions nixos/hosts/surface/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
# ipts.enable = true;
};

services.create_ap = {
enable = true;
settings = {
INTERNET_IFACE = "wlp1s0";
WIFI_IFACE = "wlp1s0";
SSID = "ARX8";
PASSPHRASE = "qwertyut";
# HIDDEN = 1;
IEEE80211AX = 1;
FREQ_BAND = 5;
};
};

environment.systemPackages = with pkgs; [
refind
efibootmgr
Expand Down
15 changes: 14 additions & 1 deletion nixos/modules/base/tailscale.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,20 @@ in {
};
};
# TODO: tailscale cannot connect to some derp when firewall is enabled
networking.firewall.enable = lib.mkForce false;
networking.firewall = {
allowedUDPPortRanges = [
{
from = 0;
to = 65535;
}
];
allowedTCPPortRanges = [
{
from = 0;
to = 65535;
}
];
};

# systemd.services.tailscale-setup = {
# script = ''
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/desktop/network-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
enable = true;
# dns = "dnsmasq";
};
services.dnscrypt-proxy2.enable = true;
environment.global-persistence.directories = [
"/etc/NetworkManager/system-connections"
];
Expand Down

0 comments on commit b5a69be

Please sign in to comment.