wip
This commit is contained in:
parent
a63d6efb8b
commit
d10779d948
7 changed files with 23 additions and 8 deletions
|
|
@ -3,15 +3,26 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
|
||||
options = {
|
||||
wireless.enable = lib.mkEnableOption "Enables Wifi and adds my networks";
|
||||
};
|
||||
config = lib.mkIf config.wireless.enable {
|
||||
sops.secrets."wireless.env" = {};
|
||||
sops.templates."wpa_supplicant.conf" = {
|
||||
content = ''
|
||||
network={
|
||||
}
|
||||
'';
|
||||
path = "/etc/wpa_supplicant.conf";
|
||||
};
|
||||
sops.secrets."wireless.env" = { };
|
||||
networking.wireless.enable = true;
|
||||
environment.systemPackages = with pkgs; [wpa_supplicant_gui];
|
||||
environment.systemPackages = with pkgs; [ wpa_supplicant_gui ];
|
||||
networking.wireless.userControlled.enable = true;
|
||||
networking.wireless.allowAuxiliaryImperativeNetworks = true;
|
||||
|
||||
networking.wireless.secretsFile = config.sops.secrets."wireless.env".path;
|
||||
networking.wireless.networks = {
|
||||
"Tycho Station" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue