5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NixOSでWi-Fi接続したい

Last updated at Posted at 2019-06-10

一時的に接続したい(インストール時など)

次のコマンドを実行します:

$ wpa_supplicant -i INTERFACE_NAME -c <(wpa_passphrase 'ESSID' 'PASSWORD')

INTERFACE_NAMEを調べるには次のコマンドを実行します。wlp2s0やwlp4s0とかだと思います:

$ ifconfig -a

ESSIDを調べるには次のコマンドを実行します:

$ iwlist INTERFACE_NAME scan | grep ESSID

次回から自動接続したい

次のコマンドを実行します:

$ wpa_passphrase "ESSID" "PASSWORD" >> /etc/wpa_supplicant.conf

接続できない…

IPアドレスは取得できているという前提が必要ですが、次の一文を/etc/nixos/configuration.nixに書きます:

networking.dnsExtensionMechanism = false;

これにより、resolve.confのedns0オプションが無効になります。

参考

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?