<simpson>
esotericnonsense: It takes special configuration. I am deep in something else and can't pull it up right now, but hopefully somebody will share their configuration.
<edomfjp[m]>
Hi, I am new to nix and nixos, I want to customize some configuration options in `grub.cfg` because I need to preload the usb and usb_keyboard modules, ie. in GRUB_TERMINAL_INPUT. However the default `hardware-configuration.nix` does not include these options, how can I override some of the default configurations? I looked at `boot.loader.grub.extraGrubInstallArgs` but I don't know which option this expression sets(I
<edomfjp[m]>
presume it is `GRUB_PRELOAD_MODULES`), is there a way to have more control over the configuration?
<esotericnonsense>
simpson: figured it out; override nixpkgs retroarch with cores = with super.libretro [ mgba ]; (for example)
<esotericnonsense>
not sure why they're not all included by default, I guess bloat. they just appear in the menu now. cheers
cmk_zzz_ has joined #nixos
cmk_zzz has quit [Ping timeout: 272 seconds]
nhs has quit [Ping timeout: 240 seconds]
<simpson>
Nice. And yeah, although "bloat" is not usually how we think of it. Rather, "all" is a difficult standard to satisfy, so instead the design is to keep things open and extensible.
jb55 has joined #nixos
<simpson>
This is very useful e.g. in the Python subsystem, when one might want to define one extra Python module which needs to be smoothly integrated into an environment.
<simpson>
(Or in Haskell, Ruby, etc.)
supersandro2000 has quit [Disconnected by services]
<energizer>
i'm trying to use this module https://bpa.st/OMTA and i'm getting "The option `services.btrbk.instances.settings.snapshot_preserve' does not exist." but afaict that's just like the example given
<infinisil>
I see, sounds like they should not do that ideally then!
<remexre>
agreed
<infinisil>
But digging deeper, how do the servers know whether it's ts or js?
<infinisil>
I guess they just serve `some-file.js` as `some-file-without-extension`, and they pass the js type in the header
<remexre>
yeah
<remexre>
and my understanding is that this CDN in particular is running a build process "for you"
<remexre>
(its point is to work around the node and deno ecosystems importing things differently)
<remexre>
well, node vs deno+browsers
Kilomomo has left #nixos [#nixos]
<remexre>
so presumably they know "is this just rewritten typescript being served, or is this the result of building it"
<infinisil>
Hmm
<infinisil>
remexre: The hashes come from deno right? So you can't just change them
<remexre>
right
<remexre>
at least not until a breakthrough in cryptography gives us a practical length extension attack for sha256 :P
<infinisil>
Yeah so I think you probably have to prefetch this information outside of Nix then
<gustavderdrache>
it looks like skypack just rewrites npm packages - so it's more or less "just" something like the unpkg cdn but with a more normalized interface
<infinisil>
Like do a `curl -I` for all of the urls to determine ts or js, store that in a json file
<simpson>
UniquelyElite: It depends on exactly what you want to do. If you want to write assembler and put it to GCC or LLVM, then a good text editor is actually the first tool you'll want to configure. If you're doing reverse engineering, check out Ghidra; we package it as `ghidra-bin`.
<UniquelyElite>
I had it setup on windows, but I cant remember if I installed something other than emu8086
<simpson>
UniquelyElite: `gcc your_awesome_program.s` will do it. Intel syntax by default, IIRC, but there's a flag for AT&T syntax if you really want it.
<UniquelyElite>
simpson oh ok
<UniquelyElite>
simpson: so if I type that command it should do the the same as 'as the_program.asm' on windows?
<simpson>
Largely, yeah. GCC's an entire toolchain; when you give it a single file of assembly, it'll generally do the right thing. (There's another toolchain, LLVM, which has a frontend with similar abilities.)
<simpson>
Mostly there's just a lot of stuff to unlearn. While there are IDEs for GNU/Linux, they're not mandatory and many folks do without.
<energizer>
is it possible to get a shell that emulates a systemd service execution environment?
waleee-cl has quit [Quit: Connection closed for inactivity]
<much>
after changing graphics from "ati" to "amdgpu" and a nixos-rebuild switch, the X-Server does not start anymore.
<much>
I get an error with systemd plymouth...service unit not found. Any ideas?
<patagonicus>
I have an x86 (as in 32-bit) system and neovim fails to install there because there's a test failing in the Python futures package. I'd like to disable python support in neovim now, but I can't figure out how to do that with an overlay - the neovim-unwrapped and wrapNeovim confuse me. If I try to set python = null; for neovim-unwrapped it just
<patagonicus>
tells me that it's an unexpected argument. How do I disable the python dependency for neovim?
<worldofpeace>
patagonicus: yeah, I just went through the code in nixpkgs and this whole thing looks very complicated
<worldofpeace>
seriously needs documentation
<worldofpeace>
I see that wrapNeovim, which is actually the legacy wrapper in neovim/utils.nix accepts `withPython` `withPython3`
malook has joined #nixos
much has quit [Ping timeout: 240 seconds]
<worldofpeace>
I'm seeing `pkgs.wrapNeovim pkgs.neovim-unwrapped { withPython = false; withPython3 = false; }` might be correct after inspecting the module
<worldofpeace>
but the nixos module does more setup than that if you look at it
<worldofpeace>
it's very inncorrect, at least to me, that the neovim module has only a few of the switch available that the wrapper allows you to configure
<patagonicus>
I don't use the module (yet), I'll try overriding neovimUtils
<worldofpeace>
I'm not sure that will work, but it seems that using `wrapNeovim` is the proper way to achieve this
<patagonicus>
Actually, using home-manager would also work. Won't have neovim for root then, but I think that's ok as long as I can finally update my system …
ahmedelgabri has joined #nixos
<worldofpeace>
patagonicus: yeah, I'd advise to use it. it's weird because on the pr to add the module into nixpkgs is from the author from the module in home-manager... sometimes this home-manager nixos crossover is very frustrating
grumble has quit [Quit: ACCORDING TO ALL KNOWN LAWS OF AVIATION THERE IS NO WAY A BEE SHOULD BE ABLE TO FLY ITS WINGS ARE TOO SMALL TO GET ITS FAT LITTLE BODY OFF THE GROUND THE BEE OF COURSE FLIES ANYWAY BECAUSE BEES DON'T CARE WHAT HUMANS THINK IS IMPOSSIBLE]
attila_lendvai has quit [Ping timeout: 272 seconds]
respawn_ has quit [Read error: Connection reset by peer]
<patagonicus>
How can you do overrides for haskell packages? Specifically I'd like to disable some optional features of git-annex to cut down on the number of dependencies.
rajivr has quit [Quit: Connection closed for inactivity]
kaliumxyz has joined #nixos
<viric>
hexa-: ah. does that impact VA-API being used?
<viric>
hexa-: I can't get my vaapi to work on firefox...
<viric>
jD/PlatformDecoderModule VA-API FFmpeg is disabled by platform
<viric>
DMA-Buf/VA-API can't be used, WebRender/DMA-Buf is disabled
pandion[m] has joined #nixos
srk has quit [Remote host closed the connection]
<viric>
webrtc + hw acceleration. never working.
srk has joined #nixos
berberman_ has joined #nixos
CMistress has joined #nixos
berberman has quit [Ping timeout: 260 seconds]
<CMistress>
Hi all. I'm trying to get my head around nixpkgs, think I'm getting there. One question though, how do I build arbitrary git repos I have locally? For example, I often end up working on different branches in a project and I would on other systems just "make && sudo make install". How do I achieve the same thing with nixpkgs? The examples I've seen so far all assume that the gitFetch part works on a release tarball.
nhs has joined #nixos
<tpw_rules>
you can just point src to a directory on your filesystem, ideally relative to the derivation
sss2 has joined #nixos
ahmed_elgabri has joined #nixos
<CMistress>
hmm. I just tried that: "do not know how to unpack source archive /path/to/my/project"
<nixosuser>
Strange that my config doesn't use builtins.storePath
<CMistress>
tpw_rules, thank you. that worked! I have a results directory pointing to the nix store, however, despite me running "rehash" at the shell, the program isn't being picked up by $PATH (other applications installed via nix-env are). Am i missing a step? Unfortunately the docs I'm looking at don't make it clear
domogled has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson>
CMistress: You can use nix-env if you want stuff on the path like that. Eventually, you might want to switch to nix-shell and direnv, to make temporary environments as needed.
<simpson>
I suppose it might depend on what the package is. I have vim installed via nix-env, for example; it's too important to be left without.
<hexa->
viric: so yeah, the libpci change looks somewhat related
<hexa->
gfx.blacklist.webrtc.hw.acceleration.decode.failureid is set to FEATURE_FAILURE_GLXTEST_FAILED
<hexa->
gfx.blacklist.hardwarevideodecoding.failureid as well
n-osborne has joined #nixos
<hexa->
viric: are you on 20.09 and X11?
Jd007 has quit [Quit: Jd007]
<charukiewicz>
I installed NixOS 20.09 on an old chromebook but didn't realize that (I think) I had to set networking.wireless.enable = true in order to get wifi to work. Now I can't turn that on since it tries to download something. Is there anything I can do to fix?
oxalica1 has joined #nixos
rb2k has quit [Read error: Connection reset by peer]
ahmed_elgabri has quit [Ping timeout: 260 seconds]
<charukiewicz>
hexa-: when I run `nixos-rebuild switch` after a nixos-enter I get complaints about "system has not been booted with systemd" and an error "Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory"
kayg04 has joined #nixos
<viric>
"is disabled by platform" comes from gettin false from widget::GetDMABufDevice()->IsDMABufVAAPIEnabled()
aleph- has quit [Quit: WeeChat info:version]
<hexa->
charukiewicz: you can use nixos-install again
<charukiewicz>
ah, that took like 8 hours to compile
<andoriyu>
any pointers on installing nixos with uefi loader and raid0?
<andoriyu>
raid0 being mdadm raid
growpotkin has joined #nixos
thongpv87 has quit [Remote host closed the connection]
mizu_no_oto has joined #nixos
nhs has joined #nixos
woffs has quit [Remote host closed the connection]
malook has quit [Ping timeout: 272 seconds]
<gchristensen>
andoriyu: you need a fat32 partition on a disk itself to act as /boot
<andoriyu>
did that
mizu_no_oto has quit [Ping timeout: 240 seconds]
<hexa->
viric: im on amdgpu, but I think after enabling media.ffmpeg.vaapi.enabled I don't see any problems anymore
<andoriyu>
Carved 256Mb partition on both disks, labeled one as boot. created partion for the rest on both. Created md0.
<hexa->
viric: still not sure how I can verify it is actually using hwdec
<andoriyu>
gchristensen I just don't understand how do deal with bootloader (kernel.loader)
<tomberek>
eadwu: i did a mass upgrade of the srht packages, but now my deployment has regressed and i'm not getting a response from endpoints
shibboleth has quit [Quit: shibboleth]
<gchristensen>
I don't understand the question, andoriyu
<andoriyu>
so the default configuration.nix, fails to mount root on startup.
<viric>
hexa-: as root I run intel_gpu_top
<viric>
hexa-: if Video shows up over 0%, good
<gchristensen>
andoriyu: maybe you can paste more information including your complete configuration, and see if anyone can help from there?
<viric>
hexa-: for amd, no idea. I also don't see problems disabling RDD and all that, and logs say like using VA-API buffers, but intel_gpu_top says Video 0% AND the cpu use is same as before
<hexa->
radeontop is not so verbose
<viric>
intel_gpu_top says Render/3D,Video,etc.
nhs has quit [Ping timeout: 240 seconds]
k0kada_t has quit [Remote host closed the connection]
rb2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tyrion-mx>
Hello, I am using nix flakes to build a container (like shown here: https://www.tweag.io/blog/2020-07-31-nixos-flakes/ ). However, when I start it with `nixos-container` it gives a timeout error. I wonder if it is possible to increase the timeout. For a declarative container I could use `containers.<name>.timeoutStartSec` but here I don't know what to do ... any hints?
growpotk- has joined #nixos
nhs has joined #nixos
meh` has joined #nixos
nhs has quit [Ping timeout: 240 seconds]
nhs has joined #nixos
<energizer>
I'm thinking about switching from morph to nixus. Are there any downsides? (cc infinisil)
<infinisil>
Hell yeah!
<infinisil>
(to downsides)
<energizer>
alright, gimme the lowdown
n-osborne has quit [Remote host closed the connection]
ahmedjolani has joined #nixos
<infinisil>
Main one is probably that it's barely maintained and has no real docs
rb2k has quit [Read error: Connection reset by peer]
<infinisil>
(I wish I had time for it though)
MarcWeber has joined #nixos
rb2k has joined #nixos
oh_lawd[m] has joined #nixos
<infinisil>
But it does work well in general, I've been using it for a while now
<infinisil>
energizer: What's your use case? For your personal setup?
SomeoneSerge has joined #nixos
<energizer>
yeah my personal computers
rb2k has quit [Read error: Connection reset by peer]
<ahmedjolani>
trace: To make project.plan-nix for cardano-node-src a fixed-output derivation but not materialized, set `plan-sha256` to the output of the 'calculateMaterializedSha' script in 'passthru'.
<ahmedjolani>
trace: To materialize project.plan-nix for cardano-node-src entirely, pass a writable path as the `materialized` argument and run the 'updateMaterialized' script in 'passthru'.
<ahmedjolani>
error: while setting up the build environment: getting attributes of path '': No such file or directory
<ahmedjolani>
(use '--show-trace' to show detailed location information)
<andoriyu>
alright I've figured it out
nhs has quit [Ping timeout: 246 seconds]
<ahmedjolani>
Sorry for the bad format, I didn't intend to post this on multiple lines. I am running the nix-build command...
<infinisil>
energizer: Other than some minor bugs, I can't give you any technical downsides to Nixus though :)
rb2k has quit [Read error: Connection reset by peer]
<energizer>
infinisil: alright, thanks for giving it straight
AmandaC has quit [Remote host closed the connection]
<infinisil>
Though maybe this: It's just a nix expression you `nix-build`, there's no fancy CLI wrapper
<infinisil>
(at the moment at least)
<infinisil>
Also: I do intend to use nixus for further experimentation, so don't expect it to be stable
AmandaC has joined #nixos
<energizer>
ok
<infinisil>
(btw there's also #nixus)
ahmedjolani has left #nixos [#nixos]
rb2k_ has joined #nixos
<energizer>
in that case i think i'll wait a few months and see how things turn out with nixops 2.0 and colmena before changing anything
<infinisil>
Sounds good!
<gchristensen>
I've used morph for a few things lately, and have found it pleasantly simple
<gchristensen>
though I wish they'd merge some PRs :)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jonreeve[m]>
tpw_rules: Do you know how to fix that?
<tpw_rules>
try running fsck
zupo has joined #nixos
<jonreeve[m]>
It says I'll cause severe filesystem damage by doing that.
nhs has quit [Ping timeout: 256 seconds]
<jonreeve[m]>
That doesn't sound like a good idea.
CMistress has joined #nixos
<CMistress>
Hey again all. I've got some real problems with perl packages and @INC. I've installed pkgs.perlPackages.JSONXS -- yet, "perl -MJSON::XS -e '1;'" returns an error claiming JSON/XS cannot be found. I'm guessing there's some system-wide @INC munging happening but it's not working for me. Anyone got any ideas?
<tpw_rules>
it should have an option to do a read only scan
<tpw_rules>
if it finds a problem, then you would have to boot a live usb or whatever to actually correct it
<hanetzer>
splain to me about nixos. still a binary dist, correct?
AmandaC has quit [Ping timeout: 264 seconds]
<tpw_rules>
oh hm apparently that is not true of ext filesystems. that's lame
<gchristensen>
source/binary hybrid. it uses binaries if they can be found, falls back to source transparently if they're not
nhs has joined #nixos
<hanetzer>
hrm.anything akin to gentoo's USE flags?
<gchristensen>
not the exact idea, no: you can't globally enable, say, png support for all your programs
<gchristensen>
you can tweak the definitions of individual packages though