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

build: package bat for NixOS #85

Open
KingBain opened this issue Feb 28, 2024 · 2 comments
Open

build: package bat for NixOS #85

KingBain opened this issue Feb 28, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@KingBain
Copy link

KingBain commented Feb 28, 2024

Subject of the issue

Getting this error on NixOS when trying to make batter settings persist.

Running the command:
sudo /opt/asus-bat-manager/bin/bat persist --debug

gives this output.

open /etc/systemd/system/bat-hibernate.service: read-only file system

goroutine 1 [running]:
runtime/debug.Stack()
	/nix/store/ws97rhhdzacbl58y8crpvg517zqnbsll-go-1.21.5/share/go/src/runtime/debug/stack.go:24 +0x5e
main.main.func1()
	/home/kingbain/bat/main_linux.go:156 +0x55
panic({0x52f700?, 0xc00011ca50?})
	/nix/store/ws97rhhdzacbl58y8crpvg517zqnbsll-go-1.21.5/share/go/src/runtime/panic.go:920 +0x270
main.main()
	/home/kingbain/bat/main_linux.go:222 +0x1230

Any chance you could create a nixos package ?

@KingBain KingBain added the bug Something isn't working label Feb 28, 2024
@tshakalekholoane
Copy link
Owner

Any chance you could create a nixos package ?

I don't use NixOS so that could take a while. I am also not sure if that would work based on a previous issue.

@pepa65 did you ever get it working on NixOS?

@pepa65
Copy link
Collaborator

pepa65 commented Mar 1, 2024

NixOS is a different kettle of fish that I have never fully entered. I'll leave that to people familiar with the inner workings of NixOS, as it doesn't want you plainly writing to its system files.

@tshakalekholoane tshakalekholoane added help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Mar 1, 2024
@tshakalekholoane tshakalekholoane changed the title Will this work on NixOS ? pkg: package bat for NixOS Mar 1, 2024
@tshakalekholoane tshakalekholoane changed the title pkg: package bat for NixOS build: package bat for NixOS Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants