<kei[m]>
Hello, I have been interested in using NixOS but my biggest concern is using Suckless software, which is configured by modifying and compiling the source code, which would not work properly under an OS like Nix. I've seen that some people override the packages with their own custom versions, but I feel like one is not supposed to do this. I've also been trying out some non-Suckless software to brace for the change in the case
<kei[m]>
that I cannot use them. What solutions do you have to this?
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ece3 has joined #nixos
<Yaniel>
kei[m]: overrides are there to be used when you have a reason to. configuration happening by changing the source and recompiling sounds like a good enough reason to me
<Yaniel>
they won't be rebuilt unless either the sources or dependencies change so that shouldn't be a big problem
<kei[m]>
<Yaniel "kei: overrides are there to be u"> wouldn't that interfere with the system retaining its "purity"? doesn't this go against the principle of having "unbreakable" software to which one can revert to previous versions?
<colemickens>
how?
Cale has joined #nixos
<Yaniel>
you can still do that if you either keep the old builds or the old sources around
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
<kei[m]>
ok
supersandro2000 has quit [Disconnected by services]
thelounge52 has joined #nixos
supersandro2000 has joined #nixos
<kei[m]>
i saw a thing about adding patches to software in the nix config itself but idk how, or if its necessary
<kei[m]>
maybe i'll just go with overrides or maybe i'll just try using other software (although what i'm using now lacks features that dwm had, for example (but it does have other stuff that dwm lacked so idk))
<ashkitten>
i don't know how systemd-boot works, honestly
<ashkitten>
never used it before
<Hank11>
Maybe I should use GRUB for now?
nhs has quit [Ping timeout: 265 seconds]
<klardotsh>
not sure if this has been mentioned here before, but is "Assertion failed: (S_ISLNK(st.st_mode)), function canonicalisePathMetaData, file src/libstore/local-store.cc, line 529." a particularly common issue on MacOS?
<klardotsh>
this is on a brand-new (literally first command ever run) EC2 mac1.metal instance, with "--darwin-use-unencrypted-nix-store-volume --daemon"
ahmedelgabri has joined #nixos
Qwerky has joined #nixos
nhs has joined #nixos
<Hank11>
ashkitten doesn't appear to work
<klardotsh>
nvm, found https://github.com/NixOS/nix/issues/3156 which is my issue, and the solution there does seem to fix (assuming I trash all files and rerun the installer, with the new volume in place)
<{^_^}>
nix#3156 (by angerman, 1 year ago, closed): daemon user fails to install on macOS
<gentauro>
I'm doing to testing with `curl` therefore I'm using `--write-out "%{time_total}"`. I would expect to see something like 0.23 seconds (measure unit is seconds taken from `man curl`). But what I see is a number like this -> 300767
<gentauro>
anybody else experienced that on `nixos`?
orivej has quit [Ping timeout: 240 seconds]
simba1 has quit [Ping timeout: 265 seconds]
alekhine[m] has joined #nixos
nhs has joined #nixos
<aforemny>
gentauro: Comparing it to `time`'s output of the command, it seems to print milliseconds for me as well.
<fuiltilt>
TIL (here) about "nix-shell -I nixpkgs=channel:nixos-unstable". Why doesn't that work for nix-env? "nix-env -I nixpkgs=channel:nixos-unstable -i musescore" installs MuseScore 3.5 like from stable, not 3.6 from unstable.
j2t has joined #nixos
<adisbladis>
fuiltilt: nix-env is a special case and directly understands the concept of channels
<adisbladis>
fuiltilt: So I think you want `nix-env -f channel:nixos-unstable -i musescore`
<adisbladis>
But you should really use -iA
<adisbladis>
,iA
<adisbladis>
I thought we had a bot feature for that, but apparently not
* cole-h
had to pull up the listing of commands for the bot to remember it
<cole-h>
lol
nhs has joined #nixos
Qwerky has joined #nixos
noudle has joined #nixos
orbekk has joined #nixos
thelounge52 has joined #nixos
nhs has quit [Ping timeout: 240 seconds]
<fuiltilt>
"nix-env -f channel:nixos-unstable -i musescore" worked, "nix-env -f channel:nixos-unstable -iA nixos.musescore" didn't. I'm guessing that I can use nix-channel to add unstable as a named channel, and it won't interfere with stable as long as I name it? Is that right?
Qwerky has quit [Ping timeout: 240 seconds]
attila_lendvai has joined #nixos
<cole-h>
What about `nix-env -f channel:nixos-unstable -iA musescore`?
<cole-h>
nixos.musescore is not the correct attrpath for musescore, while plain `musescore` is
<adisbladis>
(hot damn nix-env has confusing UX)
<fuiltilt>
Works. Thanks! Going back to the manpage to learn more about "-f"...
<cole-h>
Which is why I hate it and refuse to use it for things I don't have a copy-paste invocation for :D
<cole-h>
(e.g. I use it for ofborg's outpaths check, which I can copy-paste the invocation from GH, but nothing else)
<adisbladis>
cole-h: Yeah, I never ever use nix-env for anything
<Hail_Spacecake>
so I should be able to pull in the dependencies I need from tehre, right?
<Hail_Spacecake>
what's that command do?
<cole-h>
It builds in expression.
<energizer>
it uses the nixpkgs from your NIX_PATH and passes it into your function
<cole-h>
The expression being to import <nixpkgs> with an empty attrset, which then gives you all the top-level attrs of nixpkgs -- one of which is callPackage
<Hail_Spacecake>
okay that seems to be doing something, I"m not sure what
<cole-h>
callPackage is where the auto dependency resolution happens (don't know a better term) -- it gives you all the dependencies specified as an input for the file.nix you're trying to build
holymonson has quit [Client Quit]
<gentauro>
07:54 < aforemny> gentauro: curl tells me 46455, time tells me 0.055s. And 46455 * 10^-6 = 0.05. So it seems to be micro-seconds.
<gentauro>
aforemny: thx
<gentauro>
aforemny: but I'm just wondering why it's stated seconds in the `man`
attila_lendvai has quit [Ping timeout: 258 seconds]
<simonpe^1>
Something that bugs me with nix is that I don't have an easy way to show me the definition of a function. For example, say I want to see the source code for mkDerivation, how would I do that?
<simonpe^1>
I mean I can spend 5 minutes investigating the nixpkgs repo, but I want something better than that so I can do it in 5 seconds through my tty instead
rajivr has quit [Quit: Connection closed for inactivity]
sigmundv has joined #nixos
<energizer>
i agree. in practice i just use `rg 'mkDerivation =' pkgs/` and it pretty much works
<cole-h>
For most things you can pull up a repl in nixpkgs and then `:e attr`
alexherbo2 has joined #nixos
<simonpe^1>
cole-h: my repl doesn't have an :e option :/
<cole-h>
Really? How old is your nix :o
<energizer>
mine doesnt either, nixos unstable
<simonpe^1>
it's unstable since november or something
neuronuser1[m] has quit [Quit: Idle for 30+ days]
<energizer>
maybe it comes with flakes
<simonpe^1>
flakes disabled
<cole-h>
Ah, I guess nixStable doesn't have it
nhs has joined #nixos
<cole-h>
Goes to show what I know
<simonpe^1>
yeah, I can't use flakes due to it messes up stuff I need for work
zupo has joined #nixos
<cole-h>
Well, you can still `nix-shell -p nixUnstable --run "nix repl <nixpkgs>"` and use :e there ;)
<simonpe^1>
that actually works
<cole-h>
:)
<simonpe^1>
except I point <nixpkgs> to the derivation I'm working with
<klardotsh>
I see occasional mentions of this error in irc logs and on github, but seemingly no resolution: file system sandbox blocked open() of '/nix/store/r4aghdazpyy7c8i5wkvmdldr4pqgj086-libsodium-1.0.18/lib/libsodium.23.dylib'
ArdaXi has joined #nixos
fendor has joined #nixos
<klardotsh>
thoughts? I'm trying to port my nix-shell setup from Linux to MacOS (all of my coworkers are Mac people.... sigh) and testing my documentation on a mac1.metal EC2 box. I've tried both the upstream installer with the --darwin-etc-etc flags as well as Travis' updated installer from https://github.com/NixOS/nix/pull/4289. it's been one nightmare after another, but most of the nightmares have ended in
<{^_^}>
nix#4289 (by abathur, 9 weeks ago, open): darwin: encrypt nix volume if filevault is enabled
<klardotsh>
etiher a completely botched install, or nix-daemon not starting with the above error in /var/log/nix-daemon.log
<klardotsh>
I'm kinda surprised folks are having all this luck with https://github.com/NixOS/nix/pull/4289 and I'm.... not getting anywhere? there's folks on m1 arm boxes getting further than I am haha
<{^_^}>
nix#4289 (by abathur, 9 weeks ago, open): darwin: encrypt nix volume if filevault is enabled
<klardotsh>
might be a sign that 2am is a good time to call it a night and circle back tomorrow ~
Darkmatter66 has quit [Read error: Connection reset by peer]
Darkmatter66 has joined #nixos
Sigma has joined #nixos
<j2t>
Hi, could someone to a place explaining '<something>' syntax part? I see in repl that '<nixpkgs>' for example evaluate to a path.
<immae>
j2t: I don’t know of a "place" that documents it, but you should look at your NIX_PATH env var, which looks like `NIX_PATH=foo=https://someurl:bar=https://otherurl`. Then you’ll have access to <foo> and <bar>
Darkmatter66 has quit [Read error: Connection reset by peer]
Darkmatter66 has joined #nixos
nhs has joined #nixos
<immae>
j2t: I think my answer is incomplete though, I know there is some additionnal rule when your NIX_PATH looks like NIX_PATH=somepath:foo=https://someurl:bar=https://otherurl (note the absence of = sign before somepath)
<lovesegfault>
aforemny: maybe? if I write "install:\n cp foo.bar $(PREFIX)" will I end up with $out being foo.bar?
alexherbo2 has quit [Ping timeout: 240 seconds]
<aforemny>
lovesegfault: You are supposed to declare PREFIX = … in your Makefile. Then you can override it at the command line: `make PREFIX=$out`. You will end up with $out/foo.bar being a thing, yes.
<supersandro2000>
holymonson: I can't really build 110001 because rebuilding stdenv takes ages for me
nhs has joined #nixos
<aforemny>
lovesegfault: As far as I know there is not default install location for a Makefile and so you would declare PREFIX = /usr.
<s1341>
Mic92: hey. I'd like to consult on the whole android thing... if you have some time and patience.
<edcragg>
i can't work out how to use flutterPackages.mkFlutter to build a beta flutter, since the flutter-beta package was removed in unstable recently. it's not documented anywhere, does anyone happen to know what one-liner you need to build beta flutter now?
<drozdziak1>
I'd like to embed a simple shell script in my shell.nix that should become available on PATH once I run `nix-shell`. What's the simplest way to achieve that?
<s1341>
anyone available to consult on a derivation?
nhs has joined #nixos
ahmedelgabri has quit [Ping timeout: 258 seconds]
Diagon has quit [Quit: Leaving]
ahmedelgabri has joined #nixos
<azazel>
turion: add your user to nix.trustedUsers in configuration.nix
nhs has quit [Ping timeout: 258 seconds]
hiro98 has quit [Ping timeout: 246 seconds]
<adisbladis>
turion: Also, cross tends to have other failure modes than native building
<lemsip>
is it insane to use an overlay to use unstable gnome3.* packages if I want to use a newer gnome version than 3.36 in 20.09? Or should I just upgrade to unstable? My main motivation for this is to get clipboard working again, I was going to paste a link to a bug on gnome's gitlab, but I can't be bothered typing out the whole url.
<s1341>
but I'm struggling to find the place to 'callPackage' or otherwise embed my call to the bionic derivation I've made...
<s1341>
I need to be able to pass the androidndk variables through to the bionic package, so it knows where to get it's toolchain.
<ikskuh>
can someone tell me how to mount a samba share on nixos? i get a error message telling me that i'm missing /sbin/mount.cifs
<turion>
adisbladis: Thanks! I'm trying to reproduce a nixos/tests/agda.nix failure, so it's in a VM anyways. (https://hydra.nixos.org/build/136240205) So if I set boot.binfmt.emulatedSystems inside the VM config, then that will start aarch64 in the VM?
<s1341>
Ericson2314, Mic92 have helped me a little... but I need a little general nix expression writing help.
<lemsip>
turion: you might have to enable nested VMs for that to work.
jonatanb has joined #nixos
<adisbladis>
turion: No, but it will use qemu-user to emulate a "native build"
<adisbladis>
So you don't have to fix cross compilation issues, but instead get the same store paths as you would on a native aarch64 system
<turion>
I'm not sure I get it yet... is there anywhere to read up on all that?
fuiltilt has quit [Quit: WeeChat 2.9]
<turion>
I set boot.binfmt.emulatedSystems in my host system config so it will be able to "emulate" aarch64, but what kind of emulation are we talking about?
<turion>
Will it make nix-build --option system aarch64-linux work?
jonatanb has quit [Ping timeout: 265 seconds]
<adisbladis>
turion: Exactly
sigmundv has quit [Remote host closed the connection]
lsix1 has quit [Ping timeout: 258 seconds]
<adisbladis>
Otherwise Nix will fail as your system is presumably x86_64-linux
<s1341>
so my bionic derivation requires HOST go (among other things). I'm using licCrossChooser to select the bionic libc. My problem is that i have an infinite recursion as go tries to lookup it's cc. How do I tell go to use the host cc?
mmohammadi9812 has quit [Ping timeout: 240 seconds]
thelounge52 has joined #nixos
nhs has joined #nixos
<urkk>
It looks like extra-sandbox-paths is not expanding the ~ home path: error: while setting up the build environment: getting attributes of path '~/test': No such file or directory
simukis__ has joined #nixos
<urkk>
Is it possible to specify the sandbox path relative to $HOME?
dev_mohe has joined #nixos
simukis_ has quit [Ping timeout: 264 seconds]
thelounge52 has quit [Ping timeout: 258 seconds]
dev_mohe has quit [Client Quit]
nhs has quit [Ping timeout: 265 seconds]
ikskuh has left #nixos ["Leaving"]
nhs has joined #nixos
Hank87 has joined #nixos
D_ has quit [Ping timeout: 246 seconds]
nhs has quit [Ping timeout: 246 seconds]
D_ has joined #nixos
<Hank87>
This might be a stupid question but does nixos-install delete the contents of the relevant partitions
<tpw_rules>
iirc no but it does install the bootloader
arjen-jonathan has quit [Ping timeout: 258 seconds]
<evanjs>
The latter approach seems to work fine, I just wasn't sure when it's good to use unstable, vs adding to a list of patches on a project that hasn't had any official releases in a while
<evanjs>
and how many patches should be added before an unstable version should be considered, blah blah blah
<evanjs>
I'm almost always okay with it, but others have expressed concern before, and I wasn't sure if we have any rules of thumb or etc. re unstable versions and such
alexherbo2 has joined #nixos
erasmas has joined #nixos
<AmandaC>
Is there any way to specify what command from a derevation to run using `nix run`?
KarlJoad has joined #nixos
<KarlJoad>
Is there anyone here using a circuit simulator on NixOS? If so, can you link me to your setup? I can't get any of mine working.
<Orbstheorem>
Can I use the security wrappers mechanism to give a program a capability (such as CAP_SYS_PTRACE) but still have it run with the only effective user equal to my user instead of root?
<eyJhb>
KarlJoad: ngspice?
thelounge52 has quit [Ping timeout: 265 seconds]
a12l[m] is now known as a12l
hiro98 has joined #nixos
<noonien>
does anyone run ephemeral nixos-containers from configuration.nix? if so, how do you manage your logs?
<b42>
Orbstheorem: re capabilities: iirc yes, ping works like that
<noonien>
i also make the containers ephemeral, and have bind mounts for persistent data, and i'd like to also save the logs for the difference services running inside
supersandro2000 has joined #nixos
<Orbstheorem>
b42: Ping sets the euid to root no?
arjen-jonathan has joined #nixos
<Orbstheorem>
Or does our wrapper do something different ?
<b42>
Orbstheorem: the wrapper in /run/wrappers/bin/ doesn't seem to have setuid bit set (opposed to most of the other files)
<evanjs>
adisbladis: alright, went with unstable because of the security updates and didn't feel like adding a third patch. will see if anybody objects :P
<{^_^}>
[nix] @edolstra merged pull request #4514 → Include note about type of catched errors in tryEval documentation → https://github.com/NixOS/nix/pull/4514
<KarlJoad>
eyJhb: I haven't really tried that one yet, because I just needed quick simulations, but I guess I'll have to devote time to learning SPICE.
<gurkan[m]>
I am currently using element web and can't see older messages in this channel. Could you recommend any matrix client if you don't have problems scrolling up
lsix1 has joined #nixos
asheshambasta has quit [Ping timeout: 272 seconds]
<gchristensen>
I'm confused, I can't nix-instantiate this .nix expression which specifies meta for a derivation: https://gist.github.com/grahamc/f50de4a5d117fae282a78bae48cf36d9 it complains that I can't coerce a set to a string. any ideas what I'm doing wrong here?
<Ankhers>
infinisil: Quite possibly. I just want the most recent version of docker to test if the error is coming from the old version or if it is something else.
lsix1 has joined #nixos
simba1 has joined #nixos
nhs has joined #nixos
<infinisil>
Oh yeah that's nixpkgs where all the packages come from
<infinisil>
Ankhers: The nix expressions you're using determines where it comes from. In case you use `<nixpkgs>`, it uses the nixpkgs from your NIX_PATH, which probably comes from your channels
<jtojnar>
gurkan: element web shows history for me, when did you join the channel?
<jtojnar>
some rooms will only show you history after you have joined
<gurkan[m]>
Jan Tojnar: If you're asking when I've joined first: a week ago or so, can't remember. Every time when I open element, I can't see older messages than my last login time minus ~20 messages.
<KarlJoad>
eyJbh: SPICE may be standard, but I was using QUCS for my simple circuit simulations before (before I switched to NixOS). Now I can't get that particular program to simulate successfully.
<kolaente_>
Has anyone here have tried getting the Browserstack local testing binary to work under nixos?
<ronthecookie>
cole-h: does CI not run on all packages in unstable?
<cole-h>
ronthecookie: CI runs on all PRs, ever.
<ronthecookie>
oh i was looking at the github ci and not at hydra, ooopsie
vidbina has quit [Ping timeout: 256 seconds]
<cole-h>
However, it only builds the changed package and its maybe-existent associated tests. It's possible bumping package A breaks package B that depends on package A.
<veleiro>
i was looking for physical reading material for nix but it doesnt exist, then i realized there's a lot i still need to go over and how much there is in that paper
<l-as>
you can just print the manuals can't you
jess| is now known as jess
<veleiro>
hey thats a good idea too
<veleiro>
lol
ahmedelgabri has joined #nixos
kolaente_ has quit [Quit: WeeChat 2.9]
<l-as>
Does anyone here know if the examples for `nix eval` are supposed to fail when using flakes? `nix eval nixpkgs#hello` says `flake 'flake:nixpkgs' does not provide attribute 'packages.aarch64-linux.defaultPackage.aarch64-linux', 'legacyPackages.aarch64-linux.defaultPackage.aarch64-linux' or 'defaultPackage.aarch64-linux'`.
<veleiro>
i'm having a problem with up to date nixpkgs and aarch64 as well
<veleiro>
"No Android SDK tarballs are available for system architecture: aarch64-linux" and i dont have any android stuff in my config
ahmed_elgabri has quit [Ping timeout: 264 seconds]
lsix1 has joined #nixos
<l-as>
I had that when I tried to use adb on aarch64
<l-as>
I think you can try looking at the dependency graph for your system and see what's wrong
<l-as>
`nix-store -q --tree $(nix-instantiate '<nixpkgs/nixos>' -A system)` IIRC
fendor has quit [Remote host closed the connection]
<jtojnar>
gurkan: weird. For me, today, it is much slower than the already slow usual but I can still scroll to months ago.
juliusdeane has joined #nixos
<juliusdeane>
any reason why appimage-run would complain "Not an AppImage file" ?
<juliusdeane>
I'm trying to run a file that most certainly _is_ an AppImage
<alienpirate5>
dmesg has the following entry: `nixos-rebuild[1334]: segfault at 61c700000000 ip 000061c73d26c9ec sp 00007d3ef2115a70 error 4 in ld-2.32.so[61c73d25e000+20000]`