-
Notifications
You must be signed in to change notification settings - Fork 48
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
Attempting to test out your AGS configuration into my own NixOS config however getting in an error #42
Comments
Has the css compiled properly? Looks like the error is on the line telling ags to use a css file (which is compiled using sass). |
Yeah that seems to be the problem, though running sass in the directory manually seems to work fine. Is there any particular setup that is required for this work on NixOS that I've missed? I've tried both the way you have it setup as a SystemD service and using the |
I probably forgot to mention this anywhere, but I manually symlink the ags dir from my dots to |
I'll try that, but is that not what the |
That works, but the dependencies have to propagate properly, so make sure to have |
Yeah, I do have that option set to |
Symlinked the same as if it was |
In that case I have no clue. Maybe you can set up some logging. |
I am currently having an issue with the current ags config as well, when I try to run it I get: (com.github.Aylur.ags:406485): Gjs-WARNING **: 18:20:40.185: JS ERROR: SyntaxError: ambiguous indirect export: default @ file:///home/cdockter/.config/ags/windows/osd/main.js:5:7 also my lsp reports various errors throughout this config with regards to urls. I have no clue how JS works so it is possible I am missing something very trivial. |
It might be due to the lsp not knowing the types. You have to set up the types first. https://aylur.github.io/ags-docs/config/type-checking/ |
I thought I had done that,but the error occurs when running ags. For future reference how do I make the ags types work with home-manager? as it seems to be symlinked and thus causing issues with home-manager switch(due to the directory being non-empty). |
It actually looks like the HM module already sets types up https://github.com/Aylur/ags/blob/main/nix/hm-module.nix#L78. As for why you get the runtime error, I don't know. Are there more errors? |
currently all I get is the warning previously described;however, ags does not seem to run. |
Check for version mismatches. Otherwise, I suggest you try to remove the import until it works, and figure out how to make it work later. I've never encountered this before, so I can't help much. |
I got a similar error, but resolved it. Using the home-manager module, you could try the following instead of imperatively symlinking the dir to .config/ags:
Not using the full path to the config together with the out-of-store-symlink, will point all files to copies in the store, which are immutable. So sass, etc. won't work. At least with flakes. |
When running AGS, after installing the dependencies listed and using the AGS home-manager module, I get these errors:
The text was updated successfully, but these errors were encountered: