-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
amd 40 current 2024-10-19 19:26:52 24.11.20241014.b36c6a9 6.6.56 *
- Loading branch information
Showing
4 changed files
with
66 additions
and
55 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,47 @@ | ||
{ | ||
"I win again, Lews Therin." = { | ||
pskRaw = "ext:iwinagainlewstherin"; | ||
config, | ||
inputs, | ||
hostName, | ||
host, | ||
system, | ||
stateVersion, | ||
lib, | ||
pkgs, | ||
... | ||
}: | ||
{ | ||
networking = { | ||
networkmanager = { | ||
enable = false; | ||
unmanaged = [ | ||
"*" | ||
"except:type:wwan" | ||
"except:type:gsm" | ||
]; | ||
}; | ||
wireless = { | ||
enable = true; | ||
# userControlled.enable = true; | ||
scanOnLowSignal = true; | ||
fallbackToWPA2 = true; | ||
secretsFile = config.sops.secrets.wireless.path; | ||
networks."I win again, Lews Therin.".pskRaw = "ext:iwinagainlewstherin"; | ||
allowAuxiliaryImperativeNetworks = true; # TODO: can we disable this? | ||
userControlled = { | ||
enable = true; | ||
group = "network"; | ||
}; | ||
# whats extraConfig.update_config=1 do? | ||
extraConfig = '' | ||
update_config=1 | ||
''; | ||
}; | ||
}; | ||
sops.secrets."wireless" = { | ||
# TODO: us-wi-1 module in hosts/networking/wireless/us-wi-1, make-wireless if wireless is not [] | ||
sopsFile = lib.from-root "secrets/sops/common/networking/wireless/us-wi-1.yaml"; | ||
}; | ||
# # Ensure group exists | ||
# this would be for users that aren't root or sudoers or doassers or whatever | ||
users.groups.network = { }; | ||
} |