commit 95e14b5c05fc0c58fe66c686c713b82826090c7b
parent f36d8ef1d0fd1457e947f3f9786122bcab531326
Author: Daniel Barlow <dan@telent.net>
Date: Wed, 8 Mar 2023 20:37:08 +0000
extract secrets for extneder
Diffstat:
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -4,4 +4,4 @@ result
result-*
*.qcow2
_build
-rotuer-secrets.nix
+*-secrets.nix
diff --git a/extneder.nix b/extneder.nix
@@ -10,7 +10,7 @@
lib,
...
}: let
- secrets = import ./rotuer-secrets.nix;
+ secrets = import ./extneder-secrets.nix;
inherit
(pkgs.liminix.networking)
address
@@ -35,7 +35,7 @@ in rec {
imports = [
./modules/wlan.nix
./modules/tftpboot.nix
- # ./modules/flashable.nix
+ ./modules/flashable.nix
];
kernel = {
@@ -73,13 +73,11 @@ in rec {
services.hostap = hostapd (config.hardware.networkInterfaces.wlan) {
params = {
- ssid = "liminix.dev";
country_code = "GB";
hw_mode = "g";
- channel = "6";
wmm_enabled = 1;
ieee80211n = 1;
- inherit (secrets) wpa_passphrase;
+ inherit (secrets) ssid channel wpa_passphrase;
auth_algs = 1; # 1=wpa2, 2=wep, 3=both
wpa = 2; # 1=wpa, 2=wpa2, 3=both
wpa_key_mgmt = "WPA-PSK";
@@ -162,9 +160,10 @@ in rec {
bridge
hostap
defaultroute4
- # resolvconf
+ resolvconf
sshd
];
};
+ users.root.passwd = lib.mkForce secrets.root_password;
defaultProfile.packages = with pkgs; [nftables strace tcpdump swconfig];
}