diff --git a/configuration.nix b/configuration.nix index 8d5eb3d..4a5cb2b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -40,8 +40,6 @@ in { config = { mobile = { adbd.enable = true; - # boot.stage-1.gui.enable = false; - # beautification.splash = false; # quirks.fb-refresher.enable = lib.mkForce false; # quirks.qualcomm.msm8953-modem.enable = true; boot.stage-1.firmware = [ @@ -84,9 +82,34 @@ in { inherit (secrets) wireless; }; + # systemd.services.copy-rfs = { + # wantedBy = [ "multi-user.target" ]; + # serviceConfig = + # let script = pkgs.writeScript "copy-rfs" '' + # #!${pkgs.bash}/bin/bash + # source ${config.system.build.setEnvironment} + # if [ ! -e /tmp/tqftpserv/shob.bin ] ; then + # PERSIST_PATH=$(mktemp -d -t "rfsXXXXXX") + # PERSIST_DEV="/dev/disk/by-partlabel/persist" + # mkdir -p /tmp/tqftpserv + # mount $PERSIST_DEV -o ro,noatime $PERSIST_PATH + # cp -v -R "$PERSIST_PATH"/rfs/msm/mpss/. /tmp/tqftpserv + # umount $PERSIST_DEV + # rmdir $PERSIST_PATH + # fi + # ''; + # in { + # StandardInput = "journal"; + # StandardError = "journal"; + # StandardOutput = "journal"; + # SyslogIdentifier = "copy-rfs"; + # ExecStart = script; + # Restart = "always"; + # }; + # }; + services.openssh.enable = true; -# environment.systemPackages = [ qrtr tqftpserv ]; services.udev.extraRules = '' SUBSYSTEM!="rpmsg", GOTO="qcom_rpmsg_end" # symlink rpmsg endpoints under useful names