Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Conflict with NIX Installed #18

Open
nmcbride opened this issue Mar 2, 2024 · 5 comments
Open

Some Conflict with NIX Installed #18

nmcbride opened this issue Mar 2, 2024 · 5 comments

Comments

@nmcbride
Copy link

nmcbride commented Mar 2, 2024

I use Silverblue with NIX installed and for some reason there seems to be a conflict where it is looking into the NIX store/home directory for some reason:

➜  ~ cd ~; curl -qLs  https://github.com/ewagner12/all-ways-egpu/releases/latest/download/all-ways-egpu.zip  -o all-ways-egpu.zip; unzip all-ways-egpu.zip; cd all-ways-egpu-main; chmod +x install.sh; sudo ./install.sh user-install; cd ../; rm -rf all-ways-egpu.zip all-ways-egpu-main
Archive:  all-ways-egpu.zip
72de788ebb7730a212bb6c23d2feefdf8fec9567
   creating: all-ways-egpu-main/
  inflating: all-ways-egpu-main/LICENSE  
   creating: all-ways-egpu-main/OpenRC/
  inflating: all-ways-egpu-main/OpenRC/all-ways-egpu-boot-vga-openrc  
  inflating: all-ways-egpu-main/OpenRC/all-ways-egpu-openrc  
  inflating: all-ways-egpu-main/OpenRC/all-ways-egpu-set-compositor-openrc  
  inflating: all-ways-egpu-main/README.md  
  inflating: all-ways-egpu-main/all-ways-egpu  
  inflating: all-ways-egpu-main/all-ways-egpu-reenable.desktop  
  inflating: all-ways-egpu-main/all-ways-egpu.desktop  
  inflating: all-ways-egpu-main/install.sh  
   creating: all-ways-egpu-main/systemd/
  inflating: all-ways-egpu-main/systemd/all-ways-egpu-boot-vga.service  
  inflating: all-ways-egpu-main/systemd/all-ways-egpu-set-compositor.service  
  inflating: all-ways-egpu-main/systemd/all-ways-egpu-shutdown.service  
  inflating: all-ways-egpu-main/systemd/all-ways-egpu-user.service  
  inflating: all-ways-egpu-main/systemd/all-ways-egpu.service  
[sudo] password for <user>: 
cp: cannot create regular file '/home/nix/.local/share/applications': No such file or directory
cat: /home/nix/.bashrc: No such file or directory
@nmcbride
Copy link
Author

nmcbride commented Mar 2, 2024

Basically it is confusing the nix home for my own and I'm not sure why.

@ewagner12
Copy link
Owner

@nmcbride
When doing the user-install it steps through all the user home directories so that it can set itself up properly on a multi-user system. I can add some additional logic to skip any home directory like nix that doesn't have the expected file structure.

@ewagner12
Copy link
Owner

@nmcbride
I just added the fix to the github repo, could you try cloning the latest and installing as follows:
git clone https://github.com/ewagner12/all-ways-egpu.git
cd all-ways-egpu
chmod +x install.sh; sudo ./install.sh user-install
let me know if this fixes this issue for you.

@nmcbride
Copy link
Author

nmcbride commented Mar 3, 2024

So,

I tried to do the update. Ran into some issues but I believe I got it updated.

However I see this still in the service:

Method 2 auto switch at startup service
× all-ways-egpu-boot-vga.service - Configure eGPU as primary using boot_vga under Wayland desktops
     Loaded: loaded (/etc/systemd/system/all-ways-egpu-boot-vga.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: exit-code) since Sun 2024-03-03 13:58:34 EST; 2min 15s ago
    Process: 1736 ExecStart=/home/nix/bin/all-ways-egpu set-boot-vga egpu (code=exited, status=203/EXEC)
   Main PID: 1736 (code=exited, status=203/EXEC)
        CPU: 864us

Mar 03 13:58:34 framework-13-sb systemd[1]: Starting all-ways-egpu-boot-vga.service - Configure eGPU as primary using boot_vga under Wayland desktops...
Mar 03 13:58:34 framework-13-sb (ays-egpu)[1736]: all-ways-egpu-boot-vga.service: Failed to locate executable /home/nix/bin/all-ways-egpu: Permission denied
Mar 03 13:58:34 framework-13-sb (ays-egpu)[1736]: all-ways-egpu-boot-vga.service: Failed at step EXEC spawning /home/nix/bin/all-ways-egpu: Permission denied
Mar 03 13:58:34 framework-13-sb systemd[1]: all-ways-egpu-boot-vga.service: Main process exited, code=exited, status=203/EXEC
Mar 03 13:58:34 framework-13-sb systemd[1]: all-ways-egpu-boot-vga.service: Failed with result 'exit-code'.
Mar 03 13:58:34 framework-13-sb systemd[1]: Failed to start all-ways-egpu-boot-vga.service - Configure eGPU as primary using boot_vga under Wayland desktops.

@ewagner12
Copy link
Owner

@nmcbride
Ok it looks like nix has some unusual permissions.
I made another change to the script to try and fix it again.

Could you try uninstalling with all-ways-egpu uninstall and then install the latest git version again following the commands from my last post above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants