grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderbig changesc1be8e3

main
721 B40 linesraw
1{ ... }:
2
3let
4  interface = "wlp3s0";
5in
6{
7  networking.networkmanager = {
8    enable = true;
9    ensureProfiles.profiles.hotspot = {
10      connection = {
11        id = "PAL4.0";
12        type = "wifi";
13        interface-name = interface;
14        autoconnect = true;
15      };
16      wifi = {
17        mode = "ap";
18        ssid = "PAL4.0";
19        band = "bg";
20      };
21      wifi-security = {
22        key-mgmt = "wpa-psk";
23        psk = "11111111";
24      };
25      ipv4 = {
26        method = "shared";
27        address1 = "10.42.0.1/24";
28      };
29      ipv6.method = "disabled";
30    };
31  };
32
33  networking.firewall.interfaces.${interface} = {
34    allowedUDPPorts = [
35      53
36      67
37    ];
38    allowedTCPPorts = [ 53 ];
39  };
40}