<cheater>
zybell: i'm not sure what you're asking?
<zybell>
the client can run in any dir.
<cheater>
zybell: "hint" was the package name of the first package, and "freer" is the package name of the second package. is that what you wanted to know?
<zybell>
yes
<nikola_i>
hi, i think i upgraded nix-2.0 incorrectly and am unable to use nix commands (nix-env, nix-shell). i followed the intructions at https://nixos.org/nix/manual/#chap-installation to do a single user installation
<cheater>
so my question now is why does this work for disabling the test suite of hint, but not the test suite of freer
<infinisil>
I just don't understand why there isn't even a working ftp server on nixos, at least i can't find one
<nikola_i>
cheater: i dont have a ~/.profile. is there a way to install nix2.0 for all users
<samueldr>
ah, so it's foreign to nixos and you want the "standard~ish" in foreign systems, right?
<samueldr>
well, between foreign and nixos
<infinisil>
Yea
<cheater>
nikola_i: then check /etc/profile
<cheater>
or /etc/bash.bashrc
<zybell>
i would have to search the log,but the *package* had another name. you used a "checkbox" called hint *in* that package to change the behavior.
<infinisil>
samueldr: It's for me and my friends who also run a linux, I'm trying to create a server and client script anybody can run to present his pictures to the others
<infinisil>
And I need some way to easily transfer files
<infinisil>
And ncat (almost netcat but more powerful) corrupts the pictures :/
<cheater>
zybell: no, the package was called hint.
<cheater>
zybell: there was no field called hint related to it. that was the name of the package
<infinisil>
samueldr: I think ncat already uses tcp and it still gets corrupted (I tested on 3 networks, it's the same problem everywhere)
<jackdk>
infinisil: python -m SimpleHTTPServer?
<infinisil>
But maybe it's an ncat bug because changing it slightly makes it work (but then it's not as useful for me)
<infinisil>
jackdk: Hmm.. that might be something
<cheater>
mpickering: let me check
ericsagnes has joined #nixos
<zybell>
I had this script that grabbed an od-dump and massaged it into a set of echo|tr commands file>text>file. and you could transfer the lines in any order.
muzzy has joined #nixos
<zybell>
infinisil^
sigmundv has quit [Remote host closed the connection]
<cheater>
indeed it is mpickering thank you
<infinisil>
zybell: So it could retransfer the corrupted lines?
goibhniu has quit [Ping timeout: 256 seconds]
<cheater>
mpickering: so i have something like freer = fetchFromGitHub { ... } -- do i change that to freer = dontCheck fetchFromGitHub { ... } ?
<mpickering>
yes
<cheater>
cool :)
nikola_i has quit [Quit: WeeChat 1.7.1]
<zybell>
you could do a retransfer, but you had to delete corrupted lines by hand. but possibly an elaborate grep regex would work.
astiles has quit [Remote host closed the connection]
sigmundv has joined #nixos
astiles has joined #nixos
<zybell>
it is after all very styled text.
<zybell>
possibly a checksum (wasnt implemented then) could be added
<epta>
is there anyone who can help with nix question? I usually generate default.nix and shell.nix using cabal2nix, and everything works fine on osx, but on nixos now I have the error: attribute ‘binary-orphans_0_1_7_0’ missing
<nikola_i>
hi, i am unable to remove user packages after upgrading to nix 2.0. i keep getting errors `error: opening lock file '/nix/var/nix/temproots/2522': Permission denied`
<nikola_i>
this is causing some kde to confuse with the old plasma libraries
<catern>
hey #nixos, now that nixUnstable is commented out there's no way to set fromGit for the Nix package
<catern>
so you can't compile Nix from a git tag
<catern>
does anyone see a workaround?
<catern>
AFAICT, there's no way to use override{,Attrs,Derivation} to set fromGit = true; for the nix package
<zybell>
infinisil How large are the files you want to transfer?
Tehnix has joined #nixos
<infinisil>
zybell: A couple MB
ryanartecona has quit [Quit: ryanartecona]
<infinisil>
SimpleHTTPServer will work well though
Tehnix1 has quit [Read error: Connection reset by peer]
<cheater>
mpickering: that worked! thanks a lot!
blankhart has joined #nixos
muzzy has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @catern opened pull request #39093 → nix: add a fromGit argument so it can be overridden → https://git.io/vpTQf
<lostman>
infinisil: thanks! was just looking at nixos/firewall.nix and didn't see it there
<mahalel_>
hey, new to nixos and loving it so far. on arch I had a bash script to set a custom resolution & refresh rate for my monitor on login, just wondering how can i achieve the same via the configuration.nix file
jperras has joined #nixos
<infinisil>
mahalel_: I think `services.xserver.displayManager.sessionCommands` would work the best
<Ralith>
between Nix enthusiastically gobbling up gigabytes of RAM and practically everything being a goddamn webapp I can barely use my computer any more
<infinisil>
Ralith: Has been happening to me too a lot recently..
<infinisil>
Ralith: I hate to say it, but I bet rewriting it in Rust would make it better :P
leothrix has joined #nixos
<mahalel_>
thanks so much infinisil
jperras_ has quit [Ping timeout: 264 seconds]
<Ralith>
infinisil: I dunno, I think it's halfassed IO mostly to blame
<Ralith>
so much stuff being copied into memory in full for no good reason
<Ralith>
seems like a massive regression from nix 1
<infinisil>
Ralith: Ah yeah I think clever said something about closure contents being loaded into C++ strings
<Ralith>
I don't seem to be able to upgrade my user environment at all now
<infinisil>
Which sounds horrible
<infinisil>
Ralith: Restarting helped for me
<infinisil>
Which surprised me because I thought linux would free stuff automatically
pie__ has joined #nixos
sigmundv has quit [Quit: Leaving]
pie_ has quit [Ping timeout: 264 seconds]
Lears has quit [Remote host closed the connection]
roconnor has quit [Remote host closed the connection]
roconnor has joined #nixos
sehqlr has quit [Ping timeout: 264 seconds]
Supersonic has quit [Ping timeout: 240 seconds]
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
Lears has joined #nixos
<cheater>
hi
<cheater>
i have another issue!
<cheater>
when building a library (fake), my pc runs out of memory. i was told in #haskell to run ghc with these options: -j1, +RTS -M500m -RTS. How can i set those ghc options for a library?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
furon has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « docbook-xsl-ns: cleanup last patch »: https://git.io/vpTbR
fragamus has joined #nixos
blankhart has joined #nixos
<iqubic>
Are there any good guides on getting nix to build my haskell projects and skipping the middle man of cabal or stack?
<fearlessKim[m]>
the nixpkgs manual doesn't explain how to create a module (e.g. referencing module-list.nix)
<fearlessKim[m]>
would be cool for nix --version to display the git hash. returning 2.0 when I am on nixUnstable is not helpful. hum nixUnstable points to nix :/
<v0latil3>
https://nixos.org/nixos/nix-pills/working-derivation.html these articles always start with "source ~/.nix-profile/etc/profile.d/nix.sh" but I don't have that I think because I'm just using the system profile by default? Do I want to nix-env -i nix or something?
linuxdaemon has quit [Ping timeout: 260 seconds]
<v0latil3>
Hmm I guess that works ok
<nur0n0>
v0latil3: if i understand correctly that is only needed to make the nix tools visible to your shell if you are running a non nixos distro
<cheater>
rotaerk: check in #haskell, we've figured it out
<v0latil3>
I thought maybe I should make my own user account it's own per user nix to write a derivation?
<nur0n0>
v0latil3: by "that" I mean: "source ~/.nix-profile/etc/profile.d/nix.sh"
<v0latil3>
Yeah I understood you
drakonis_ has quit [Quit: Leaving]
jperras_ has quit [Read error: Connection reset by peer]
ryantrinkle has quit [Ping timeout: 264 seconds]
linuxdaemon has joined #nixos
Fare has quit [Ping timeout: 265 seconds]
rauno has joined #nixos
schoppenhauer has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @adisbladis merged pull request #36456 → ELK 5.6.9 & 6.2.4 & fixes for elasticsearch6 and logstash6 not starting up → https://git.io/vAN3M
stqism has quit [Quit: Like 3 fire emojis lit rn 🔥🔥🔥]
blankhart has quit [Quit: WeeChat 1.9.1]
stqism has joined #nixos
sehqlr has quit [Ping timeout: 260 seconds]
stqism has quit [Client Quit]
sehqlr has joined #nixos
stqism has joined #nixos
stqism has quit [Client Quit]
kerrhau has quit [Ping timeout: 240 seconds]
stqism has joined #nixos
stqism has quit [Remote host closed the connection]
stqism has joined #nixos
<achambe>
anyone here use apparmor ? does it work well with nixos?
Rusty1_ has quit [Quit: Konversation terminated!]
Fare has quit [Ping timeout: 264 seconds]
mk-fg has quit [Ping timeout: 256 seconds]
MP2E has quit [Remote host closed the connection]
boomshroom has joined #nixos
<boomshroom>
Hello!
astiles has joined #nixos
vrdhn has quit [Quit: Leaving]
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
vrdhn has joined #nixos
<boomshroom>
Does anyone have experience building Redox on NixOS?
vrdhn has quit [Client Quit]
vrdhn has joined #nixos
<unlmtd>
boomshroom: I havent but rust on nixos is pretty much only done in nix-shell for now. so call all the things you need into a nix-shell and fire up the make scripts, it should 'just work'
astiles has quit [Ping timeout: 265 seconds]
<boomshroom>
unlmtd: I've done rust development before, but right now, I'm trying to build newlib and it has a rust crate embeded in the c code.
<unlmtd>
so you need gcc perhaps?
<unlmtd>
like I said, use the nix-shell to import all the things into your environment
<boomshroom>
unlmtd: Cargo is having trouble downloading the dependencies because it can't find the ssl certificates. (Which makes sense since derivations are supposed to be deterministic.)
<unlmtd>
cargo isnt deterministic
rauno has joined #nixos
<boomshroom>
unlmtd: That's why the dependencies are a separate build step normally.
<unlmtd>
I dont know why those certs arent in your system, but theres a nixos option to add trustes certs manually
<unlmtd>
so youre doing this with a nix expression then?
<boomshroom>
unlmtd: I'm pretty sure they are on my machine, but they aren't available to the build (I want a derivation for each redox tool.)
<unlmtd>
well then you need to include the certs pkg
<boomshroom>
unlmtd: "This site can’t be reached" "nest.pijul.com refused to connect."
<boomshroom>
unlmtd: The problem is I can't find the certs package.
<unlmtd>
yea youre right, must be down for maintenance
<unlmtd>
pkgs.cacert
<unlmtd>
`nix search certificates`
<boomshroom>
unlmtd: Thank you.
<unlmtd>
I hope you can get this working
<unlmtd>
redoxOS is awesome
<vaibhavsagar>
has anyone gotten nixos working on the espressobin?
<unlmtd>
then the next step will be to write nixRedoxOS
reinzelmann has joined #nixos
<boomshroom>
unlmtd: I was using the website. The main reason I'm doing this is 1. to compile Redox, and 2. to compile arbitary Nix derivations for redox (including Nix itself).
oahong has quit [Quit: 暂离]
Guanin has quit [Ping timeout: 240 seconds]
<unlmtd>
ahh yes, nix on redox would be nice
<boomshroom>
unlmtd: Nix on EVERYTHING would be nice. ;)
pirateking has joined #nixos
<pirateking>
anyone know how to set your nixos version and/or nixpkgs to master?
<boomshroom>
pirateking: You mean more unstable than unstable?
<pirateking>
i mean surf the waves of chaos
<boomshroom>
pirateking: I like your style!
ma27 has joined #nixos
Guanin has joined #nixos
ryantrinkle has quit [Ping timeout: 240 seconds]
<samae>
pirateking: sudo nixos-rebuild -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz test ?
<samae>
If you like broken things and you need your PC to heat the room
<pirateking>
let's see. if you don't hear from me in 5 minutes then tell my wife she has to find someone else
<boomshroom>
samae: That's probably better than what I was going to do. I was going to suggest a local git repo that you'd update manually.
<samae>
:D
mahalel_ has quit [Ping timeout: 260 seconds]
<boomshroom>
pirateking: Timer set.
<samae>
Well, my line is wrong
jrolfs has quit [Ping timeout: 246 seconds]
lostman has quit [Quit: Connection closed for inactivity]
<boomshroom>
"fatal error: stdint.h: No such file or directory" WAT?!
iqubic` has joined #nixos
<boomshroom>
It's been 5 minutes. Something might have happened to pirateking
<pirateking>
no nothing
<boomshroom>
pirateking: You're alive! ^_^
iqubic has quit [Read error: Connection reset by peer]
<vrdhn>
makefu, the libz still not found ; I'm trying to run the rustup , which downloads a prebuild binary .
jackdk has quit [Ping timeout: 260 seconds]
<vaibhavsagar>
vrdhn: what did you do instead on installing it with nix-env?
<vaibhavsagar>
*of
<makefu>
vrdhn: unfortunately this is a typical issue with nix and how nix works: https://nixos.wiki/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F
<vrdhn>
vaibhavsagar, nix-shell -p zlib
<vaibhavsagar>
vrdhn: that's essentially the same thing, which is why you're getting the same result
<vaibhavsagar>
did you read the wiki page makefu linked?
<makefu>
binaries are one of the messier parts of nix because if tools just assume that they find libraries somewhere in /usr/lib then this assumption is normally wrong on nixOS
<sphalerite>
I do use nix-env on nixos, and if you're sharing a system with other people you basically have to
<monotux>
uh...nixos-shell '<nixpkgs>' -A ghc throws an exception that nixos daemon has run out of memory. :/
lord| has joined #nixos
reinzelmann has quit [Quit: Leaving]
<vaibhavsagar>
weird, I'm not having this issue with 18.03
<vaibhavsagar>
which is what I'm running right now
<sphalerite>
monotux: how much memory do you have?
<monotux>
4 gb
<sphalerite>
monotux: yeah it's probably just not enough for nix 2.0. Some memory consumption bugs have been fixed since the release, but they're not in any point versions :/
<sphalerite>
monotux: also, are you sure nix-shell '<nixpkgs>' -A ghc is what you want?
<monotux>
I want a haskell repl, that is what I want
<Akii>
vaibhavsagar: ok, uninstalled all
<sphalerite>
then you want nix-shell -p ghc
<Akii>
so, what is this about not using nix-env
<Akii>
I need to install packages
<Akii>
what's the preferred alternative
asuryawanshi has joined #nixos
<sphalerite>
Akii: some people prefer to put all their stuff in systemPackages.
<Akii>
and Qt probably
<monotux>
sphalerite, that's where I started
<monotux>
sphalerite, same error now
<sphalerite>
:/
<monotux>
is there any semi-fixed nix version in unstable? I have both 18.03 and unstable as channels
<sphalerite>
nixUnstable in nixos-unstable might work
blahdodo has quit [Ping timeout: 256 seconds]
<monotux>
I'll give it a try, I can install it as a user and not only as a system package right?
coot has joined #nixos
<sphalerite>
unfortunately for nix you need to do it systemwide
<sphalerite>
by setting nix.package
<monotux>
ah
thc202 has joined #nixos
<sphalerite>
Akii: personally I do use nix-env, but only with one expression, so I have essentially declarative management of my user profile
joehh has quit [Ping timeout: 256 seconds]
<Akii>
well I don't see why this would f up my window manager
<Akii>
but whatever
<Akii>
I think I got it working now
joehh has joined #nixos
<Akii>
now I'm not authorized to run slack
blahdodo has joined #nixos
rosa has joined #nixos
<Akii>
ah well nevermind
<Akii>
works from console
<Akii>
weird weird
<Akii>
but can't start any of those from the KDE menu welp
rosa has quit [Client Quit]
<sphalerite>
does the journal say anything about why that might be?
<sphalerite>
Is it maybe because they're not in your user profile anymore?
nckx has quit [Ping timeout: 265 seconds]
<Akii>
I uninstalled everything I installed with nix-env
<Akii>
then I put the most essential things into the config
<Akii>
I restarted
vandenoever has quit [Ping timeout: 260 seconds]
<Akii>
that's all I know
<Akii>
these bins are in a different path now
<sphalerite>
oh, hm
<Akii>
which is I guess to be expected
<sphalerite>
maybe remove ~/.cache and log in again
<sphalerite>
oh boy. error: null pointer cast to ref
Ariakenom has quit [Ping timeout: 260 seconds]
vrdhn has quit [Quit: Leaving]
<Aleksejs>
Hi, after I updated to 18.03, teamviewer doesn't work anymore. It shows message that teamviewerd is not started however I tried to restart it and I can see that it's running
<monotux>
damn, still running into out of memory when running on unstable
<monotux>
checking github issues...
<Akii>
thanks, the cache thing worked wohooo
<Akii>
they expect me to be productive today so I'm really out of time
<Akii>
but I must say I already wondered how this declaritive system is upposed to work with nix-env
<hyper_ch2>
Mic92: I think I'll have this weekend a little look at 4.16 and the initramfs to see why pool import doesn't work
<hyper_ch2>
but since I'm no techie, not sure if I'll find the cause
<fearlessKim[m]>
when enabling network manager with nixops, it seems like interfaces don't get IP (I can see it thanks to qemu-agent). Does enabling networkmanager disable dhcp ? that' weird
<Akii>
vaibhavsagar: where would I put it? inside the list?
<Akii>
etu[m]: thanks! I'll try that later as last resort
<vaibhavsagar>
Akii: yes
<etu[m]>
I just have nixpkgs as a submodule in git that I commit to my repo from time to time. And If I need temporary patches that are fixed in upstream master. I just put them in there and not commit it and wait for nixos-unstable to move forward :)
jgt has joined #nixos
Synthetica has joined #nixos
<Akii>
vaibhavsagar: didn't work
<Akii>
maybe I need to do something else?
<Akii>
reinstall vagrant perhaps?
<vaibhavsagar>
Akii: what do you mean by "didn't work"?
<Akii>
I get the same error message
knupfer has joined #nixos
jtojnar has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Akii>
ok got it, left vagrant in as depndency
<Akii>
whooo
<Akii>
exciting
<Akii>
thank you again vaibhavsagar
<vaibhavsagar>
my pleasure!
iyzsong has joined #nixos
vandenoever has joined #nixos
jacob_ has quit [Quit: Lost terminal]
rosa has quit [Quit: rosa]
rosa has joined #nixos
<Mic92>
hyper_ch2: All I can say is that /dev/zfs is not created, maybe a manual modprobe is missing. This is what was added to dracut lately.
rosa has quit [Client Quit]
<Akii>
oh my, failed to open /dev/vboxnetctl: No such file or directory
<Akii>
it just doesn't stop :/
<hyper_ch2>
Mic92: I had a short look at the initramfs but it seemed modprobe was in there... I'll try to investigate on the weekend
<{^_^}>
→ 8796fac5 by @samueldr: Parses `<option>` and `<literal>`.
<{^_^}>
→ b0a88c1c by @samueldr: Parses `<filename>`.
ma27 has joined #nixos
paraseba has quit [Ping timeout: 260 seconds]
sigmundv__ has joined #nixos
Lears has joined #nixos
<Akii>
etu[m]: thank you
<Akii>
works like a charm
<{^_^}>
[nixos-homepage] @edolstra pushed commit from @woffs to master « install: use tar -f - »: https://git.io/vpkZi
<{^_^}>
[nixos-homepage] @edolstra closed pull request #211 → install: use tar -f - → https://git.io/vpTw5
nick_l has joined #nixos
mahalel_ has joined #nixos
sigmundv__ has quit [Ping timeout: 256 seconds]
vandenoever has quit [Ping timeout: 264 seconds]
sigmundv__ has joined #nixos
paraseba has joined #nixos
mahalel_ has quit [Remote host closed the connection]
rosa has joined #nixos
<nick_l>
How is it possible that I can ssh into an AWS box, do nslookups, but cannot even ping 8.8.8.8? wget of a website also doesn't work.
i-am-the-slime has quit [Quit: Konversation terminated!]
coot has quit [Quit: coot]
<unacceptable>
nick_l: DNS in local network but no outbound internet connection from that box/
<unacceptable>
s/\//\?/g
<{^_^}>
[nixpkgs] @basvandijk opened pull request #39104 → release-18.03: ELK 5.6.9 & 6.2.4 & fixes for elasticsearch6 and logstash6 not starting up → https://git.io/vpkn7
mahalel_ has joined #nixos
<mahalel_>
did anyone have luck getting the steam controller to work in nixos?
ckauhaus has joined #nixos
nD5Xjz has quit [Ping timeout: 256 seconds]
srdqty has quit [Ping timeout: 260 seconds]
rosa has quit [Quit: rosa]
rosa has joined #nixos
srdqty has joined #nixos
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
ckauhaus has quit [Remote host closed the connection]
mahalel_ has quit [Remote host closed the connection]
<zybell_>
mahlel: seems like a job for steam runner.
<zybell_>
mahlel_: seems like a job for steam runner. Didnt want to shorten you;-)
<unacceptable>
nick_l: I meant in a general sense, I mean that does make sense to me that a box might be able to resolve hostnames / dns entries but not communicate with them
<sphalerite>
Alling: what does nixos-version say?
<Alling>
sphalerite: That's 17.09... Hummingbird.
<sphalerite>
nick_l: any problem with ignoring the error? :)
<sphalerite>
Alling: apparently you haven't run nixos-rebuild boot --upgrade since switching the channel over :)
<sphalerite>
Alling: (or nix-channel --update then nixos-rebuild boot and reboot)
<Alling>
sphalerite: I did run nixos-rebuild switch --upgrade and then sudo reboot though.
kerrhau has quit [Ping timeout: 276 seconds]
<sphalerite>
Aaah what about sudo nix-channel --list?
<Alling>
sphalerite: Aaaa that again! I should have used sudo.
<Alling>
xD
<sphalerite>
:)
srdqty has quit [Ping timeout: 264 seconds]
<sphalerite>
this really is an annoying UX bug which ought to be fixed.
Izorkin has quit [Read error: Connection reset by peer]
ckauhaus has joined #nixos
srdqty has joined #nixos
bkchr has joined #nixos
jgt has joined #nixos
klntsky has joined #nixos
<nick_l>
sphalerite: It is just a matter of not loading cfg80211.
<nick_l>
sphalerite: that moduile should be black listed on all server images.
<sphalerite>
nick_l: oh ok. But no, it shouldn't really.
<nick_l>
sphalerite: why not?
<Dezgeg>
rather it needs to be figured out what is causing cfg80211 to be autoloaded
<sphalerite>
because some people might want to run server hardware with a wifi chip.
<infinisil>
Hey aszlig and domenkozar, a question for you as beets maintainers
<nick_l>
Dezgeg: I agree.
ckauhaus has quit [Ping timeout: 246 seconds]
<Dezgeg>
at least I don't see it getting loaded in a qemu VM
astiles has joined #nixos
<infinisil>
ashkitten: domenkozar: I seem to not be able to filter based on paths anymore. So `beet ls path:/path/to/file.mp3` doesn't return anything even though the path exists, is present in the database and beet ls lists it otherwise with that path
<Alling>
sphalerite: There! I have v3.0.0 of mitmproxy now. How can I check which is the newest one on different Nix channels?
<infinisil>
aszlig: domenkozar: And I clearly remember it working before, that's what my music rating setup depends on
<sphalerite>
ugh, why does grub-install call fsync after *each* file copy
coot has joined #nixos
iyzsong has joined #nixos
markus1189 has joined #nixos
datakurre has quit [Ping timeout: 256 seconds]
ckauhaus has joined #nixos
ent has quit [Ping timeout: 240 seconds]
seequ__ has quit [Ping timeout: 255 seconds]
Dezgeg has quit [Ping timeout: 256 seconds]
seequ has joined #nixos
ent has joined #nixos
datakurre has joined #nixos
Mateon3 has joined #nixos
rosa has quit [Quit: rosa]
RaphaelLullis[m] has joined #nixos
Mateon1 has quit [Ping timeout: 264 seconds]
Mateon3 is now known as Mateon1
ckauhaus has quit [Ping timeout: 276 seconds]
adamt has joined #nixos
xy2_ has quit [Ping timeout: 264 seconds]
Dezgeg has joined #nixos
<adamt>
Hiya. I have a 17.09 host that i want to upgrade to 18.03. I built the host locally, and nix copy'ed the result of the derivation to the host. After calling `sudo /nix/store/...../bin/switch-to-configuration switch` on the host, no new boot entries are created. /boot is mounted RW. What could be wrong?
<adamt>
(the switch appear to work, so it's probably only the boot entry that is missing...)
<infinisil>
adamt: You can just use nixos-rebuild for that, it has the --target-host flag exactly for that
mounty has quit [Read error: Connection reset by peer]
jtojnar_ has joined #nixos
jtojnar has quit [Ping timeout: 256 seconds]
jtojnar_ is now known as jtojnar
<infinisil>
While I don't know the reason of this not working just yet, calling binaries from /nix/store directly is often not a good idea
markus1189 has quit [Ping timeout: 264 seconds]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
ThatDocsLady_ has joined #nixos
markus1189 has joined #nixos
<adamt>
infinisil: It has worked fine for rolling out upgrades during the 17.09 cycle
<adamt>
It's just the upgrade that appear to do weird stuff.
<adamt>
is nixos-rebuild --target-host something new? Didn't notice it before.
<infinisil>
Has been there all along
lebel_ has joined #nixos
lebel_ has quit [Client Quit]
lebel has joined #nixos
lebel has quit [Client Quit]
lebel has joined #nixos
<adamt>
infinisil: Can it eval a nix expression instead of just reading a configuration.nix-file?
<lebel>
quick question, what's the proper syntax to define a port number range in networking.firewall.allowedTCPPorts = [ ]; ?
ckauhaus has joined #nixos
<infinisil>
adamt: I don't think so, but you can use `-I nixos-config=/custom/path.nix`
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adamt>
infinisil: Since that would need a file per host, I'll have to get the other method working instead. Thx though.
alex`` has joined #nixos
<infinisil>
adamt: Huh why?
xcmw has joined #nixos
<adamt>
infinisil: It seems not-so-nice to generate a file per host, when we currently (basically) have a nix expression that creates the host config, and then just give it a list of host names to deploy to.
<adamt>
config as in nix expression, a bit like nixops
<infinisil>
Well you can just use multiple invocations of nixos-rebuild?
ckauhaus has quit [Ping timeout: 256 seconds]
<lebel>
infinisil: I guess you can have networking.firewall.allowedTCPPortRanges along networking.firewall.allowedTCPPorts = [ ]; and they are working together?
<infinisil>
lebel: Yeah sure
<adamt>
infinisil: But I still have to redo the entire deployment method to generate actual configuration.nix-files per host
<lebel>
I was kind of expecting a syntax similar to bash or with seq.
<tilpner>
adamt - You can wrap <nixpkgs/nixos> if you really want to
<adamt>
tilpner: What do you mean?
<lebel>
(ie. for i in {1..100}; do ...; done or for i in $(seq 1 100); do ...; done;
Rusty1_ has joined #nixos
<infinisil>
adamt: I honestly don't get why so many people try to do everything in a single command, files are so much better in general
<adamt>
infinisil: We don't do anything in a single command, except for the nix build-call that builds all our hosts.
<infinisil>
Especially because Nix is very flexible, and you can share anything you want between multiple files
<tilpner>
Oh
<tilpner>
I was writing a follow-up question, but you answered
<infinisil>
lebel: Yeah, you can with something like `networking.firewall.allowedTCPPorts = lib.range 1 10;` I guess
<ottidmes>
I still have one place in my config where infinite recursion is happening when I configure it the way I want. Right now I just workaround it by hardcoding the values, but I do not like that and I also don't like not understanding why the infinite recursion occurs. Could someone help me figure out why this is causing infinite recursion:
<infinisil>
lebel: Which actually looks better than the portRanges thing haha
<sphalerite>
lebel: using allowedTCPPortRanges makes it generate a single firewall rule per range which is more efficient. Probably doesn't make a measurable difference usually but if you have big ranges it might
xcmw has quit [Ping timeout: 256 seconds]
rauno has quit [Ping timeout: 264 seconds]
<adamt>
infinisil: Anyways, if switch-to-configuration shouldn't be called from the nix-store, what would then be the purpose of it?
<infinisil>
ottidmes: Whoa, that is weird
mounty has joined #nixos
alexteves_ has joined #nixos
<infinisil>
adamt: Well it can of course, but I feel like there might be problems with garbage collection or so. And I just don't feel like debugging unintended usage
cufisz has joined #nixos
Lisanna has quit [Remote host closed the connection]
jgt has joined #nixos
lord| has quit [Quit: WeeChat 2.1]
<adamt>
infinisil: Let me ask another way. How can it be called in a way that make sense, without doing from the nix store? Sure, you could probably call switch-to-configuration from the active config, but that doesn't make sense. :-)
Mateon1 has quit [Quit: Mateon1]
<tilpner>
I call it from the store too, worked fine so far
Mateon1 has joined #nixos
<infinisil>
adamt: Well nixos-rebuild does that for you
<adamt>
tilpner: It worked fine here when deploying updates to 17.09, but it fails for me to update to 18.03, so it's my first problem ever with it. :-)
<infinisil>
adamt: I'd just try it with nixos-rebuild first, if the problem is gone then we know that was the problem
<cufisz>
oops, the error it produces is `ModuleNotFoundError: No module named 'pip._internal'`
<Rusty1_>
^
<lebel>
infinisil, you have have more than one allowedTCPPortRange = [ ]; or can you do something like: [ { from = 1714; to = 1764; } { from = 10000; to = 10050; } ];
<lebel>
*can you, I mean.
<tilpner>
adamt - Have you done it manually? And it outputs like usual?
<sphalerite>
adamt: I don't think live-switching configurations across stable versions is supported. Tyr using switch-to-configuration boot and rebooting.
<sphalerite>
lebel: yes you can
<adamt>
infinisil: It seems silly to redo my entire setup to test with nixos-rebuild, if it just ends up calling the same switch-to-configuration command.
<ottidmes>
infinisil: It caused to question my whole codebase for potentially causing the loop, only to figure out its some weird dependency loop being created in fileSystems and users, but unfortunately I cannot pinpoint the actual cause of the loop
<ottidmes>
infinisil: Thanks for looking into it :) I managed to reduce it the snippet I posted, and if I use something like: options = [ "uid=${toString config.boot.loader.timeout}" ]; no loops, but I am not sure if it actually is specific to config.users, or that others might also cause similar loops
iyzsong has quit [Read error: Connection reset by peer]
Tucky has quit [Quit: WeeChat 2.1]
<adamt>
tilpner: Yeah, i was going to reboot, but after a normal switch (not boot) followed by a reboot, the kernel version didn't change, so the new configuration wasn't set for boot
Tucky has joined #nixos
<sphalerite>
Is there a quick and easy way to generate a kernel config that includes less stuff that I don't need?
periklis has quit [Ping timeout: 256 seconds]
<sphalerite>
I need to apply a kernel patch and don't want to wait long for rebuilds
fragamus has joined #nixos
<ottidmes>
infinisil: Removing the options check in fsBefore (from lib) removes the recursion, but that does not help me in my understanding and is not a proper fix
<adamt>
calling `switch-to-configuration boot` didn't add a new boot entry either. Hmm.
Izorkin has joined #nixos
<gchristensen>
adamt: do you have a boot partition?
nD5Xjz has joined #nixos
<adamt>
gchristensen: Yeah, and it's mounted rw
nuncanada has joined #nixos
<gchristensen>
adamt: if you unmount it, are there files "underneath" it, in the /boot directory?
<gchristensen>
I don't know if this is the problem, but I know this has been a problem
<sphalerite>
gchristensen: hm that looks very minimal and probably excludes stuff I do need as well :/ thanks though
<infinisil>
ottidmes: The trace shows the options services.rpcbind.enable (which is false by default), but when i remove the rpcbind module from the module-list.nix a different error occurs that mentions the option nixpkgs.config
magnetophon has joined #nixos
<gchristensen>
sphalerite: that is the beauty of linux kernel config, is a "minimal" config is wrong for some people. there is no magic "be just minimal enough"
<angerman>
has anyone tried to use ec2 spot instances as distributed build slaves?
<gchristensen>
angerman: sure, hydra.nixos.org for one
<ottidmes>
infinisil: I did try: services.rpcbind.enable = mkForce false; to be sure, but I haven't removed it yet, will try that too now
<sphalerite>
gchristensen: yeah, of course. But I'd like to be able to make sweeping generalisations like "disable all gpu drivers except i915 and radeon", "disable all filesystem drivers except zfs and ext4", stuff like that
<infinisil>
ottidmes: "error: The option `services.rpcbind' defined in `/home/infinisil/src/nixpkgs/nixos/modules/tasks/filesystems/nfs.nix' does not exist."
<angerman>
gchristensen: is there some documentation on it somewhere? (e.g. also persisting state in case the machine goes down)
<infinisil>
after removing it and trying to instantiate config.nixpkgs.config
odi has quit [Ping timeout: 256 seconds]
<adamt>
gchristensen: Nope, the root fs doesn't have anything in /boot
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
<gchristensen>
angerman: what does it mean to persist state?
TweyII has joined #nixos
<angerman>
gchristensen: the machines nix store? maybe I’m not understanding something with the spot instances… but it seems like they could go down at any point in time.
<ottidmes>
infinisil: I just commented out the config block of the module, that seems to have fixed it, let me double check
<gchristensen>
they can, but typically the way this would work is your remote builder doesn't have any state, rather the builders reaching out to it handleit
<infinisil>
ottidmes: the rpcbind one?
<ottidmes>
infinisil: yeah, commented out the config block of the rpcbind module file
<gchristensen>
and your build leader machine pushes things to a binary cache things built
<TweyII>
Why is carnix giving me: SqliteFailure(Error { code: NotADatabase, extended_code: 26 }, Some("file is not a database"))
<gchristensen>
angerman: having individual machines persisting their state sounds not good, imo
kisik21 has quit [Quit: Lost terminal]
<infinisil>
ottidmes: Ugh I hate infinite recursion so much
<ottidmes>
infinisil: Hmm, so weird, that indeed seems to fix it, but still not sure what the hell is happening. I mean I have "services.rpcbind.enable = mkForce false;" and it has "mkIf config.services.rpcbind.enable"
<sphalerite>
I don't know what it's actually for but hey
kisik21 has joined #nixos
<infinisil>
ottidmes: It needs to evaluate the config.services.rpcbind.enable, that's the only thing it can be
<infinisil>
I'll be away for a bit, maybe try looking at all the definitions of that options
<tilpner>
TweyII - If ~/.cargo/nix-cache is a text file, just mv it away
jperras_ has joined #nixos
<infinisil>
option*
<tilpner>
(I got the same error a while ago, carnix author wondered how I got that file in that path)
<ottidmes>
infinisil: Its my most hated thing when programming together with the progation of errors in dynamicly typed programming languages where some implicit assumption you made breaks at point A, but you get the error and at point C in your program, i.e. I hate it when you need to start doubting your own code base
<TweyII>
Yeah, that seems to be a TOML file
<TweyII>
Works now, thanks :)
<TweyII>
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:335:21
<TweyII>
Well
<TweyII>
‘Works’
jperras has quit [Ping timeout: 276 seconds]
vaninwagen has quit [Ping timeout: 240 seconds]
<TweyII>
Probably because I have a workspace instead of a single crate
<joepie91>
ottidmes: not specific to 'dynamically typed programming languages'
<joepie91>
this is true for any kind of runtime error really
<joepie91>
(and runtime errors do not need to be about typing, nor do type errors in a dynamically typed language need to be runtime errors per se)
jperras has joined #nixos
<joepie91>
come to think of it, also not really anything to do with error propagation :P
<ottidmes>
joepie91: Sure sure, I could have been more precise, but I hoped you got my underlying point
<__monty__>
joepie91: Do you have an example of non runtime type errors in a dynamically typed language?
<joepie91>
ottidmes: yeah, I get the frustration, I've just become allergic to people misassigning problems to language design features :P too much tribalism in programming-language-land and this kind of stuff tends to fuel it
jperras_ has quit [Ping timeout: 260 seconds]
<joepie91>
__monty__: theoretically you can have a dynamically typed language be AoT-compiled (or even just analyzed as a build step, without necessarily translating the source), track possible typing permutations and find (depending on language design) most or all typing errors upfront
<joepie91>
(that's a thing I'm working on with JS, actually, experimentally)
dbmikus_ has joined #nixos
<ottidmes>
joepie91: It just happens that dynamically typed programming languages are more prone to those kind of errors, or maybe I should say, the only two languages I stopped using due to that happening to often happend to be dynamically typed
<infinisil>
ottidmes: I'm thinking about making a nix debugger for my bachelors thesis
sphalerite has quit [Quit: WeeChat 1.9.1]
<joepie91>
ottidmes: right
<ottidmes>
infinisil: please do :P
<infinisil>
That would definitely be something worthwhile
<adamt>
I just tried doing an unattended nixos 18.03 install (yes, instead of upgrading :P), and nixos-install from 18.03 tries to fetch nix-cache-info from cache.nixos.org, even when installing using the --closure argument. It even says that it has to download 0.00MiB. How do I avoid that?
<joepie91>
TweyII: yeah
astiles has joined #nixos
<TweyII>
adamt: --option binary-caches ""
<joepie91>
TweyII: what I'm working on is a little more extensive than what Flow does, and with 'zero annotations' as a design goal
<joepie91>
(also isn't just about type checking, but error detection more broadly, and code analysis in general for eg. AoT compilation)
<TweyII>
Interesting!
<LnL>
adamt: or --option build-use-substitutes false
<joepie91>
TweyII: and to be completely honest, I think people put way, way, WAY too much focus on typing
<joepie91>
it's only a small, relatively irrelevant subset of error scenarios, yet people make massive tradeoffs to try and solve that subset, without really considering broader strategies for solving larger sets of errors
<__monty__>
joepie91: Maybe I misunderstand dynamically typed. How much static type checking can you do before you have to start calling it statically typed?
<adamt>
What's the practical difference between build-use-substitues false, and no binary caches? Technically we don't use a binary cache (everything is pushed to the hosts) so maybe disabling all binary caches are most correct
knupfer has joined #nixos
<TweyII>
joepie91: That depends entirely on your type system
lebel has quit [Remote host closed the connection]
<joepie91>
__monty__: 'dynamic typing' generally just means that types are not specified upfront, but rather a result of whatever happens at runtime; you can still statically analyze this most of the time, with complex-enough implementations
ryantrinkle has joined #nixos
<joepie91>
you're essentially writing half a runtime at that point, but eh :)
<joepie91>
TweyII: I've never found that a very convincing argument
<TweyII>
Types in general are just a means of propagating static information through your code; what you choose to propagate is up to you
<joepie91>
yes, but that doesn't change that typing systems are an expensive solution
<joepie91>
ie. not what you want to default to without investigating other solutions first
astiles has quit [Ping timeout: 255 seconds]
<bkchr[m]>
Hi, does anyone has some nice nix magic for cross compiling libraries for Android?
<joepie91>
and there's not enough of that happening :)
<__monty__>
Are there other solutions that can give the same level of guarantees?
<joepie91>
__monty__: so half the problem is exactly that question - "the same level of guarantees"
<joepie91>
this isn't a useful metric or goal to shoot for
xcmw has joined #nixos
odi has joined #nixos
sphalerite has joined #nixos
<TweyII>
They don't have to be: there are lots of languages that have very light-weight type systems, that can infer a lot of the interesting info for you
<joepie91>
on a purely academic level, sure, it may be an interesting question to ask, but it doesn't necessarily match up with what developers on actual software need
<joepie91>
because there are more considerations than just "the same level of guarantees"
<sphalerite>
what'd I miss?
<joepie91>
it may be perfectly acceptable in many cases, for example, to have slightly less guarantees for a much lower overall cost (taking into account remediation time of the remaining issues)
<__monty__>
joepie91: Imo giving up soundness is exactly one of these pragmatic decisions.
<infinisil>
adamt: I think build-use-sustitutes false also excludes ssh substituters, which no binary caches doesn't exclude
<TweyII>
And conversely, with enough type info you can infer a lot of run-time code and save effort that way
<joepie91>
and what I'm interested in is not "finding solutions that are equivalent to typing systems", what I'm interested in is "helping developers write more reliable code faster and end up with less maintenance"
<joepie91>
and I've not seen any convincing evidence that typing is the direction to look in for that :)
<joepie91>
either way, I don't really have much time for an extensive discussion at the moment
<__monty__>
I haven't seen an alternative to type systems that gives anywhere near the reliability type systems give.
<kisik21>
How does one setup a binary cache?
<TweyII>
Any system of tracking that info ends up equivalent anyway — just with lots of inference
<adamt>
infinisil: But if there's no binary caches, where would it get those substitutions from?
<kisik21>
Assuming I have NixOS.
szicari has joined #nixos
<TweyII>
kisik21: ‘nix copy’ and/or nix-serve
<TweyII>
kisik21: nix-serve will serve up the system's store over HTTP
<kisik21>
Wow, one command... Cool.
<joepie91>
TweyII: I'm not necessarily just looking towards technical solutions
<TweyII>
kisik21: nix copy can be used to push things into the cache, if they're not built there
ThatDocsLady_ has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
ThatDocsLady_ has joined #nixos
<kisik21>
Ö
<kisik21>
Awesome
rosa has joined #nixos
<joepie91>
TweyII: __monty__: either way, I'm sure I'll link things in here once I've gotten somewhere :P
<kisik21>
One cache could serve for all arches because of hash names, right?
<TweyII>
joepie91: That's fair. There's certainly lots of work to be done on programming UX
<adamt>
kisik21: Be careful not to serve the systems store over HTTP, if you have secrets in the store.
drewr has quit [Remote host closed the connection]
pi3r has joined #nixos
<TweyII>
joepie91: I look forward to it :)
<kisik21>
So one needs to block user configuration if it contains passwords.
<TweyII>
kisik21: No and no
<pi3r>
I have the following nix shebang and I can't see what's wrong with it:
<TweyII>
It'll *work* for any arch, but many things will be uncached
<kisik21>
Can Nix cross-compile?
<sphalerite>
kisik21: yes but there are various gotchas to it
<kisik21>
For example?
<sphalerite>
kisik21: the hashes are all different so you can't mix cross-compiled stuff with natively-compiled stuff
nD5Xjz has joined #nixos
<sphalerite>
well not just cross-compiled stuff, cross-built stuff.
<kisik21>
So if you cross-compile, you can only cross-compile. Right?
<TweyII>
joepie91: Yeah, I know this article quite well. I just think types have a big role to play in that
<sphalerite>
yes
<kisik21>
Oh man
<kisik21>
Gonna be painful
ckauhaus has joined #nixos
<kisik21>
How about distcc support?
<sphalerite>
also many packages don't work cross-built yet
<kisik21>
Same problem?
seanparsons has joined #nixos
<sphalerite>
distcc doesn't work at all because of purity issues. Nix can distribute builds itself though.
<kisik21>
Cool. So setting up an RPi cluster with build system is realistic.
<gchristensen>
you don't _have_ to be just-cross or just-native compiled. you'll just end up doing extra compilation. it'll be pretty seamless though.
<kisik21>
gchristensen: and long
<gchristensen>
yes
<sphalerite>
gchristensen: how would you go about mixing cross-compiled with native packages?
<gchristensen>
you do your cross stuff and then you're on the box and you do your native stuff
<sphalerite>
oh right
<sphalerite>
yeah but they're still entirely separate dependency trees
<pi3r>
LnL: using double quote makes it work. Thanks. I was dealing with two errors (double ghc and single quote). Thanks to you, I have managed to overcome both ;-)
<gchristensen>
sure but you're not locked in to one or the other
<sphalerite>
so there's often no benefit to it
<sphalerite>
yes, that's true
<ottidmes>
infinisil: I now understand it: https://0bin.net/paste/7EzFkUEoUJdIgwSU#gKm-COhpGLQgAzJ2yhqP2jksRSYCD+Y6IqzTJb0RdRe I guess my fix of removing the options check in fsBefore is not that terrible, since a.mountPoint == b.device would fail anyway for the file systems for which the options check would fail
<gchristensen>
I've sometimes thought about if it could be done that when doing cross compilation, something generate an overlay which emits "emacs = /nix/store/cross-compiled-emacs; gnumake = /nix/store/cross-compiled-gnumake" so it would be less compilation
__Sander__ has quit [Ping timeout: 265 seconds]
drewr has joined #nixos
MP2E has joined #nixos
jmiven has quit [Quit: co'o]
jmiven has joined #nixos
<angerman>
gchristensen: Thanks for the response. I completely missed it. So I’ve been thinking about adding spot instance as an x86_64-linux to nix.buildMachines, so that I can offload building linux expressions.
asuryawanshi has quit [Ping timeout: 240 seconds]
<angerman>
gchristensen: usually I run them through a nix-docker, but with my current MacBook (late 2012), that is not very feasible, and I’m looking for something that would allow me to build, while not rendering my system unusable.
<angerman>
gchristensen: and maybe I’ve been misunderstanding something, but I though the remote build would try to build the full expression before copying the build artifacts back. If the expression ends up building multiple packages, wouldn’t that mean that I loose the already built packages in case the spot instance is shut down?
<adamt>
disabling binary caches fixed my first problem, thx.
<gchristensen>
I think it will copy all the built things back to your laptop, so when you got a new instance, you'd copy the things back over to the new instance
<nick_l>
Does NixOS have a fancy motd implementation like Ubuntu has?
<etu[m]>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<angerman>
gchristensen: copy to ec2 -> build (say 10pkgs) -> copy from ec2, right? so if the spot instance is terminated while building. But already had built, say 5pkgs, I’d lose that progress?
<nick_l>
I want to see something like "Welcome to $network... <NixOS logo>. Misuse is punishable by law...".
<gchristensen>
angerman: hmm not sure
ckauhaus has quit [Remote host closed the connection]
<nick_l>
I am already using users.motd.
<gchristensen>
but that is definitely an edge case
<angerman>
gchristensen: ahh :-) ok. Just though I was to stupid to understand some basics :D
ckauhaus has joined #nixos
<gchristensen>
angerman: you're not
<angerman>
gchristensen: are there hooks I can utilize to spin up/destroy the ec2 instance?
warbo has joined #nixos
<gchristensen>
in Nix?
reinzelmann has quit [Quit: Leaving]
leat has quit [Ping timeout: 256 seconds]
<angerman>
gchristensen: for `nix build`.
ckauhaus_ has joined #nixos
<gchristensen>
I don't know, but ... I wouldn't go that route if I coud avoid it
<sphalerite>
nick_l: nixos's MOTD is shown by PAM, it doesn't do anything fancy, just dumps the motd file to standard output
<gchristensen>
it would likely cause too much churn and be too slow to start the instances on demand
<angerman>
gchristensen: so you would start them by hand if needed… run `nix build` and terminate by hand as well?
<angerman>
alright.
<gchristensen>
terminate by hand or just let them be, spot instances can be extremely cheap. m1.small or m1.medium being like $5/mo
<angerman>
gchristensen: sure… but if I don’t need them. Termination seems fine :D
ckauhaus has quit [Ping timeout: 256 seconds]
<angerman>
gchristensen: also, do they auto-restart? (I haven’t used them yet) It sounded like they are terminated after at most a few hours anyway?
<gchristensen>
I don't think they do auto restart, but you could make a scaling group to do it
<gchristensen>
I have many spot instances which have run without interruption for well over a year
ckauhaus_ has quit [Ping timeout: 256 seconds]
<angerman>
gchristensen: impressive.
<angerman>
gchristensen: thanks for letting me know.
<gchristensen>
yep
<gchristensen>
the m1 series is very stable btw :)
<angerman>
gchristensen: thanks I’ll give that a try.
<angerman>
gchristensen: and then I just need to improve my cross infra to the point where I can build macOS packages on a linux system :D
<sphalerite>
wow. After 4 years, I've finally got both graphics chips in the macbook pro working.
magnetop` has joined #nixos
bkchr has quit [Ping timeout: 256 seconds]
<angerman>
sphalerite: so you had one working for 2 years already? ;-)
magnetophon has quit [Ping timeout: 240 seconds]
<sphalerite>
angerman: no, the intel one has been working almost the whole time
odi has quit [Read error: Connection reset by peer]
leat has joined #nixos
odi has joined #nixos
erasmas has joined #nixos
periklis has joined #nixos
lonokhov has joined #nixos
chreekat has joined #nixos
magnetop` has quit [Ping timeout: 256 seconds]
wangoe has quit [Quit: WeeChat 1.9.1]
<chreekat>
I've updated NixOS to 18.03, and now my trusted binary caches (specified as --option binary-caches "https://cache.nixos.orghttps://local-cache") are being ignored as 'untrusted' when I run a nix-shell. Is there some config setting that changed name or usage?
<jtojnar>
enableDebugging still does not disable optimizations?
<ottidmes>
chreekat: Maybe add them to trusted-substituters?
<chreekat>
ottidmes: they are there, via nixos configuration's nix.trustedBinaryCaches
<chreekat>
This worked until the 18.03 upgrade :)
jwynn6 has joined #nixos
<chreekat>
(I see them in the generated /etc/nix/config.nix fwiw)
<chreekat>
nix.conf rather
<chreekat>
and the keys are in trusted-public-keys
<adfaure>
Hello everyone, I have question please. I want to turn an option off: https://nixos.org/nixos/options.html#services.gnome3.chrome-gnome-shell.enable. So turn it off into my configuration.nix (I am running nixos). My rebuild fail because I have a conflicting definition. Can you help me please ?
<adfaure>
error: The option `services.gnome3.evolution-data-server.enable' has conflicting definitions, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/x11/desktop-managers/gnome3.nix' and `/etc/nixos/configuration.nix'.
<ottidmes>
adfaure: Use mkForce (from lib)
ckauhaus has joined #nixos
<ottidmes>
adfaure: e.g. services.gnome3.evolution-data-server.enable = mkForce false; (assuming you have with lib; at the top and at least lib in the attrset, like so { config, lib, pkgs, ... }:)
<adfaure>
ottidmes: It is working, thank you. It is a workaround or the good way to go N
<adfaure>
?
<adamt>
Which uid's should we give our own system users? The nixos id list mentions values above 399 as being different from 1-399. What is that about?
<adamt>
Should we just use uid=399, uid=398, uid=397 and so on, and hope not to get a conflict with something from upstream, or can 400-999 be used freely?
<ottidmes>
adamt: It's the proper way to solve the issue you were having. It's part of the NixOS module system, some option types, like the type lines, will merge multiple definitions, but others will not. The module system allows you to assign priorities to values and that's how conflicting definitions can be resolved and how defaults are implemented (they just have very low priorities)
<abrxs>
i thought it was 499, not 399 though... perhaps it's got a different meaning in nixland :)
<chreekat>
My binary caches worked after I added myself to trusted-users, but that seems like a sledgehammer
<adfaure>
ottidmes: Thank you
adfaure has quit [Quit: Page closed]
<adamt>
abrxs: But that document doesn't say anything about which ranges of UID's i can expect the upstream modules and packages to create, allthough it kinda does say that 500- and up should be safe.
<adamt>
nice link though
<ottidmes>
adamt: I just have been using 350-399 hoping for no conflicts
odi has quit [Read error: Connection reset by peer]
odi has joined #nixos
dbmikus_ has quit [Quit: WeeChat 2.1]
dbmikus has joined #nixos
ckauhaus has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 256 seconds]
periklis has quit [Remote host closed the connection]
drakonis has joined #nixos
xy2_ has joined #nixos
hyper_ch2 has quit [Ping timeout: 260 seconds]
ckauhaus has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
ThatDocsLady_ has joined #nixos
odi has quit [Ping timeout: 264 seconds]
warbo has quit [Ping timeout: 256 seconds]
adamt has quit [Ping timeout: 255 seconds]
freeman42x]NixOS has joined #nixos
adamt has joined #nixos
niklob has joined #nixos
niklob has quit [Max SendQ exceeded]
adamt is now known as Guest47798
niklob has joined #nixos
Asmadeus has quit [Ping timeout: 264 seconds]
Guest47798 has quit [Changing host]
Guest47798 has joined #nixos
Guest47798 is now known as adamt
jperras has joined #nixos
xcmw has joined #nixos
<adamt>
So regarding UID's, it seems like 500-999 is a nice interval, since useradd doesn't touch it for system users or for normal users, just like on most other distributions apparently. I just hope it's true in practise as well :-)
rosa has quit [Quit: rosa]
humanoyd has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<sphalerite>
daveo: did you format it as MBR maybe?
<daveo>
sphalerite: it was a working nixos installation. Then I tried making a thumb drive with 18.03 minimal and booting from it. I changed my BIOS settings and everything stopped working. no formatting done
<daveo>
sphalerite: trying to get another screenshot real quick
<daveo>
sphalerite: I was wrong I mount it on /dev/boot/efi per the directions
<sphalerite>
ah right
<sphalerite>
it doesn't really matter as long as it works :)
<daveo>
sphalerite: yup. about to find out :)
humanoyd has joined #nixos
<daveo>
sphalerite: so I think I will continue to commit my config to a repo and begin rsyncing all my data and home directory to a remote backup server. Any recommendations from that side. NixOS is incredible
endformationage has joined #nixos
sehqlr has joined #nixos
<{^_^}>
[nix] @edolstra pushed 3 commits to 2.0-maintenance: https://git.io/vpIOL
<{^_^}>
→ 5be4f48c by @NinjaTrappeur: nix repl: Fix multiline SIGINT handling.
<{^_^}>
→ b61ea7b2 by @shlevy: initPlugins: Fix dlopen error message.
<{^_^}>
→ b1ade668 by @edolstra: Handle arguments in $EDITOR
<daveo>
sphalerite: think I have to chroot before I do this
<tnks>
sphalerite: good to know. thanks.
<sphalerite>
daveo: chroot for what?
<daveo>
sphalerite: error: getting status of ‘/etc/nixos/i3config-extra-example.nix’: No such file or directory (use ‘--show-trace’ to show detailed location information)
<sphalerite>
oh yeah that's an annoying bug
<sphalerite>
you should be able to use nixos-enter to get all the chroot stuff set up
<sphalerite>
then just run nixos-rebuild boot
<daveo>
right
<daveo>
gotta upgrade then
<daveo>
I can do that
<sphalerite>
no, I don't think it's fixed yet
<sphalerite>
actualaly what you can do is just use a relative path in your config file
<sphalerite>
that makes sense to do anyway
<daveo>
thats a better idea!
sehqlr has quit [Read error: No route to host]
sehqlr has joined #nixos
pie_ has joined #nixos
<daveo>
I'll have to commit and push that. Maybe submit a pull request on the repo it came from as well
<daveo>
error: getting status of ‘/etc/nixos/i3config-extra-example.nix’: No such file or directory (use ‘--show-trace’ to show detailed location information)
largerror has joined #nixos
<daveo>
error: string ‘./i3config-extra-example.nix’ doesn't represent an absolute path, at /mnt/etc/nixos/i3wm/i3config.nix:64:3 (use ‘--show-trace’ to show detailed location information)
largerror has left #nixos ["Konversation terminated!"]
<daveo>
sphalerite: I seem to recall that during the install the usage on the /nix/store climbs. I have 6.0 Gb for the unionfs and may need more. I will cross that bridge later
<clever>
betaboon: that is what ruby-json depends on, not what depends on it
<clever>
betaboon: you want to run the command against the top-level storepath that nixops printed at the very end of a build
<betaboon>
clever: ah ok, gotcha xD
Ariakenom has quit [Ping timeout: 256 seconds]
bkchr has joined #nixos
<daveo>
sphalerite: so far it has used 40% may need to install less...
bennofs has quit [Quit: WeeChat 1.3]
drakonis has quit [Read error: Connection reset by peer]
<betaboon>
clever: thanks, now i found out what pulls in the dependency
MinceR has quit [Ping timeout: 265 seconds]
MinceR has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
bkchr has quit [Quit: Konversation terminated!]
<bkchr[m]>
Can I create a nix environment with packages build for android?
freeman42x]NixOS has quit [Ping timeout: 246 seconds]
<niksnut>
yes I think so
<ij>
how did I not notice that!
sehqlr has joined #nixos
<ij>
What's also funny is that the commit message has a blatant mistake. :P
<TweyII>
ij: Yep, didn't exist
<TweyII>
Hah, I was about to point that out
<TweyII>
After I double-checked there was no builtins.string
Fare has joined #nixos
jperras_ has joined #nixos
jperras_ has quit [Read error: Connection reset by peer]
lonokhov has quit [Quit: bye]
jperras has quit [Ping timeout: 256 seconds]
ottidmes has quit [Quit: WeeChat 2.0]
rosa has joined #nixos
ryanartecona has joined #nixos
jgt has quit [Read error: Connection reset by peer]
chessai has joined #nixos
jgt has joined #nixos
<monotux>
uh...how do I only build the server part of mumble? if I try to just enable the murmur service it wants to install wayland and friends due to the client :/
xcmw has joined #nixos
<bkchr[m]>
clever: can you help me on how to setup a cross compilation environment? Perfectly I would just like to set the targetPlatform
<Akii>
Currently thinking about how I go about deploying my service to NixOS. I need a system user, that user needs an SSH key for cloning a private repo. I can't find how to configure that at all, just authorized keys. I'd just dump the private key in the config since it's only a deployment key anyway. Guess that's not possible?
<Akii>
Something something ssh-agent mixed with writing a certain file somewhere would do the trick I guess..
<clever>
bkchr[m]: i havent worked with the new cross-compile stuff that Sonarpulse has put in
<daveo>
I'm installing nixos and put too many packages in my list so my /nix/store is full. I want to safely try afain with less packages. Do I just delete the /nix/store
<clever>
daveo: run nix-collect-garbage to clean it up
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Sonarpulse>
see xburstutils in all-packages.nix
<Sonarpulse>
and lib/systems/examples.nix
<bkchr[m]>
Sonarpulse: can you help me on cross compilation? Is there something like mkDerivation with targetPlatform?
xcmw has joined #nixos
<Sonarpulse>
what are you trying to do?
<Sonarpulse>
{build,host,target}Platform are always defined
<tilpner>
monotux - I don't think you can, with the current expression :/
<tilpner>
monotux - Well, murmur will not build the client, but it will still bring wayland
<{^_^}>
[nix] @NinjaTrappeur opened pull request #2089 → Parse mixed nested attrpaths and top-level sets in an order independant way → https://git.io/vpIWZ
<bkchr[m]>
I want to create a environment with nix-shell where I could compile a rust library for android that needs some other packages
kisik21 has quit [Ping timeout: 264 seconds]
<monotux>
tilpner, had I known more of nix I'd probably try to fix it but I'll have to live with the unnecessary libraries installed
<Sonarpulse>
bkchr[m]: hmm ok
<Sonarpulse>
other packages are tools or c libraries?
jperras has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
periklis has quit [Ping timeout: 264 seconds]
<bkchr[m]>
yep
pirateking has joined #nixos
<monotux>
man I love installing nixos on servers, it is fast and easy compared to freebsd which I normally prefer
<pirateking>
after making a local channel, does anyone know why nixos-rebuild won't find it in per-user/root/channels, but nix-env works fine?
<Sonarpulse>
bkchr[m]: err which I mean?
<Sonarpulse>
tools or libraries?
<cransom>
i have installed freebsd many times in a past life. i'm not sure if nixos is faster or easier than that though.
<clever>
pirateking: nixos-rebuild uses the channel called nixos
<Sonarpulse>
or the nixpkgs manual for more detail but drier
<Sonarpulse>
(I wrote some of that meson build doc later, I like my writing style there better, but the nixpkgs manual has to be a bit dryer to make sure it covers *all* the details)
<bkchr[m]>
ty
<Sonarpulse>
np
<Sonarpulse>
bkchr[m]: you aren't using meson so you can ignore the technical details, but i think the intro is good
<Sonarpulse>
I liked it a lot before I added a paragraph too
<bkchr[m]>
I did not find anything useful in the nixpkgs documentation :D
<kini>
Sometimes when I run `nixos-rebuild switch` I see some messages about collisions between various files. Are these bugs I should report? Also, how do I recall the full list of collisions later? If I immediately rerun `nixos-rebuild switch` I don't see the messages again, so there are probably other collisions that weren't reported on any given run of `nixos-rebuild switch`.
<Sonarpulse>
bkchr[m]: yeah people have mainly found it not helpful :(
vidbina has joined #nixos
TweyII has quit [Ping timeout: 256 seconds]
<nick_l>
kini: often they are bugs in your own configuration, sometimes they are bugs in nixpkgs.
<nick_l>
kini: one way to show this is if you import two different versions of nixpkgs and you install version1.python and version2.python in your environmentPackages.
<nick_l>
kini: this will generate collisions, but it's not a bug in nixpkgs.
xcmw has quit [Ping timeout: 240 seconds]
<gchristensen>
it is likely fine, but couldn't hurt to paste the log of the collisions to a pastebin
<nick_l>
kini: on the other hand, there are various packages that provide the same binary. If that's done in such a way that one actually requires both and they do have the same name, then one could say there is a bug in nixpkgs.
<pirateking>
clever: thanks! that got me where i needed to be
<pirateking>
# If there are other channels that contain a file called # ".update-on-nixos-rebuild", update them as well.
astiles has joined #nixos
<pirateking>
201 and 202 in nixos-rebuild
vidbina has quit [Ping timeout: 240 seconds]
<kini>
nick_l: Will collisions occur between stuff I installed via /etc/nixos/configuration.nix and stuff I installed by `nix-env -i` in a root terminal (which I gather is /nix/var/nix/profiles/default ) ?
<clever>
kini: they will silently collide, and nix-env has a higher priority
<kini>
I guess stuff from /etc/nixos/configuration.nix shows up in /run/current-system/sw ?
<clever>
kini: yeah
<clever>
kini: and then its down to the order of elements in $PATH
<kini>
I see. Then the message I'm getting is probably a collision in /run/current-system/sw I guess
<kini>
it would be nice if the collision message specified what profile or environment nix was attempting to build when it encountered the collision
freeman42x]NixOS has joined #nixos
vidbina has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
<pirateking>
kini: you can edit the bash file that runs that part
Fare has joined #nixos
<nick_l>
kini: yeah, that sounds useful, although I think the consensus is that using nix-env -i shouldn't be done in the first place.
<nick_l>
kini: very hard to swallow as a new user.
<nick_l>
I think nix-env -i should explain on stderr how one is supposed to use the system.
<nick_l>
Like "Sure, you can use nix-env -i, but you really shouldn't.. Here is what you should be doing...".
<pirateking>
yeah i made a bunch of bash things. nix-find, nix-explore, nix-refresh, nix-refresh-all, nixos-config, nix-reinstall, nix-uninstall, nix-single-user-install, nix-cache-refresh, etc
nur0n0 has joined #nixos
<nick_l>
pirateking: yeah, I think everyone did.
<pirateking>
it was my first time making bash things so i'm proud of myself, heh
xcmw has joined #nixos
<gchristensen>
pirateking: nice!!
<Akii>
nick_l that would've saved me a lot of trouble :D
<nick_l>
Akii: I think nix 2.0 has likely obsolete a lot of those.
<nick_l>
For multi-user installation there is also some consolidation happening.
<gchristensen>
nix 2.0's new commands are beta and should not be depended upon
<Akii>
I'm still not sure what blew up my window manager today
<nick_l>
They are?
<Akii>
but ever since putting my package into the configuration.nix it hasn't happened again
<nick_l>
gchristensen: The word beta is not in the release notes for Nix 2.0. Perhaps that could be used as well.
<gchristensen>
nix 2.0's new commands are a work in progress and should not be depended upon*
coot has quit [Quit: coot]
<nick_l>
Thanks for the warning.
<kini>
nick_l: interesting that you say nix-env -i shouldn't be done. I guess that makes sense -- probably there is a user-level equivalent of /etc/nixos/config where I can write a list of what packages I want to have in my user environment.
jperras has quit [Ping timeout: 264 seconds]
<nur0n0>
do NIX_CFLAGS_COMPILE and NIX_LDFLAGS have to be set manually? I'm trying to package a library and I think I got the file system layout right, but I'm not sure how to make the library visible to other packages
<adisbladis[m]>
kini: If you want user-level declarative packages you should take a look at home-manager
rosa has quit [Quit: rosa]
<nur0n0>
I assume the library is responsible for setting those flags?
<kini>
adisbladis[m]: oh, so such a thing is not built into nix/nixos? Then nick_l, what did you mean? What comes after "Here is what you should be doing"? :)
<infinisil>
Oh no.. Some upgrade borked the booting of my laptop on nixos :/
<kini>
I'm trying to investigate the collisions I'm seeing, so I ran `nix-store -q --referrers-closure` on the two colliding paths. The results are exactly identical except for the colliding paths themselves... what's going on?
mkoenig has quit [Ping timeout: 256 seconds]
<infinisil>
kini: Yeah that makes sense, because both those path want to be installed by the same profile, aka the same referrers
xcmw has quit [Ping timeout: 268 seconds]
<infinisil>
I think
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
<infinisil>
kini: What you can do is give one of those a lower priority
<kini>
Oh, duh. I guess I'm going about this the wrong way... what's the best way to track this down?
ckauhaus has quit [Client Quit]
moredhel_[m] has joined #nixos
<kini>
well both of the colliding derivations have the same name (phonon-backend-gstreamer-qt5-4.9.0)
<kini>
but different hashes
<infinisil>
Ah wait, no you're right, referrers-closure should give at least some clue
jperras_ has quit [Quit: WeeChat 2.1]
<infinisil>
kini: What's the derivation that pulls those in?
<infinisil>
aka --referrers?
<kini>
four system-path derivations
<infinisil>
With nix 2.0 you can also use the very nice `nix why-depends /nix/store/foo.drv /nix/store/bar.drv`
<betaboon>
anyone knows if there are problems building ruby-gems on nixos18.03 ? for some odd reason the ruby2.4.3-json1.8.2 gem doesn't build on 18.03, but it didnt fail on 17.09 ?
<kini>
oh, by "your system derivation" I guess you mean the "nixos-system" one
<kini>
so now I know that the collision is caused by pulling in both Qt 5.6 and Qt 5.10 simultaneously (?), but I don't know why that is happening
mkoenig has joined #nixos
<kini>
nick_l: so you don't have anything installed long-term that you might want to use outside of nix-shells, like, say, firefox, or something? Or do you just put all of those packages as systemwide?
mkoenig has quit [Client Quit]
<cransom>
is there an option to unsuppress nix output? like `nix copy`'s new oneline for interactive output is ok, but if i stick it in a script, having more verbose output for what it's doing at the time would be nice.
<nick_l>
kini: those things are in systemPackages in my case or enabled via modules.
<nick_l>
environmentPackages*
asuryawanshi has quit [Ping timeout: 276 seconds]
reinzelmann has quit [Quit: Leaving]
vidbina has quit [Ping timeout: 268 seconds]
jrolfs_ has joined #nixos
reinzelmann has joined #nixos
srghma has joined #nixos
mkoenig has joined #nixos
ryantrinkle has joined #nixos
jgt has quit [Ping timeout: 240 seconds]
zybell_ has quit [Ping timeout: 264 seconds]
xcmw has joined #nixos
zybell_ has joined #nixos
kisik21 has quit [Ping timeout: 264 seconds]
mkoenig has quit [Ping timeout: 276 seconds]
derchris has quit [Read error: Connection reset by peer]
markus1189 has quit [Remote host closed the connection]
schoppenhauer has quit [Ping timeout: 264 seconds]
jrolfs_ has quit [Read error: Connection reset by peer]
jrolfs__ has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed to staging « clang3.4: still needs libedit »: https://git.io/vpIgn
ndrei has joined #nixos
xcmw has quit [Ping timeout: 276 seconds]
markus1189 has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
schoppenhauer has joined #nixos
Izorkin has joined #nixos
endformationage has joined #nixos
<kreisys>
hey I'm trying to setup hydra to send email notification... I setup ssmtp to use my mailgun account somewhat securely but hydra can only take an smtp host. what's the easiest fake smtp server to setup on nixos for that purpose?
raynold has joined #nixos
vidbina has joined #nixos
xcmw has joined #nixos
chessai has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
jperras has joined #nixos
<pkill9>
hi, are there any known issues with running steam through Nix on a foreign distro?
<pkill9>
I'm getting a segmentation fault after the steam bootstrapper downloaded the latest steam
jrolfs__ has quit [Ping timeout: 265 seconds]
nick_l has quit [Ping timeout: 260 seconds]
<pkill9>
specifically I get:
<pkill9>
/home/user/.local/share/Steam/steam.sh: line 927: 12762 Segmentation fault $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
vaninwagen has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
humanoyd has quit [Quit: WeeChat 2.1]
S1tiSchu has quit [Read error: Connection reset by peer]
vaninwagen has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 264 seconds]
ajs124 has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
jrolfs__ has joined #nixos
tmaekawa has joined #nixos
Xal has quit [Ping timeout: 265 seconds]
sehqlr has quit [Ping timeout: 268 seconds]
kisik21 has quit [Remote host closed the connection]
<boomshroom>
I'm trying to download the graalvm to play with and the JDK want me to download version 8u161. When I try to download the old version, oracle want me to log in. What do I do?
<jmc_fr>
Hi. Not able to get usbmuxd to work : installed via my configuration.nix is ok, but with `services.usbmuxd.enable = true;` I get "the option services.usbmuxd" does not exist, depite of https://nixos.org/nixos/options.html#usbmux
acarrico has quit [Ping timeout: 268 seconds]
<zybell_>
Akii: I have read your article about using a private repo. Your last sentence seems to imply that only one builduser can be created,what leads me to the question if the userswitch to builduser could be made through ssh by using localhost as remote builder or does nix-daemon change uid before calling remote builders?
<jmc_fr>
Well the words "despite of http etc" are from me, not from the system
<zybell_>
if it were possible AgentForwarding could be used to provide all buildusers with roots(nix-daemons)auth.
ma27 has joined #nixos
<Akii>
zybell_ for the record I didn't write that article
<Akii>
just something I found
<boomshroom>
Managed to get it working using master.
<jmc_fr>
any idea for usbmuxd, question above ? I surely miss something simple ...
<gchristensen>
jmc_fr: interesting, I don't see usbmuxd there
<gchristensen>
jmc_fr: what does `nixos-version` say?
<zybell_>
Akii: Sorry about that misunderstanding. Independently from that, do you happen to know, if root owned daemon calls the ssh directly in remote building or switches to builduser first.
<zybell_>
*?
<nur0n0>
how can I reference a derivation which is not in nixpkgs? I packaged my own library and installed it locally using 'nix-env -i --file'. How do I reference it from some other project?
astiles has quit [Remote host closed the connection]
<infinisil>
You can't refer to installed packages like this, you need to have the nix file
<srhb>
overlays should be branded as a way to make nothing hardcoded ever. The power... THE POWER....
<Akii>
zybell_ no idea, sorry :(
<infinisil>
srhb: It doesn't do anything to make nested overrides better though
<jmc_fr>
iqubic: what about `system.autoUpgrade.channel = https://nixos.org/channels/nixos-17.03;` (from the Manual) ; is that an equivalent way to upgrade via nix-channel --add ... ?
<nur0n0>
infinsil: thank you, that makes sense actually, since `derivation` is a pure function anyway
<andrewrk>
how does linking against opengl work on nixos?
<andrewrk>
if I strace a simple C program I see that it finds /run/opengl-driver-32/lib/
<dhess>
clever: thanks! I saw angerman's issue re: this on Github. That is insane :)
dbmikus has quit [Ping timeout: 264 seconds]
<andrewrk>
this is linked to /nix/store/drhs8y3h2l9hh8i6y8gpm90jw88wp8s1-mesa-drivers+txc-17.3.6/lib on my system
<dhess>
My case should hopefully be a lot simpler. I will take a look at that repo.
<andrewrk>
my understanding of mesa is that it is CPU emulation of opengl. does that mean I'm not using GPU accelerated graphics?
<clever>
andrewrk: mesa also implements hardware rendering for some cards
<andrewrk>
ah
<{^_^}>
[nixpkgs] @Infinisil opened pull request #39123 → dust: init at 0.2.3 → https://git.io/vpIMr
<manveru>
rycee: you know anyone using fcitx with home-manager?
<infinisil>
manveru: Oh fcitx seems interesting, have you used it before?
<manveru>
yeah
<manveru>
i use it to switch between en/de/jp layouts usually
<infinisil>
And it doesn't work with home-manager?
<manveru>
but recently the german layout has been broken
<manveru>
and i have no clue how to debug this
<manveru>
might be that it's caused by home-manager, but i don't think so
dan_b has joined #nixos
telent has joined #nixos
fragamus has joined #nixos
flokli has quit [Quit: WeeChat 2.0.1]
flokli has joined #nixos
sehqlr has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
acarrico has joined #nixos
mounty has quit [Quit: Konversation terminated!]
endformationage has quit [Ping timeout: 265 seconds]
endformationage has joined #nixos
ryanartecona has joined #nixos
szicari has quit [Quit: szicari]
<jmc_fr>
infinisil: I'm trying to access to my pictures on an iphone using usbmuxd. What to do after having put `services.usbmuxd.enable = true;` in my conf file (and having rebuit) ?
szicari has joined #nixos
<infinisil>
jmc_fr: You need ifuse for that as well
<infinisil>
Just nix-shell -p ifuse
<infinisil>
Then I think it's just `mkdir phone && ifuse phone`
<Akii>
trying to build a Haskell package, the missing dependency is on nixpkgs master (http://lpaste.net/364980)
<Akii>
it builds locally on macos with nix
astiles has joined #nixos
<Akii>
I don't get any of this anymore.. why
<infinisil>
Akii: What's your nix file to build it?
<infinisil>
LnL: The bot responds to PM's too btw :P
<LnL>
oh :p
jensens has joined #nixos
<Akii>
how do I even run " (import <nixpkgs> {}).fetchFromGitHub"
endformationage has quit [Ping timeout: 256 seconds]
<Akii>
you now what, I'll just wait
<Akii>
it'll be there eventually
<infinisil>
Huh?
<pirateking>
Akii: missing dependency is a package dependency problem, not a problem from pulling master. you might be able to set --keep-going / -k in case any derivation fails
Maxdamantus has quit [Ping timeout: 256 seconds]
<jmc_fr>
infinisil: usbmuxd worked like a charm, until I physically disconnected my phone. And now, when I reconnect, nothing works anymore: `$ ifuse phone
<jmc_fr>
There was an error accessing the mount point: Input/output error
<jmc_fr>
`
oida has quit [Remote host closed the connection]
<infinisil>
Akii: Can you show your current nix file?
__monty__ has left #nixos [#nixos]
Maxdamantus has joined #nixos
toby1851 has quit [Quit: Konversation terminated!]
toby_ has joined #nixos
<Akii>
it's unchanged; I just put your thing in which has no effect (which is probably obvious, but wasn't to me)
sehqlr has quit [Ping timeout: 264 seconds]
<Akii>
why is this so complicated
oida has joined #nixos
<jmc_fr>
`$ sudo rm -R phone ==> rm: impossible de supprimer 'phone': Is a directory`
toby_ is now known as Guest51829
<Akii>
the thing is on master
<Akii>
why can't I take it and put it somewhere
<pirateking>
Akii: import var sets a variable to something. whenever it's used it'll have those packages
endformationage has joined #nixos
jperras has quit [Ping timeout: 255 seconds]
<pirateking>
Akii: what can you not take and what can you not place in the appropriate spot?
<infinisil>
jmc_fr: Yeah, that's a problem of ifuse I don't know a solution to. I think you can recover by lazily unmounting in
<infinisil>
it*
<infinisil>
jmc_fr: sudo umount -fl phone
<Akii>
pirateking still searching.. sec
<nur0n0>
how does pkg-config relate to nix? from other nix libraries, it seems that it automatically sets X_CFLAGS_COMPILE appropriately, but I can't find this anywhere in the docs
astiles has quit [Remote host closed the connection]
<sphalerite>
Does anyone know a uPnP remote control tool? I can find plenty of media servers and control points, but nothing that I can actually control my Kodi with from my laptop, as far as I can see
<infinisil>
jmc_fr: Maybe the sudo and -l isn't needed though
<sphalerite>
nur0n0: if pkgconfig is in the buildInputs for a derivation, the lib/pkg-config directories of the other buildInputs get added to PKG_CONFIG_PATH
<Akii>
infinisil it complained about the hash and nicely provided the correct one; put that in now stuff is happening
<infinisil>
Akii: Nice
vidbina has joined #nixos
dbmikus_ has joined #nixos
<pirateking>
anyone know how to put bash inside a nix program?
<Akii>
infinisil yup, wow
obadz- has joined #nixos
<nur0n0>
sphalerite: thank you
<sphalerite>
nur0n0: NIX_CFLAGS_COMPILE and NIX_LDFLAGS are set completely independently of pkg-config though AFAIK.
<infinisil>
pirateking: You can't execute bash from nix, but you can write a derivation that runs bash
alex`` has quit [Ping timeout: 256 seconds]
keith_analog has joined #nixos
<pirateking>
infinisil: how does it run a hello-world bash file?
<nur0n0>
pirateking: depends what you mean by 'put bash inside'
<infinisil>
pirateking: What do you mean? I don't know what you're referring to
<keith_analog>
Hi All, I'm writing a nix package for which there is an autotuning phase that generates machine-specific tuning parameters. Does anyone know if there is an established method for such a phase, or perhaps an example? Thanks
obadz has quit [Ping timeout: 246 seconds]
obadz- is now known as obadz
iqubic has quit [Ping timeout: 265 seconds]
<infinisil>
keith_analog: Sounds like configurePhase to me
<sphalerite>
keith_analog: that's something that we try hard to prevent completely in nix derivations.
<jmc_fr>
infinisil: `sudo umount -f phone && ifuse phone` will be my last word ;-)
jperras has joined #nixos
<sphalerite>
keith_analog: because it's a source of non-determinism/impurity
<infinisil>
jmc_fr: Nice :)
<infinisil>
keith_analog: Oh yeah what sphalerite said, I take back what i said
<{^_^}>
[nixpkgs] @mpickering opened pull request #39125 → SAGA, SAGA LTS release, dependencies and QGIS SAGA plugin → https://git.io/vpI5O
pkill9 has quit [Quit: WeeChat 2.1]
<pirateking>
nur0n0: run nix-prefetch-url, then use nix that needed the info
<keith_analog>
sphalerite: ok thanks, then perhaps the method i should use is to have the package lazily perform the autotuning phase after it's installed
acarrico has joined #nixos
<sphalerite>
keith_analog: yes, that would probably be the best approach
<infinisil>
pirateking: Nope, that makes things impure
dbmikus_ has quit [Ping timeout: 240 seconds]
asuryawa_ has quit [Ping timeout: 264 seconds]
<keith_analog>
sphalerite: so, would the natural place to put the configuration files be in /var/tmp?
<infinisil>
pirateking: Well you actually can, but it's not recommended at all
<infinisil>
pirateking: If you want to fetch something impurely without a hash you can use `builtins.fetchurl "https://.."`
<sphalerite>
keith_analog: seems more like a /var/cache or ~/.cache thing to me. Not 100% sure though.
<keith_analog>
sphalerite: super, thanks
<infinisil>
pirateking: (Which is also discouraged but not as bad)
<sphalerite>
if so, probably use the relevant XDG env vars
<Akii>
infinisil thank you
<kini>
builtins.fetchurl will affect the hash of the derivation if it downloads something different the next time, right?
<infinisil>
Akii: Glad I could help :)
astiles has quit [Ping timeout: 256 seconds]
<kini>
so it's not *silently* impure, in some sense
<nur0n0>
pirateking: or you can use bash + nix-prefetch-url to generate a 'default.nix' file automatically
<pirateking>
infinisil: what if i want to hack nix to update a custom channel that requires tarballs, mounting them, creating files, unmounting them? I can do it all outside nix but it would be more fluid if i could handle the output in nix
keith_analog has quit [Quit: Konversation terminated!]
<LnL>
kini: fetching sources without a hash makes evaluation impure, but not everything that comes after
pkill9 has joined #nixos
<infinisil>
pirateking: What nur0n0 said sounds better, nix is meant for pure things and it gets most of the benefits when stuff stays pure
<infinisil>
So do whatever impure things you can outside of nix
RaphaelLullis[m] has left #nixos ["User left"]
<rycee>
manveru: No, I don't know anybody specific. But there is some issue open about it.
<pirateking>
infinisil: i'm fine with that. but i don't know how to edit text in files
<infinisil>
pirateking: check out nix-prefetch-git, it generates a json for you, that you can then import into nix with builtins.fromJSON
<pirateking>
oh perfect thanks!
ma27 has quit [Ping timeout: 265 seconds]
* infinisil
out
<nur0n0>
sphalerite: so first project/lib/pkg-config gets added to PKG_CONFIG_PATH. then, the nix gcc wrapper will use this to populate NIX_CFLAGS_COMPILE? are there docs for this?
endformationage has quit [Quit: WeeChat 1.9.1]
<sphalerit>
nur0n0: no, stdenv populates NIX_CFLAGS_COMPILE independently of pkg-conifg
jperras has quit [Read error: Connection reset by peer]
jrolfs__ has quit [Ping timeout: 240 seconds]
astiles has joined #nixos
<nur0n0>
sphalerit: ah ok, thank you
simukis has quit [Ping timeout: 264 seconds]
<sphalerit>
Sorry I don't know if there are any docs for this, but if there are it's probably in the nixpkgs manual
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sehqlr has joined #nixos
astiles_ has joined #nixos
astiles has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @WilliButz opened pull request #39127 → fileshelter: enable parallel building → https://git.io/vpIN0
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
Ridout has joined #nixos
astiles_ has quit [Remote host closed the connection]
keith` has joined #nixos
astiles has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
vidbina has joined #nixos
<keith`>
I'm running nixos-unstable and after not having used it for a while I find that usb redirection has stopped working for me in gnome-boxes, with this error: Apr 18 11:17:11 kea-laptop org.gnome.Boxes[1591]: spice-client-glib-usb-helper: Error PoliciKit error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.spice-space.lowlevelusbaccess is not registered
<tnks>
okay, so in a docker container, I'm trying to call the nixos code that builds out /run/wrappers, and I feel I'm so close.
<tnks>
but some rpaths are not being patched.
<tnks>
I have a true NixOS installation for comparison of what I'm trying to reproduce in Docker.
<keith`>
That polkit file is provided by the spice-gtk package but didn't seem to be installed correctly.
ajs124 has joined #nixos
<keith`>
I made a small overlay that results in the file existing in share/polkit-1/actions in the package $out.
<keith`>
I thought that would get linked into /run/current-system/sw/share/polkit-1/actions by the environment.pathsToLink = [ "/share/polkit-q" ]; in the polkit package, but this is not happening.
<keith`>
Anyone here have suggestions for how to track down the problem?
<mpickering>
"lastools" provides a number of non-free windows executables. The recommended way to use them on unix is to run them via wine. It is too bizarre to package these executables with wrappers which invoke wine so they can use used seamlessly on linux?
<mpickering>
It is disgusting but it is how the developers recommend non-windows users use the software. I have other ideas to work around not having these packaged anyway
<gchristensen>
I went down this road to packaging 1password, it was not good and no fun, and I'm glad I didn't put it in nixpkgs
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dan_b has quit [Ping timeout: 264 seconds]
telent has quit [Ping timeout: 264 seconds]
Fare has joined #nixos
xcmw has joined #nixos
joehh has quit [Ping timeout: 264 seconds]
<Drakonis[m]>
hmm, didn't this channel used to have 200 users?
jtojnar has quit [Ping timeout: 260 seconds]
<gchristensen>
Drakonis[m]: yep
<gchristensen>
we've grown a teensy bit
srk has quit [Ping timeout: 246 seconds]
<Drakonis[m]>
that was quite fast
Asmadeus has joined #nixos
astiles has quit [Remote host closed the connection]
<gchristensen>
it was ~350 in early 2016
srk has joined #nixos
astiles has joined #nixos
<Drakonis[m]>
say, the newsletter has a bunch of interesting nix projects, but they're not all available on nixpkgs
<yorick>
it should probably be a monthly newsletter
<yorick>
in pratice, it is
<joepie91>
news..letter?
<Drakonis[m]>
it's rapidly expanding
<Drakonis[m]>
hmm, so nix did become the current hot thing
sehqlr has joined #nixos
iqubic has joined #nixos
<Drakonis[m]>
hmm, would it be worthwhile to tie Nix into more linux interfaces?
<Drakonis[m]>
get rid of the symlink slurry
<Drakonis[m]>
have a directory binding slurry instead
<gchristensen>
"symlink slurry"
astiles has quit []
<Drakonis[m]>
for the lack of a better term
<Drakonis[m]>
what do you call 26 thousand symlinks then :v
<gchristensen>
I'm going to stick to symlink slurry
<Drakonis[m]>
symlink fiesta :v?
nikola_i has joined #nixos
<Drakonis[m]>
hmm, are there execution macros?
joehh has joined #nixos
<Drakonis[m]>
ie: this package depends on the standard fhs and will by default be executed using a fhs environment
nikola_i has quit [Client Quit]
dcol has joined #nixos
<Drakonis[m]>
fedora has the usr merge by default but debian does not
<dcol>
hello, pretty new to NixOS. how do I get a package that is up on github? when I do --upgrade it doesn't seem to add this package (it's pretty recent, just one day)
astiles has joined #nixos
<Drakonis[m]>
are you checking nixpkgs?
<Drakonis[m]>
if so, you have to change the repository it sources the packages from
blankhart has joined #nixos
astiles_ has joined #nixos
sehqlr has quit [Ping timeout: 240 seconds]
<Drakonis[m]>
also there should be notes on local and global namespaces
<dcol>
so are there any cached binaries until unstable synchs? in other words if I changed my package source to the repo would I have to rebuild every commit the last week-ish
ajs124 has left #nixos ["Machine going to sleep"]
<Drakonis[m]>
yes there are
tertle||eltret has joined #nixos
<gchristensen>
but depends where you get, if you check out a brand new commit and it is a mass rebuild, obviously you'll have to rebuild a lot
<Drakonis[m]>
nixpkgs has binary caches
jgt has joined #nixos
<LnL>
yeah caches are uploaded immediately when built, but channels wait for everything to complete
<dcol>
yeah, fair enough. guess I'll have a go at it then. thanks for the help!
sehqlr has joined #nixos
<dcol>
oh and for reference if anyone else is experiencing crashes of xserver on the laptop, that's a bug in libinput that gets fixed in 1.10.3 :)
<achambe>
What would be the correct way to add certain runtime packages to another scripts PATH, would that be the wrapper stuff?
<Drakonis[m]>
if i send in an pull request to rebuild libreoffice with gtk and/or qt support, how long does it take to build
jgt has quit [Ping timeout: 256 seconds]
<Drakonis[m]>
i'm miffed that isn't a thing, libreoffice looks awful without it
pkill9 has quit [Quit: WeeChat 2.1]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrolfs__ has quit [Read error: Connection reset by peer]