akamanto: read wifi password from env var
CI / nixos-x86_64-linux (push) Successful in -18s Details
CI / nixos-aarch64-linux (push) Successful in 4m6s Details

main
Robert Gerus 2023-10-23 15:01:03 +02:00
parent 66f350a4f3
commit e1a31d8461
1 changed files with 5 additions and 6 deletions

View File

@ -17,18 +17,17 @@
# camera, kernel side
kernelModules = [ "bcm2835-v4l2" ];
# avoid building zfs
supportedFilesystems = lib.mkForce [
"vfat"
"ext4"
];
supportedFilesystems = lib.mkForce [ "vfat" "ext4" ];
};
age.secrets.hswaw-wifi.file = ../../secrets/hswaw-wifi.age;
environment.etc."wifi-secrets".text =
builtins.getEnv "__SECRET_wifi_secrets";
networking = {
useDHCP = false;
wireless = {
enable = true;
environmentFile = config.age.secrets.hswaw-wifi.path;
environmentFile = "/etc/wifi-secrets";
networks."hackerspace.pl-guests".psk = "@HSWAW_WIFI@";
networks."hackerspace.pl-guests-5G".psk = "@HSWAW_WIFI@";
};