forked from poz/niksos
add modemmanager config for del
This commit is contained in:
parent
f9b9f3047b
commit
0a443eb8e7
1 changed files with 34 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
|
@ -127,6 +128,39 @@
|
|||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/270809
|
||||
systemd.services.ModemManager = {
|
||||
enable = lib.mkForce true;
|
||||
path = [ pkgs.libqmi ];
|
||||
wantedBy = [ "multi-user.target" "network.target" ];
|
||||
};
|
||||
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
|
||||
ensureProfiles.profiles = {
|
||||
sim = {
|
||||
connection = {
|
||||
id = "sim";
|
||||
uuid = "91d0e582-a24a-4835-baa9-98709b7793f9";
|
||||
type = "gsm";
|
||||
autoconnect = false;
|
||||
permissions = "user:jacek:;";
|
||||
};
|
||||
gsm = {
|
||||
apn = "internet";
|
||||
username = "internet";
|
||||
password = "internet";
|
||||
};
|
||||
ipv4.method = "auto";
|
||||
ipv6 = {
|
||||
addr-gen-mode = "default";
|
||||
method = "auto";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
myOptions = {
|
||||
other = {
|
||||
system = {
|
||||
|
|
Loading…
Reference in a new issue