diff --git a/hosts/del/configuration.nix b/hosts/del/configuration.nix index 0d19f543..04b190fb 100644 --- a/hosts/del/configuration.nix +++ b/hosts/del/configuration.nix @@ -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 = {