initial server wifi ap config
This commit is contained in:
parent
c05472f419
commit
a5f49c10bd
2 changed files with 15 additions and 0 deletions
11
modules/server/access-point.nix
Normal file
11
modules/server/access-point.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ ... }: {
|
||||||
|
services.create_ap = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
INTERNET_IFACE = "enp2s0";
|
||||||
|
WIFI_IFACE = "wlp1s0";
|
||||||
|
SSID = "home";
|
||||||
|
PASSPHRASE = builtins.readFile /home/twoneis/ap-passkey;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,8 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
|
./access-point.nix
|
||||||
|
];
|
||||||
|
|
||||||
# Allow ssh access
|
# Allow ssh access
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue