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

NixOS support [Feature Req] #141

Open
AdsonCicilioti opened this issue Sep 16, 2022 · 2 comments
Open

NixOS support [Feature Req] #141

AdsonCicilioti opened this issue Sep 16, 2022 · 2 comments

Comments

@AdsonCicilioti
Copy link

I couldn't fully reproduce on NixOS.

I tried to investigate where it was breaking. I found problems in signal/playerctl.lua which only worked in .cli() mode and not in .lib() mode.
Then it was the turn of the lock_screen module, and in this a very large lua code file that I am not good at. then. I had difficulty. Wibar, what caught my attention the most, also has a lot of code to investigate.

I managed to supply all external dependencies, but still I couldn't reproduce fully.

I would love for there to be an adapted version for NixOS or for you, as a creator and coder, to give the best fit for this incredible distro.

@javacafe01
Copy link
Contributor

javacafe01 commented Oct 3, 2022

@AdsonCicilioti For NixOS, you'll need to write an overlay for the AwesomeWM package in order to get the LGI libs to work (such as playerctl and upower).

Instead, if you are using flakes, I'd recommend using this flake repo. I wrote the AwesomeWM derivation for this repo. Or, just take a look here for reference.

The important part of the overlay is the following attribute:

GI_TYPELIB_PATH = "${prev.playerctl}/lib/girepository-1.0:"
                  + "${prev.upower}/lib/girepository-1.0:"
                  + "${prev.networkmanager}/lib/girepository-1.0:"
                  + old.GI_TYPELIB_PATH;

@javacafe01
Copy link
Contributor

@AdsonCicilioti For NixOS, you'll need to write an overlay for the AwesomeWM package in order to get the LGI libs to work (such as playerctl and upower).

Instead, if you are using flakes, I'd recommend using this flake repo. I wrote the AwesomeWM derivation for this repo. Or, just take a look here for reference.

The important part of the overlay is the following attribute:

GI_TYPELIB_PATH = "${prev.playerctl}/lib/girepository-1.0:"
                  + "${prev.upower}/lib/girepository-1.0:"
                  + "${prev.networkmanager}/lib/girepository-1.0:"
                  + old.GI_TYPELIB_PATH;

@AdsonCicilioti Lmk if this works for you!

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