Add wireless.nix and update README

This commit is contained in:
iFargle 2023-09-15 21:29:33 +09:00
parent 6d4c9278ce
commit 93dd8b580e
3 changed files with 24 additions and 0 deletions

View file

@ -13,6 +13,7 @@ home-manager switch -b backup --flake /etc/nixos/git
![Gruv'd Hyprland](./screenshot.png "Hyprland with a Gruvboxy theme") ![Gruv'd Hyprland](./screenshot.png "Hyprland with a Gruvboxy theme")
--- ---
# To Do List # To Do List
* [ ] Add copealnd-5g psk keys to secrets.yaml in a format that matches the Telegraf token
* [ ] Look into Remote Builds - [Link](https://nixos.org/manual/nix/stable/advanced-topics/distributed-builds.html) * [ ] Look into Remote Builds - [Link](https://nixos.org/manual/nix/stable/advanced-topics/distributed-builds.html)
* [ ] Raspberry Pi 1: * [ ] Raspberry Pi 1:
* [ ] Set up Tailscale with pre-auth keys (services.tailscale.authKeyFile, add the key to secrets/secrets.yaml) * [ ] Set up Tailscale with pre-auth keys (services.tailscale.authKeyFile, add the key to secrets/secrets.yaml)

View file

@ -0,0 +1,21 @@
{pkgs, config, ...}: {
# Enable wireless
# Set up the secrets file for the token:
sops.secrets.copeland-5g-psk = {
sopsFile = ../../../secrets/secrets.yaml;
};
networking = {
wireless = {
environmentFiles = [ /run/secrets/wireless-psk ];
enable = true;
networks = {
"copeland-5g" = {
hidden = false;
psk = $copeland-5g-psk;
};
};
};
};
}

View file

@ -4,6 +4,8 @@
{ config, lib, pkgs, modulesPath, ... }: { { config, lib, pkgs, modulesPath, ... }: {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
../../common/services/wireless.nix
]; ];
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default) # Use the extlinux boot loader. (NixOS wants to enable GRUB by default)