<growpotkin>
The app loads and all the UI seems fine
<growpotkin>
but no audio
<growpotkin>
no connections to Alsa or Pulse
<eacameron>
clever: is that defaulted to false now too?
<clever>
gchristensen: of note, linux has to whitelist symbols that can be used by "unfree" software, and sometimes they can simply forget to whitelist something
aanderse-work has joined #nixos
kvda has joined #nixos
<gchristensen>
yea
kreisys has joined #nixos
<clever>
gchristensen: thats also why do_mount is missing, and zfs has to execute /bin/sh -c "mount ..." just to auto-mount things, lol
<gchristensen>
and they're not inclined to agree to it for zol
<gchristensen>
:|
Jetien__ has joined #nixos
<clever>
gchristensen: and nixos's /bin/sh has a default PATH=/path-not-set, so it cant find mount
<gchristensen>
seems we could fix that
<clever>
gchristensen: zfs has already been patched to accept a path to something
<clever>
gchristensen: and nixos uses that to solve the issue
<gchristensen>
nice
<clever>
and its only used to auto-mount things in .zfs/snapshots
Jetien_ has quit [Ping timeout: 250 seconds]
ym555 has quit [Ping timeout: 245 seconds]
jluttine has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjIAf
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jluttine has quit [Ping timeout: 250 seconds]
kvda has joined #nixos
jluttine has joined #nixos
jluttine has quit [Ping timeout: 255 seconds]
<eacameron>
clever: well apparently pulseaudio was not enabled, but enabling it hasn't helped
<ar1a>
the shell.nix i generated with cabal2nix --shell has those packages in there though
<slack1256>
ar1a: cabal new-build --disable-tests
<slack1256>
maybe?
<ar1a>
it's not a new-style project
<ar1a>
it seems to have failed trying to find readline
<ar1a>
[__1] unknown package: readline (dependency of polishnt)
<slack1256>
ar1a: it doesn't the to have a .project file, if it just has a .cabal file new-build works
dckc has quit [Ping timeout: 255 seconds]
<ar1a>
does cabal2nix support new-style projects? because it seems new-build is using stackage instead of nixpkgs
<slack1256>
I declare all my dependencies via cabal2nix. I generate a default.nix file and an nix-shell file (so I can change compilers)
<slack1256>
I nix-shell into the environment and then run cabal new-build
<ar1a>
im trying to get haskell-ide-engine working here
<ar1a>
so i can't do much manual work
<metasyntactic[m]>
What's the most idiomatic way in configuration.nix to specify that you'd like one package (e.g. youtube-dl) to come from the master nixpkgs on github instead of the normal channel you're on (e.g. 19.03)?
atgo[m] has left #nixos ["User left"]
silver has quit [Read error: Connection reset by peer]
<slack1256>
metasyntactic[m]: I think you have the wrong conceptual model for nixpkgs
<ryantm>
metasyntactic[m]: Are you sure you want master and not the unstable channel?
InFlames has quit [Ping timeout: 250 seconds]
<metasyntactic[m]>
well... wih youtube-dl specifically, it is updated every two weeks and having a stale version is less useful
<metasyntactic[m]>
unstable lags by several days, right?
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<metasyntactic[m]>
should I just "nix-shell -p youtube-dl -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz" every time I want to use it? that doesn't seem like the best idea, but it works
<slack1256>
are you sure you want to stay on the bleeding edge that way?
sgronblo has quit [Quit: Lost terminal]
<samueldr>
youtube-dl sometimes really needs to be bleeding to be useful :/
<metasyntactic[m]>
for just that package, yes, not for the rest of my system. that's why I was wondering what the most appropriate way to specify that would be
<samueldr>
(if you didn't know, it does MANY more services than youtube)
<slack1256>
If I want to use really new software, I download the repo the via git, and nix-shell the dependencies myself
<simpson>
I have a git checkout of nixpkgs on a machine purely for youtube-dl.
mconstant has joined #nixos
<ar1a>
any ideas on my cabal issue? This all started when im trying to use an older compiler. `cabal build` returns https://0x0.st/zPny.txt shell.nix is https://0x0.st/zPnt.nix (note the compiler is set to something other than default). ``nix-repl> haskell.packages.ghc863Binary.readline`` returns a derivation, so it exists.
<metasyntactic[m]>
should I create a channel called nixpkgs-master and add that to the channel list and add the nixpkgs-master.youtube.dl in my environment.systemPackages ?
<slack1256>
that is a real side effect If I've seen one
o1lo01ol1o has joined #nixos
<slack1256>
you can have a copy of nixpkgs and tag specific versions, and import those
<slack1256>
that way is more reproducible
<ryantm>
Right, you can pass a hash to fetchTarball
atgo[m] has joined #nixos
<metasyntactic[m]>
but the hash would change all of the time... hence my question about idiomatic solutions
<ryantm>
right you'd have to change the URL to be a specific commit and manually update the commit and hash.
atgo[m] has left #nixos ["User left"]
<ryantm>
If you do it the way I suggested, it will always grab the latest version, but it isn't as reproducible, like if youtube-dl breaks it will break your entire configuration.
<metasyntactic[m]>
yeah, and since the whole point of this is that youtube-dl is constantly updated for scraping sites and that's a cat and mouse game, it doesn't seem like a useful approach
<ryantm>
metasyntactic[m]: It seems like builtins.fetchTarball on master without a hash make sense.
<metasyntactic[m]>
how would it break my entire configuration?
<ryantm>
Well, you might need to comment out the youtube-dl line if youtube-dl is broken on master.
atgo[m] has joined #nixos
<metasyntactic[m]>
true
<slack1256>
fetchTarball would download nixpkgs at each rebuild right?
<ryantm>
It will cache it for a little bit, but yes.
<metasyntactic[m]>
would using nix-channels be better?
<tdeo>
you could have a nix-channel for the youtube-dl source github, then override the source for the nix package
<tdeo>
like `(youtube-dl.overrideAttrs (self: {src = <youtube-dl>; postInstall = "";}))` (postinstall is zsh completion that seems to not work with ytdl master)
kvda has joined #nixos
buffet has quit [Ping timeout: 245 seconds]
buffet_ has joined #nixos
<ryantm>
metasyntactic[m]: Using nix-channel would work and be maybe a little easier than the specific commit/hash method, but then your configuration relies on the state of the nix-channel.
<ryantm>
the state of the nix-channel on your computer
jasongrossman has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
jasongrossman has quit [Ping timeout: 268 seconds]
tdeo has quit [Quit: Quit]
tdeo has joined #nixos
elvishjerricco has quit [Ping timeout: 258 seconds]
elvishjerricco has joined #nixos
elvishjerricco has quit [Max SendQ exceeded]
newhoggy has quit [Ping timeout: 264 seconds]
elvishjerricco has joined #nixos
d1rewolf has quit [Ping timeout: 258 seconds]
newhoggy has joined #nixos
mudri has quit [Ping timeout: 252 seconds]
d1rewolf has joined #nixos
mudri has joined #nixos
dckc has joined #nixos
Yaniel has quit [Ping timeout: 245 seconds]
<hyper_ch>
anyone is using bind on nixos? I have a server running debian with bind and I thought it might be good to have a slave dns server as well
scribbler has quit [Remote host closed the connection]
Rusty1 has quit [Quit: Konversation terminated!]
wfranzini has quit [Remote host closed the connection]
Glider_IRC__ has joined #nixos
palo1 has joined #nixos
Glider_IRC_ has quit [Ping timeout: 245 seconds]
palo has quit [Ping timeout: 245 seconds]
palo1 is now known as palo
ddellacosta has quit [Ping timeout: 245 seconds]
Mateon2 has joined #nixos
mariel__ has joined #nixos
linarcx has joined #nixos
over7head has left #nixos [#nixos]
mariel__ has quit [Ping timeout: 258 seconds]
<tdeo>
my `nix search` output is quite small (100 packages or so). not sure how to try to fix this, but it might be related to not using channels and setting nix-path instead?
<mabel>
hey all. there's a "download" directive in cmake, which downloads files during make. I'm trying to package a rather complex package which makes extensive use of this directive (in the only setup I've been able to make progress with.)
<mabel>
is there a way I could 'fake out' the download cache in my nix expression?
<mabel>
so I could fetchurl / fetchFromGit all the things it wants ahead of time, then construct the cache using those paths
<mabel>
since everything is pinned/frozen it should be correct to do so, right?
reinhardt has quit [Quit: Leaving]
reinhardt has joined #nixos
linarcx has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
linarcx has joined #nixos
wfranzini has joined #nixos
rprije has quit [Ping timeout: 245 seconds]
jasongrossman has quit [Ping timeout: 268 seconds]
ru_horlick has joined #nixos
Ariakenom has joined #nixos
Tucky has joined #nixos
kvda has joined #nixos
erasmus has quit [Quit: ragequit]
<eyJhb>
Any clue when Go 1.12 will be in the stable channel? How long does it usually take?
<clever>
mabel: find out where its trying to put the files, and manually copy them there before the buildPhase
<clever>
mabel: if they exist, make wont try to "make" them
<srhb>
eyjhb: If you mean 18.09 probably nevre and forever, respectively. :)
<eyJhb>
srhb: I really have no clue, why it doesn't want to work, when I fetch it from unstable channel then......
InFlames has quit [Quit: Konversation terminated!]
InFlames has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
civodul has joined #nixos
jomik has joined #nixos
linarcx has quit [Ping timeout: 245 seconds]
<jomik>
Hey guys, I simply can not figure out why my Kitty installation will not launch any child processes. I.e. running `kitty list-fonts` fails with an error `Failed to launch child: list-fonts` `No such file or directory`. I have no idea which file it is looking for though :/
<tilpner>
jomik: strace -vfefile can be used to figure out which file it's referring to
<tilpner>
(Throw in -o /tmp/log if it's too much output)
linarcx has joined #nixos
<hyper_ch2>
kitty installation?
<jomik>
Wut `/run/current-system/sw/bin/sh`
<jomik>
hyper_ch2: The kitty terminal
<jomik>
It seems to be unable to find /bin/sh in my ... PATH ? I guess?
<hyper_ch2>
don't know kitty terminal
<hyper_ch2>
and well, nixos doesn't use such trivial things like /bin/sh
<jomik>
Oh, no, I guess it ends up finding it in `/run/current-system/sw/bin/s`h, I read wrong
<jomik>
Heh
<hyper_ch2>
you should use #!/usr/bin/env sh
<jomik>
We have /bin/sh linked to bash.
<jomik>
That's not what I mean hyper_ch2 . It is trying to execute `sh`
<jomik>
But that works. I just read the trace wrong
shabius_ has joined #nixos
arjen-jonathan has joined #nixos
<{^_^}>
[nixpkgs] @tadeokondrak opened pull request #58958 → lldb: install vscode plugin; vscode-extensions: add it → https://git.io/fjLv4
shabius has quit [Ping timeout: 258 seconds]
m0rphism has joined #nixos
<Taneb>
I'm trying to add hash for a local path, but tofu isn't working and sha256sum is too long. What should I do here?
<{^_^}>
Taneb: 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.
<pmiddend>
I'm trying to add a self-written derivation for a python package to my packages.nix using "python3Packages.callPackage my-derivation.nix {}", but it tells me that the function wasn't called with the "buildPythonPackage"
arjen-jonathan has quit [Quit: WeeChat 2.3]
arjen-jonathan has joined #nixos
<Taneb>
etu: that was failing with "error: store path mismatch in (possibly filtered) path added from [path]"
<Taneb>
nix-hash is what I wanted
<pmiddend>
Oh, seems "python3.pkgs.callPackage" works. I have no idea why.
rauno has quit [Remote host closed the connection]
<jomik>
Ah, I fixed my issue, thanks tilpner :D
jomik has quit [Quit: WeeChat 2.4]
fendor has joined #nixos
kai_w has joined #nixos
<glenndavy>
hey all.. just trying to understand something. my attempt to do nix-build -E ‘…’ is failing because private git repos specified in gemset.nix are giving me publickey permission issues. but.. if i do `nix-prefect-git —url.. —out .. etc etc` it pulls the repo just fine.
<glenndavy>
Does anyone have any idea why?
kvda has joined #nixos
<kai_w>
glenndavy: I think nix-build communicates via the nix daemon, which runs as a different user (root?), so that user must have the public key
<glenndavy>
damn.. ok, so, yesterday when i was doing the build it wasn’t working but today it stopped. Any ideas why it might have worked previously?
<glenndavy>
and, perhaps a better question, is, is there away to run nix daemon not as root?
wfranzini has quit [Read error: Connection reset by peer]
wfranzini has joined #nixos
pmiddend has quit [Quit: WeeChat 2.4]
fendor has quit [Ping timeout: 246 seconds]
<kai_w>
I think it's possible - but that user can then modify package system-wide, so it's probably a better idea for it to remain root
<kai_w>
and figure out a way to give it access to the SSH key
<glenndavy>
i’ve done the latter temporarily
<glenndavy>
lol, which didn’t work..
<kai_w>
perhaps something else then, sorry :/
<glenndavy>
kai_w: so, hows this root based daemon supposed to function. one thing i’m finding all the time is that my user hits permission issues on /nix/* say while installing gems from bundix
<glenndavy>
>: perhaps something else then, sorry
<glenndavy>
yeah back to drawing board, but i think you’re on to it
<kai_w>
do you have a single-user install? `nix-info -m` if you're not sure
<glenndavy>
so, i chown and chmod etc etc but permission gets changed back.. whats the mechansim supposed to be?
<aanderse-work>
primeos: are you able to backport apacheHttpd?
mounty has joined #nixos
sb0 has quit [Quit: Leaving]
jschievink[m] has joined #nixos
Neo-- has joined #nixos
mekeor has joined #nixos
<pie__>
i havent set up pinning on this machine yet, to update i just update my channels and rebuild switch right?
<srhb>
pie__: Yes.
<pie__>
thanks (i dont use nix-env)
Mrmaxmeier has joined #nixos
ym555 has quit [Quit: leaving...]
kreisys has joined #nixos
<primeos>
aanderse-work: Would be great if the maintainers could handle it, they should be able to test it better than I am - you could also cc @lovek323 @peti, and @NixOS/security-notifications on your issue #58947
<pie__>
is it possible to have another nix store and specify in an expression that the results should be put in the other store?
Rusty1 has joined #nixos
<{^_^}>
[nixpkgs] @lihop opened pull request #58962 → edb: init at 2019-04-04 → https://git.io/fjLTX
<niksnut>
pie__: not in an expression, but you can specify it on the command line, e.g. nix-build --store /path/to/store ...
<pie__>
niksnut, ok that probably makes sense
<pie__>
niksnut, thanks ill look into that
<mekeor>
hello. i installed R with nix. but invoking `Sys.which` function in R results in `Error in system(paste(which, shQuote(names[i])), intern = TRUE, ignore.stderr = TRUE) : error in running command`. as `which` is a run-time dependency of R (see https://github.com/HenrikBengtsson/Wishlist-for-R/issues/36), i was thinking maybe the nixpkgs-definition of R was lacking `which` within `buildInput`. but it is there:
<pie__>
damn, am I not allowed to sourc eother people's setup hooks? /nix/store/n4ywrn83dhc8smkd7jp3k8hahpl4d9pp-ghidra-9.0/bin/analyzeHeadless: line 2: /nix/store/mbvx601x4nimvscvwn066qv03lbnm3ni-openjdk-8u202bga/nix-support/setup-hook: Permission denied
<pie__>
oh wait maybe it doesnt have +x and I'm not sourcing it just running it directly
<gchristensen>
sounds like you're trying to execute it
<pie__>
yeah i think youre right, *waits for next build*
dramforever has quit [Ping timeout: 250 seconds]
kreisys has joined #nixos
<lucus16>
Okay, I've figured it out, it went wrong on 1. if you don't delete the image, the changes don't get applied, 2. for root, if you don't use mkForce, it gets silently overridden, 3. it should be initialPassword, not initialHashedPassword, since "test" is clearly not hashed
ggpeti has quit [Ping timeout: 256 seconds]
<pie__>
lucus16, \o/
<lucus16>
I was thoroughly confused because without all three of those, it looks like the other fixes aren't working
biopandemic has joined #nixos
arjen-jonathan has quit [Ping timeout: 245 seconds]
<Taneb>
I guess going by the 18.09 release we're still on schedule
<jluttine>
can i somehow prevent nix-build and nix-shell from changing the process cgroup..?
<nschoe>
Hi everyone :) Does anybody know about what's going on with this issue: https://github.com/NixOS/nixpkgs/issues/40706 ? There was a problem with Qt5, this used to be solved, I could build my project for months. Then suddenly, it stopped working again.
<{^_^}>
#40706 (by lucas8, 45 weeks ago, open): Broken cmake file with Qt5.10 full
<nschoe>
Now the thread looks to be dead. Is there a workaround? Does any of you face the same issue?
<gchristensen>
I was talking to the author of that yesterday
<simpson>
pie__: I hear that IPFS isn't fast enough for us, but I haven't personally measured.
<nschoe>
slabity, ah! This is good to know, I will try and switch to qt511 then.
<pie__>
simpson, aw
<pie__>
gchristensen, cool, and?
<etu>
I'm not sure how that would work...
<gchristensen>
pie__, simpson: ipfs can handle writes at a few mb/s
<gchristensen>
which is way too slow for hydra
<etu>
Since an uploaded resource is immutable
<simpson>
gchristensen: Per writing peer?
<gchristensen>
tumbleweed does full rebuilds 1-2 times a year, we do full rebuilds once a week or more
<nschoe>
slabity, hum, I don't think thi swill actually solve my issue actually. In my shell.nix, I have `qt5.full`, I don't specify which minor version it is, and I was on latest channel a couple of days ago.
<pie__>
disclaimer ive never actually used ipfs
<nschoe>
I'll try update again, and re-build. But I don't think my issue is going away like this :/
<simpson>
pie__: No worries; I'm not sure if there's any overlap between IPFS critique and IPFS usage. It's one of those sorts of technologies.
<pie__>
it just seems to be some Cutting Edge Stuff from my very distant view and I'm increasingly interested
<gchristensen>
other distros are allowed to be cutting edge in ways too! :)
<slabity>
nschoe: Is qt5.full itself failing to build? If you run `nix-shell -p qt5.full` does it succeed?
<pie__>
gchristensen, ;P
<pie__>
gchristensen, is that the write speed of successful builds though or ...?
<pie__>
^for hydra
<nschoe>
slabity, no qt5.full builds, it's when I compile my project with `catkin_make` that I get the error.
<gchristensen>
pie__: that is the write speed of ipfs overall, so whatever you're uploading
<slabity>
nschoe: Sorry. Not sure how catkin_make works.
<gchristensen>
bin Downloads projects scratch
<simpson>
gchristensen: But not *that* much; try `rate(hydra_store_s3_put_bytes_total[5m])`
jtojnar has quit [Quit: jtojnar]
<simpson>
Mm, and zooming in to 1d, same kind of spikiness. Looks like indeed we'd be constantly writing to IPFS, nonstop, and hopefully not lagging.
<nschoe>
slabity, okay I understand. But I'm getting the same error as describe there: some plugins wrongly refered to :/
periklis has joined #nixos
<slabity>
nschoe: So it specifically says it's missing some sort of *.cmake file?
<nschoe>
slabity, I'm re-trying it from scratch, just to make sure I haven't done anythign wrong. I'he just updated my channel. I've just confirmed `nix-shell -p qt5.full` works, and `qmake -query` gives me: "QT_VERSION:5.11.3". So I'm on 5.11. I'm going to try an build my project again and describe the error. I'll get back to you :)
domogled has quit [Ping timeout: 245 seconds]
Makaveli7 has joined #nixos
wfranzini has quit [Remote host closed the connection]
domogled has joined #nixos
o1lo01ol1o has joined #nixos
<jluttine>
any ideas how i should modify nixos (pam?) settings to get rid of this error: pam_loginuid(login:session): Error writing /proc/self/loginuid: Operation not permitted
arjen-jonathan has quit [Ping timeout: 246 seconds]
fendor has quit [Remote host closed the connection]
<{^_^}>
[nixops] @azazel75 opened pull request #1123 → Allow to add a nixpkgs prefix that isn't a path but a string → https://git.io/fjLIK
fendor has joined #nixos
rauno has quit [Remote host closed the connection]
<nschoe>
jluttine, just throwing an idea: can't it be SELinux-related (if you have it installed?)
<nschoe>
If not, dismiss what I just said ^^
peacememories has joined #nixos
<jluttine>
nschoe: how to easily check if i have it installed or not?
anderslundstedt has quit [Remote host closed the connection]
fendor has quit [Remote host closed the connection]
<pie__>
why use linux on a c64 when you could use genera :p
* pie__
shushes people talking about modern ecosystem
<philipp[m]>
Hey! Can anybody tell me when 19.03 is going to drop/why it's not out yet? Just to be sure: I'm not demanding anything, I'm just curious :-)
<adisbladis>
pie__: Not Linux, Lunix! :)
<pie__>
adisbladis, which is apparently linux on c64?
<pie__>
or was that a joke? (sorry xD)
<adisbladis>
pie__: It's a UNIX on c64, not linux
<gchristensen>
philipp[m]: essentially the delay is because the release managers are volunteers with whose day-job has unfortunately timed (for us) lots of work
<gchristensen>
philipp[m]: it should be out soon, but unfortunately I don't have specifics beyond "soon"
<pie__>
whats blocking?
<srhb>
pie__: Not knowing what's blocking, right now :)
<gchristensen>
I think the best way to contribute would be to look through changes from the 18.09 tag to the 19.03 tag and see if there are major missing release notes
<srhb>
I think we're close and mostly just need to compile a list of outstanding issues and do a final round-up.. But that's just my feeling.
<srhb>
Weird, my postfix is failing to read a file owned by postfix during preStart. Any idea if something odd is going on re. executing user in that phase?
pie__ has quit [Ping timeout: 250 seconds]
<Peter_Storm_>
Hmmm, I can't get passed this problem. Just installed the graphical version on a VirtualBox, and got the prompt to make the password and all that, but now it hangs in boot. It's a stock config file. Anyone able to help me? https://usercontent.irccloud-cdn.com/file/w9Kk93Z9/image.png
<srhb>
Peter_Storm_: Can you pastebin the config files?
snajpa has joined #nixos
<Peter_Storm_>
the one from /mtn?
<Peter_Storm_>
mtn
<srhb>
Peter_Storm_: Yeah.
detran has joined #nixos
<Peter_Storm_>
How do I get at that when it wont boot? Sorry, complete noob here
<srhb>
Peter_Storm_: Easiest way is to go back into the installer and remount your filesystems.
<Peter_Storm_>
ah of course, thank you, I'll try tjhat
<infinisil>
srhb: Re postfix: Maybe try debugging with namei (can list permissions for all path components)
<infinisil>
Or I guess just check all path components yourself
<srhb>
infinisil: Hmm, yeah. Looks like a red herring though, sudo -u postfix cat /etc/postfix/thatFile works fine -- but postmap fails with fatal: open database ... permission denied
<srhb>
MAybe something's weird because it's a symlink into nixops keys..
<srhb>
But.. Only during preStart.
majewsky has quit [Quit: leaving]
<infinisil>
strace -e open=file might help with debugging
<srhb>
Sounds like a plan.
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<Peter_Storm_>
Huh, how do I actually copy something from vim to the clipboard of the virtualbox and then out :D sorry again, such a noob
<srhb>
Peter_Storm_: No idea, it might be easier to open the ssh server and ssh in with your regular tools.
<Peter_Storm_>
ah yeah
<srhb>
Or just use some pastebin you can curl the file at or something :-P
<slabity>
Peter_Storm_: Clipboard sharing with a VM typically requires special guest drivers
<srhb>
infinisil: Red herring indeed. /etc/postfix is a link to /etc/static/postfix (of course...) -- so when it tries to generate the db file at runtime, it barfs. Derp, silly me. :)
<Peter_Storm_>
I found something called pastbinit, and it worked :D
<srhb>
eyjhb: I'll have a look later, currently mucking with an obstinate mail server..
<eyJhb>
If anybody can help, I am trying to get Go 1.12 to work, using the stable but picking out Go from the unstable channel. But I get a permission denied on the homeless-shelter... But it SHOULD be using the latest version
<eyJhb>
srhb: I have PTSD regarding mail servers. I will never ever setup a mail server again
<srhb>
eyjhb: No kidding.
<eyJhb>
I think I did it like ... 5-7 years ago when I was around 12, and I still have nightmares when someone mention it
<srhb>
I basically just want a sendmail that will go through mailgun, thankfully. But still, postfix is being Weird Arcane Oldendays software.
ddellacosta has joined #nixos
<slabity>
eyjhb: Still having issues even with a specific `-I` path?
<eyJhb>
slabity: I can use `nix-shell -I nixpkgs=nixpkgs/ -p go`, but that's it.. :|
<eyJhb>
srhb: even that sounds like NO FUN... At all! - Setting it up using NixOS?
<srhb>
Yeah.
<eyJhb>
That just sounds like double trouble
<srhb>
I think I'll try opensmtpd instead or something..
<srhb>
Or just.. hack my own sendmail wrapper >_>
<eyJhb>
srhb: that just sounds like suicide with extra steps my friend...
<srhb>
Thanks, very encouraging :P
<eyJhb>
Nooo problem! :D Always got your back ;) :p
jabranham has quit [Ping timeout: 268 seconds]
<eyJhb>
Is there any good simple Python application I can use as a template?
<infinisil>
> types.path.check "/foo"
<{^_^}>
true
<infinisil>
> types.path.check /foo
<{^_^}>
true
<infinisil>
> types.str.check "/foo"
<{^_^}>
true
<infinisil>
> types.str.check /foo
<{^_^}>
false
<infinisil>
pingiun: ^^
<infinisil>
pingiun: types.str doesn't allow such paths, because when those would be used as a string, Nix would import their contents into the nix store
<infinisil>
And you don't want that for passwordFile's
<pingiun>
makes sense, thanks!
<infinisil>
I guess a separate `types.runtimePath` to indicate that would be nice
ddellacosta has quit [Ping timeout: 255 seconds]
mekeor has quit [Ping timeout: 246 seconds]
<eyJhb>
How can I get fetchgit, to checkout a specific commit? There are no tags, releases, etc.?
<{^_^}>
[nixpkgs] @Infinisil pushed 2 commits to release-18.09: https://git.io/fjLtD
<therealwaphire[m>
umm, got a question for you people who migrated from other distros. What's the KDE experience, like, on NixOS compared to another ddistro like Arch, Fedora or KDE Neon?
<slabity>
eyjhb: I believe you can use the commit sha as the revision. Might be wrong though
dhkl has joined #nixos
dhkl has quit [Changing host]
<Taneb>
How can I make an overlay to override a Python library with the library from a different version of nixpkgs?
erasmas has joined #nixos
hlolli has joined #nixos
<Taneb>
Trying to do it the obvious but ugly way gives me "Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS"
<eyJhb>
slabity: thanks ;) Now... What is the best way to say package X requires Y to be present?
<infinisil>
And adjust name+version if you want to be clean
jasongrossman has joined #nixos
<infinisil>
eyjhb: In Nix you want to build this into the derivation build for X directly. E.g. if X requires some binary of Y to be present in $PATH, you could wrap X with a wrapper that adds Y to PATH
<eyJhb>
infinisil: any good example on this for a python package?
<{^_^}>
[nixops] @mwilsoninsight opened pull request #1124 → Allow GCE VMs to be reached by private IP address if specified → https://git.io/fjLtN
<infinisil>
eyjhb: Can you give some more context? Hard to give an idiomatic example if I don't know where/how it is defined and where you need it
sumTimes has joined #nixos
<eyJhb>
infinisil: https://termbin.com/j5nv trying to implement curseradio, but I need it to have mpv available at /usr/bin/mpv
jabranham has joined #nixos
<infinisil>
eyjhb: is that hardcoded?
<eyJhb>
infinisil: somewhat hardcoded yes, but currently, I just want mpv to be available in the container as "mpv", but yes the script DOES hardcode /usr/bin/mpv, but that can `easily` (I will properly fuck it up) be changed in a patch
<{^_^}>
[nixpkgs] @veprbl opened pull request #58969 → pythonPackages.awkward: 0.8.7 -> 0.8.14, enable more tests → https://git.io/fjLqJ
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
linarcx has joined #nixos
<infinisil>
eyjhb: Nah that's *actually* very easy: `postPatch = '' substituteInPlace curseradio.py --replace /usr/bin/mpv ${mpv}/bin/mpv '';`
<eyJhb>
infinisil: I will most definitely fuck it up either way :p But what is the best way, to make mpv available still?
<Taneb>
infinisil: thanks, I'm giving that a go
<infinisil>
eyjhb: There's no way to screw that up, just copy paste that line I gave and it will work
<infinisil>
eyjhb: In Nix we don't put binaries in /usr/bin, it's literally impossible to define that for a package somehow
<eyJhb>
infinisil: It was REALLY close, but it got fucked up. But I fixed it :p Works now
<eyJhb>
But now it points to the correct mpv in /nix/store, correct?
dhkl has quit [Quit: WeeChat 2.4]
<eyJhb>
(I just needed to change curseradio.py to curseradio/curseradio.py, thanks :D )
<infinisil>
Ahh :)
<infinisil>
Yeah it points to the one in /nix/store
<infinisil>
You can check it by just looking at the built result
dhkl has joined #nixos
<eyJhb>
infinisil: works great! - Is it correct to put it under applications/audio/curseradio? Seems like radio is for SDR stuff
regulus_ has joined #nixos
<infinisil>
eyjhb: Those categories are a mess anyways, applications/audio sounds fine
knupfer has quit [Ping timeout: 240 seconds]
<eyJhb>
And is there any format in all-pkgs.nix I need to follow? Doesn't seem like much format/structure
<eyJhb>
all-packages.nix**
<infinisil>
Yeah that's a mess too, there is a little bit of structure, see the comment at the top
<infinisil>
Just try to keep the ### section correct and make it somewhat alphabetical
rauno has quit [Ping timeout: 264 seconds]
<eyJhb>
That is somewhat.. Impossible... BBBB C P CCCC etc.....
domogled has quit [Quit: domogled]
<eyJhb>
BBB CCC again.. Holy hell
jasongrossman has joined #nixos
<immae>
Hello there! I build a lot of stuff in my nix-profile, but I would like to "store" my configuration there too, is there some tools that attempt to do that at a user level? (like nixos does in /etc). Even work in progress or buggy is fine for me, I’m just wondering if something is done in that domain
<infinisil>
A lot of people use home-manager, me included :)
<immae>
cool
<immae>
Looks like exactly what I wanted :D
Ralith_ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @eyJhb opened pull request #58970 → curseradio: init at 0.2 → https://git.io/fjLqu
<eyJhb>
infinisil: another package for nixpkgs ;)
<infinisil>
Nice, just put it on the pile of open PRs back there *points at 3 meter tall stack of paper*
<eyJhb>
Well, you need something to do as well, don't you? ;)
<eyJhb>
And it's more like 58 pages of PRs :D :D
<infinisil>
So many..
<eyJhb>
Shouldn't old PRs be closed, like ones from 2014?
wolfman154 has joined #nixos
wolfman154 has quit [Client Quit]
<gchristensen>
some of them have good stuff in them, and would still like to be merged -- even if they are quite old
<gchristensen>
there is no definitely right time to close old PRs/issues just because they are old, and there is no cost to having them open I think
<infinisil>
Well I think we could close some older ones that don't seem to progress anymore. You could always reopen them again later
<eyJhb>
Would it hurt to ping a PR every X month, and if no reply close it? Then if it is somewhat important, one could easily just "ping" it to stay open
<srhb>
Seems like that might get annoying pretty fast..
<matthewbauer>
yeah if there are any that are obviously obsolete, it might make sense to close them, but this should be left to the PR author
<srhb>
I don't see the harm of open PRs anyway.
<matthewbauer>
feel free to mention people in old prs if you think they can be closed. usually authors just forget about them
<gchristensen>
I think it can be rude and upsetting to just close issues / PRs, especially if they're still relevant in some way (thanks for closing my issue, its still a bug you jerk)
<{^_^}>
#26537 (by disassembler, 1 year ago, open): lifelines: init at 2017-06-12-unstable
<{^_^}>
#29478 (by CarlOlson, 1 year ago, open): roswell: init at version 17.9.10.82
<betaboon>
is there some way to support reviewing of PRs? i would love to, but i feel kinda intrigued as to if i would fulfill the standard that other reviewers do.
<eyJhb>
Well, many others do that, to free the clutter. Because as mentioned, people just forget about it
<linarcx>
Gyus. i've create a package in nixpkgs repo. It merged 10 days age. but i can't search it via `nix search -u`. why?
<srhb>
linarcx: Follow the link above to diagnose the issue :)
wolfman154 has joined #nixos
<infinisil>
betaboon: Just testing the relevant parts is a great help, maybe you can mention that you haven't reviewed the code
<srhb>
linarcx: Short story, tests failed or have not completed yet, and evals are still going. And update is likely in the next few days, if aarch64 catches up.
<srhb>
linarcx: (The eval most likely to succeed is 217 jobs away from completion)
turion has joined #nixos
<infinisil>
betaboon: I've created #58098 which would add some simple instructions for helping with reviewing PRs
<linarcx>
srhb: If you remember i first upload a package and you merged it and after some few days(3 or 4 days, i can't remembere)it's availabe for me.
<eyJhb>
srhb: is there any way to help the build process/evaluation? I guess it is only official servers, right?
<srhb>
linarcx: Sometimes, like in this case, a bad commit is merged that prevents channels from advancing.
<srhb>
eyjhb: Yes, they have to be trusted quite a lot.
mehran has quit [Quit: leaving]
<turion>
What's the correct way to update a service like Nextcloud, installed via setting services.nextcloud.enable = true;?
<srhb>
linarcx: So then that has to be reverted, and new evals run, and they may fail, etc. etc.
<eyJhb>
srhb: damn, else it would be awesome. Have quite some server I could use every once in a while... But, not all the time etc..
<eyJhb>
I would guess it could take out quite some of the jobs
<betaboon>
infinisil: couldnt there be like a junior/senior-cooperative kinda thing? eg: ppl sign up to be junior reviewers (maybe meeting some criteria, like having successfully provided PRs), those ppl get the permission to attach like a `junior-review-done` label, and then seniors could pick those up? that might help train a group of ppl to do reviews.
<srhb>
eyjhb: We do actually have a ton of building power for x86_64-linux
<srhb>
eyjhb: That's rarely an issue.
<eyJhb>
Do we need an army of Raspberry Pis then? ;)
<srhb>
Possibly! I don't actually know what we're short on if anything. I know some people would love to promote some arm stuff if we had a lot more processing power
<srhb>
Though I doubt raspis can cut it :P
<eyJhb>
Tshhh... OpenCV takes like 3-4 hours to build on a RPi.. Wow.. I don't even want to think about VirtualBox.... That would be... Inhumane to try and run on a RPi
<betaboon>
srhb: how about those aws-arm instances?
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<srhb>
betaboon: Sorry, I'm not the right person to ask. I'm not in the infrastructure team (yet?) :P
<eyJhb>
I have a Go program for a algorithm class, that I optimzied from 2 secs to 0.2s.. But it still takes 3.5s on a RPi...
<betaboon>
i would realy love to help more. i could offer one man-day a week :)
<eyJhb>
betaboon: wish I had all that time
ubert has quit [Remote host closed the connection]
<srhb>
betaboon: Definitely appreciated!
<{^_^}>
[nixpkgs] @witkamp opened pull request #58972 → gcc-arm-embedded: add darwin support → https://git.io/fjLqA
Ralith_ has joined #nixos
<wolfman154>
Could you guys send me a link for the xserver touchpad settings(libinput) I cannot find it in the manual. I want make my touchpad like how it is in gnome3, do any of you guys know the syntax , and paste bin it?
<nschoe>
nix-shell -p qt5.full does work, it's when I include Qt as a dependency in a CMakeLists.txt that it fails immediately (find_package(Qt5Widgets REQUIRED)).
<wolfman154>
srhb: is there another link to the options for home-manager, I think they are different?
turion has joined #nixos
<{^_^}>
[nixpkgs] @scalavision opened pull request #58973 → Singularity, support multiple versions → https://git.io/fjLmt
<infinisil>
wolfman154: Nope home-manager doesn't have support for this, NixOS' options will work perfectly fine
<{^_^}>
#40706 (by lucas8, 45 weeks ago, open): Broken cmake file with Qt5.10 full
<nschoe>
matthewbauer, the weird thing is that this was solved a couple months ago (and I could dev for months), but recently (~ 2 months) it appaeared again. But in this thread, I see some commits being made to solve it. And I'm wondering what's the state of this.
<turion>
What's the correct way to update a service like Nextcloud, installed via setting services.nextcloud.enable = true;?
<{^_^}>
[nixpkgs] @cillianderoiste pushed 2 commits to master: https://git.io/fjLmn
rcshm has joined #nixos
<nschoe>
turion, update your channel and run nixos-rebuild?
<wolfman154>
Do you guys know when nixos 19 is going to be set to stable?
<linarcx>
srhb: Thank you so much.
<therealwaphire[m>
<wolfman154 "Do you guys know when nixos 19 i"> you can already start using it. I've been using for a month now without any major headache
<gchristensen>
wolfman154: it should be out soon, but unfortunately I don't have specifics beyond "soon"
<wolfman154>
Ok , sounds good
<wolfman154>
therealwaphire[m++
<{^_^}>
therealwaphire[m's karma got increased to 1
<therealwaphire[m>
is there a way I can directly install `home-manager` through my configuration.nix while installing the system itself?
<wolfman154>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 96
<wolfman154>
infinisil++
<{^_^}>
infinisil's karma got increased to 77
<wolfman154>
srhb++
<{^_^}>
srhb's karma got increased to 50
<eyJhb>
Can everybody get karma like that?!
<wolfman154>
Yes
srl295 has joined #nixos
<eyJhb>
Need to earn some sometime soon
<infinisil>
wolfman154: I know you like giving karma, but you don't need to give karma whenever somebody answers you..
<nschoe>
matthewbauer, any idea?
<eyJhb>
infinisil++
<{^_^}>
infinisil's karma got increased to 78
<eyJhb>
:p
jomik has joined #nixos
<jomik>
Anyone her using the linux-ck kernel in NixOS?
<turion>
nschoe: Maybe... that's the question. I have the feeling like I could break my state.
<eyJhb>
turion: always able to return to previous state
<nschoe>
turion, you cannot really break much: first run `nixos-rebuild build`: it will simply try to build the new state. If it fails for whatever reason: no issue, it was just a build, nothing was done.
<turion>
Nope
<eyJhb>
Just be happy you are not forced to use displaylink driver....
<eyJhb>
"forced" -> want to use a third screen, so forced to use their shitty driver
<turion>
Look at how nextcloud is defined, it creates systemd jobs that mutate your disk
<nschoe>
turion, if it succeeds, then `nixos-rebuild test` allows you to test it without swithcing to it. And then `switch` will switch it. But you can always go back to the previous state in GRUB.
<turion>
Unfortunately not
<nschoe>
turion, well whatever Nextcloud does is independant of nixOS. You would have the same disk mutation on any other system.
<turion>
No, it's nixos that does it
<turion>
It will only change back everything that's symlinked. But enabling that option also copies files around via a systemd job
<turion>
I was very surprised when I found out
<wolfman154>
rycee: do I need to add this: xsession.windowManager.command = “xmonad”; ?
<wolfman154>
rycee: to home-manager. ?
jabranham has quit [Remote host closed the connection]
<nschoe>
turion, sorry then I am not good enough at nixos to help you :/
<{^_^}>
[nixpkgs] @cillianderoiste pushed 2 commits to master: https://git.io/fjLm7
<rycee>
wolfman154: No, you do not need to set that option yourself.
Myhlamaeus has joined #nixos
fendor has quit [Ping timeout: 250 seconds]
<wolfman154>
rycee: are you talking about the command option?
<pingiun>
int to string function?
<pingiun>
nvm, toString
<nschoe>
matthewbauer, Probably yes. I have tried using a more recent version of the nixpkgs than the channel, and I used qt512 instead of qt511 and it works now :)
turion has quit [Ping timeout: 250 seconds]
clefru has quit [Quit: WeeChat 2.4]
<rycee>
wolfman154: Yeah
<matthewbauer>
nschoe: oh interesting. if you can track down the fix, we can definitely backport it to 18.09, etc.
<nschoe>
matthewbauer, what I noticed is that files 'qtbase-fixguicmake.patch' are identical in 5.11/ and 5.12/ but the files 'qtbase.patch' are different. so my guess is that the fix is hidden in there.
<{^_^}>
[nixpkgs] @eri451 opened pull request #58978 → torcs: anonscm.debian.org has moved → https://git.io/fjLYH
jonreeve[m] has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @illegalprime opened pull request #58979 → perl: substitute /bin/pwd with host pwd → https://git.io/fjLY7
jpo-joyent has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @ehmry merged pull request #58978 → torcs: anonscm.debian.org has moved → https://git.io/fjLYH
<{^_^}>
[nixpkgs] @ehmry pushed commit from @eri451 to master « torcs: anonscm.debian.org has moved »: https://git.io/fjLYA
periklis` has quit [Ping timeout: 246 seconds]
philippD has joined #nixos
jpo-joyent has joined #nixos
thaddeusmaddeus[ has quit [Ping timeout: 264 seconds]
rauno has quit [Ping timeout: 250 seconds]
thaddeusmaddeus[ has joined #nixos
mehran has joined #nixos
<apeyroux>
I am interested in static compilation with pkgsMusl which would be the best solution for me to redistribute bin outside nix. But I have prob with some haskell lib that doesn't compile... :(
<o1lo01ol1o>
nixops deploy foo -> error: a 'x86_64-linux' is required to build [...] but I am a 'x86_64-darwin'
<{^_^}>
[nixpkgs] @benley opened pull request #58980 → tilingnome: init at 2019-01-18 → https://git.io/fjLOU
<o1lo01ol1o>
The target machine is linux, why doesn't the package build there?
<mehran>
is there any declarative way to change my system icon theme?
<srhb>
o1lo01ol1o: What about the source machine? The builder needs to be linux, in this case.
<srhb>
o1lo01ol1o: And source ~ builder, here.
<wolfman154>
rycee: if I install home-manager from nixos packages, do I still need to go through the other manual steps or is everything done automatically?
<o1lo01ol1o>
srhb: the builder is darwin; I thought I had seen examples of building on the target if source architecture was incorrect
<srhb>
o1lo01ol1o: This exists, but is not the default behaviour for sure.
goibhniu1 has quit [Ping timeout: 255 seconds]
<o1lo01ol1o>
srhb: is there a way to specify my two expressions should be built on the target?
vmandela has joined #nixos
goibhniu1 has joined #nixos
<srhb>
o1lo01ol1o: The easiest solution is probably to set up a remote builder that supports Linux (I think you can even do this as, say, a docker container)
<srhb>
o1lo01ol1o: Then, any builds that require linux will be routed there.
drakonis has quit [Read error: Connection reset by peer]
<o1lo01ol1o>
srhb: cool, I'm digging through github threads now
<wolfman154>
jomik++
<{^_^}>
jomik's karma got increased to 2
<jomik>
wolfman154: Seems like home-manager in nixpkgs is just a binary, no configuration wolfman154 . So you would want to configure it as well.. I personally have a home-manager channel that I can choose to update.
<aanderse>
anyone running 19.03 and notice huge openssl collisions?
<jomik>
aanderse: I use 19.03 beta and have had no issue so far :o
<dminuoso>
Hiya. Whenever I use nix-env, Im getting this warning: name collision in input Nix expressions, skipping '/home/dminuoso/.nix-defexpr/channels_root/unstable'
<dminuoso>
Can someone explain to me, in technical terms, why that is?
<aanderse>
jomik: well not problems
<aanderse>
just loads of collisions on rebuild
<jomik>
Ah. I didn't check. I normally just start a rebuild and then leave it be till its done... Lol
judson has quit [Ping timeout: 250 seconds]
gilligan_ has quit [Quit: Leaving]
<apeyroux>
nh2: my problem is with hasql I have an error with "gshadow.h: No such file or directory".
<halvard>
Hello when I install nix and it tells me the install was successful and I can try it by closing and opening a new terminal I get this error nix-sell: Command not found.. is this a known issue?
<halvard>
Also nix-build give me the same output, obviously
<ldlework>
halvard: nix-sell? whatt'reya buyin'?
<infinisil>
Hehe
<nh2>
apeyroux: one moment, need to answer a quick question of my colleague, will respond in a bit
<infinisil>
halvard: It should have put some initialization code in ~/.bash_profile, ~/.bash_login or ~/.profile, is something nix related in any of these files?
<apeyroux>
nh2: no problem, I've been on it for 2 days so it can still wait... :)
<halvard>
nix-shell* lol
<halvard>
It did, but I deleted the previous nix install to download the multi-user daemon
zupo has joined #nixos
<halvard>
This last install told me specifically to delete those codes in ~/.profile
<apeyroux>
halvard: did you add ". $HOME/.nix-profile/etc/profile.d/nix.sh" in your bashrc?
<gchristensen>
gist.github.com works nicely and doesn't require a <?php ?> :)
<rycee>
wolfman154: As far as I know the home-manager package in Nixpkgs is unmaintained. I would recommend against using it since it is likely to be out-of-date most of the time.
<nh2>
apeyroux: well the build for `systemd` fails, interesting
<halvard>
gchristensen, HAH! thanks for the pro tip :D
<nh2>
apeyroux: What method are you using, are you using https://github.com/nh2/static-haskell-nix? I can build `hasql` with that, and it does not recursively depend on systemd in the version of nixpkgs I use
<apeyroux>
nh2: I have seen your project but I don't see how to integrate it with my project. I tried with cachix... but it doesn't work. I have to miss something.
<apeyroux>
nh2: I have to use survey/default.nix?
<nh2>
apeyroux: yes, best would be if you cloned my project, added your package to `survey.nix` (e.g. next to `xmonad =`), and built it with the example invocation from the README mentioning `haskellPackages`
<nh2>
apeyroux: I have a lot of overrides in there that aren't in upstream nixpkgs `pkgsMusl` yet, so I recommend to first do it via static-haskell-nix and then we can work our way back up to make it work in upstream nixpkgs as well
erasmus has joined #nixos
tboston_ has joined #nixos
fendor has joined #nixos
<nh2>
apeyroux: also, unrelated, avoid using `src = ./.` unless you can guarantee that the source directory never contains any non-source files, otherwise you might add binary artifacts to your build and in the worst case (if you have a dist/ directory) get weird build errors. Instead use builtins.path with a filter, see https://github.com/NixOS/nix/issues/1305#issuecomment-415902068
arjen-jonathan has joined #nixos
<nh2>
apeyroux: also, if you elaborate on `I tried with cachix... but it doesn't work` I can try and help figure it out
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #58977 → writeShellScriptBin: use build-time shell in check phase → https://git.io/fjLYo
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjLO5
mojjo has joined #nixos
<apeyroux>
nh2: ok i try with atrc-audit = self.callCabal2nix "atrc-admin" /home/alex/src/atrc-audit {};
fendor has quit [Ping timeout: 245 seconds]
<mojjo>
does anyone have an idea, why `nixos-rebuild ..` does not terminate anymore, or only after a couple of min in the last phases (restarting services, setting up tmp files). Usually I cancel the process then as the switch already happened, but it's a bit odd - even more that it happens on two different machines (with almost identical hardware though and equal config)
slack1256 has joined #nixos
tboston_ has quit [Ping timeout: 245 seconds]
<buckley310>
mojjo: perhaps a service is hanging during shutdown
<buckley310>
try rebuilding and letting it finish, and see if the journal has any messages right when the command returns
<apeyroux>
nh2: and i have this err: error: creating directory '/nix/var': Permission denied
<apeyroux>
nh2: on the other hand I can see that cachix works :)
<tilpner>
gchristensen: I have no idea what I changed (apart from microcode and blacklists), but now it at least finishes the shutdown, even if the unmount still fails. Good enough for now
rcshm_ has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
<rycee>
slack1256: `nix-shell '<nixpkgs>' -A linux`?
goibhniu1 has quit [Ping timeout: 250 seconds]
<warbo>
samrose: I'll give it a go :)
goibhniu2 has joined #nixos
<nh2>
apeyroux: nice!
<clever>
warbo: but changing the size of a swap file requires turning it off first, which requires flushing it all back into ram
<slack1256>
rycee: currently downloading that derivation, I though I only needed ncurses
<wolfman154>
rycee: on keymap.nix, the second link that I sent you
<rycee>
slack1256: Yeah, there is probably a ligher way to do it. But I guess this is easier :-)
<warbo>
ah, ok
<infinisil>
neonfuz__: Yeah that should work without problems
<slack1256>
rycee: Just to clarify, if I do `nix-shell -p ncurses`, should any program that depends dynamically on ncurses be able to find it?
<slack1256>
Or isn't as simple as that?
<rycee>
wolfman154: There are so many links everywhere. I guess it doesn't hurt to have it?
<nh2>
apeyroux: I really should get around to upstreaming most of this, but the sponsoring company I did the whole first batch of work for needed it only for a specific use case so they didn't care so much about upstreaming, since then it has been on the backburner a bit
<rycee>
slack1256: I would guess not. Perhaps if you add the lib path to LD_PRELOAD_PATH?
<slack1256>
I see, the one that sets up the environment variables is mkDerivation and nix-shell just piggy back onto that. A bare nix-shell doesn't set anything, just gives you the binaries
<wolfman154>
infinisil: you understand xkb really well, do I need layout = “us” under the xserver on the second link (my keymap.nix file) ?
<samrose>
I guess if I want to create a path in a package I need to use `mkOption`
<warbo>
slack1256: there is an attribute called 'shellHook' which you can use to set up env vars and things for nix-shell
<wolfman154>
infinisil: the second link
eyJhb has joined #nixos
<warbo>
slack1256: but that's only useful for derivations that you're writing yourself (I've not been following what your issue is about :P )
work_ has joined #nixos
<infinisil>
wolfman154: Nope, when you use xkbcomp to load the layout, the standard loading (via the layout,xkbVariant, etc. options) is completely ignored
Neo-- has joined #nixos
<carter>
gchristensen: it was that theres no sane fish shell and that cert file thingy
wfranzini has joined #nixos
<carter>
:)
<wolfman154>
infinisil: thanks, good to know, can i give you karma?
<infinisil>
If you *really* want to :)
<warbo>
woo, I now have a 5GB of swapfile :)
erictapen has quit [Ping timeout: 245 seconds]
<wolfman154>
infinisil++
<{^_^}>
infinisil's karma got increased to 79
<wolfman154>
rycee++
<{^_^}>
rycee's karma got increased to 10
goibhniu2 has quit [Ping timeout: 246 seconds]
goibhniu1 has joined #nixos
<wolfman154>
Just checking is 19.03 still in beta?
<warbo>
I'll ask in linux since this doesn't seem nixos specific anymore :)
<eacameron>
Is there a way to get nix-build/nix-env to report progress?
iceypoi has joined #nixos
<wolfman154>
rycee: thanks I tried to look through that massive manual to find it, anyways I’m going to try and fix that error, I’ll let you know if xmonad is working in home-manager
drakonis has quit [Read error: Connection reset by peer]
<wolfman154>
rycee: I’m sorry to bother you so much this is barely my 3rd week using nixos, very different from ubuntu
<slack1256>
On `nix repl` the builtin.typeOf tells me if something is a lambda. Any ways to see how many arguments it takes?
<slack1256>
or to see the docs on the repl?
iceypoi has quit [Client Quit]
iceypoi has joined #nixos
<rycee>
wolfman154: Yeah, you certainly jumped in the deep end :-) I used Nix on Debian for well over a year before trying NixOS.
<infinisil>
eacameron: Use `nix build` instead, there's no nix-env form of this though, yet
<infinisil>
And the syntax of nix build's arguments is a bit different
<rycee>
wolfman154: I would recommend reading through the Nix pills and really learning the Nix language.
<iceypoi>
exit
iceypoi has quit [Client Quit]
iceypoi has joined #nixos
orbekk has quit [Quit: WeeChat 2.0]
<eacameron>
infinisil: nix build has no -A option?
<infinisil>
eacameron: No, but equivalent syntax, see `nix build --help`
<{^_^}>
[nixpkgs] @cpages pushed 2 commits to release-19.03: https://git.io/fjLsM
<wolfman154>
rycee: yeah, one I finish installing and setting, everything up then I’ll finally be able to get back to coding, it’s nice that I can just save a copy of my configuration and paste it later if I have to, do it seems like setting everything up for the first time time is hard , but after that you can just copy and paste.
<wolfman154>
I am going to be doing free code camp in a couple of days, is it hard to install the software I that I am going to need for it? https://www.freecodecamp.org/
<wolfman154>
I’m going to need to install html5 css3 JavaScript databases node.js react.js and d3.js on nixos?
<warbo>
slack1256: not that I know of
<wolfman154>
Does nixos have nix packages for all of these?
<warbo>
slack1256: I tend to give it one argument at a time until something happens
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<slack1256>
warbo: yeah, really hacky :-P
<warbo>
slack1256: e.g. 'f 1', 'f 1 null', 'f 1 null true', etc. until it complains about something being the wrong type (then I know which one to change)
<warbo>
absolutely
<warbo>
same with 'primop', 'primop-app', etc. for builtins
<wolfman154>
14:19 wolfman154: I am going to be doing free code camp in a couple of days, is it hard to install the software I that I am going to need for it? https://www.freecodecamp.org/ 14:21 wolfman154: I’m going to need to install html5 css3 JavaScript databases node.js react.js and d3.js on nixos? 14:22 wolfman154: Does nixos have nix packages for all of these?
<infinisil>
wolfman154: You don't need to always repeat yourself, be patient
<warbo>
it looks like I *might* be able to use 'uswsusp' to hibernate (s2disk), but it doesn't appear to be in nixpkgs/nixos
<slack1256>
What is the environmental variable I need to set so ld.so find the header files (.h) ?
<warbo>
does it seem worth my while packaging it? last update was 2011
<slack1256>
LD_LIBRARY_PATH is for .so file (ie /usr/lib)
orivej has quit [Ping timeout: 246 seconds]
<infinisil>
slack1256: What does the error look like?
<slack1256>
"* Install ncurses (ncurses-devel or libncurses-dev" this is trying to run `make nconfig` on a kernel repo
<wolfman154>
infinisil: Sorry I’ve been trying to set everything up for three weeks, I finish my custom keyboard layout, almost got xmonad setup, then I need to setup xmonad, then finally install the programming languages that I need, at least once I finish all this i I can just copy and paste the config file so I don’t need to do it manually over and over again
<infinisil>
slack1256: Just adding ncurses to buildInputs should do it
<wolfman154>
infinisil: and I forgot I need to setup emacs
<infinisil>
slack1256: Try adding pkgconfig to nativeBuildInputs
<warbo>
slack1256: use 'buildInputs' with an s
<infinisil>
Oh yeah ^^
<warbo>
:P
<infinisil>
(I wish mkDerivation would complain for stuff like this)
<slack1256>
Oh, let me try that
<infinisil>
wolfman154: So yeah, using those technologies shouldn't be a problem on NixOS, but you may not be able to use the commands they give you. E.g. npm (node package manager) might not work
<wolfman154>
infinisil: so I’ll have to use nix instead?
<slack1256>
infinisil, warbo: it was what you said, writing `buildInputs and adding the nativeBuildInputs = [pkgconfig]; line.
<slack1256>
Thanks
<warbo>
:)
<slack1256>
warbo++
<infinisil>
wolfman154: Yeah, for node packages specifically
<{^_^}>
warbo's karma got increased to 1
<slack1256>
infinisil++
<{^_^}>
infinisil's karma got increased to 80
d10n-work has joined #nixos
<infinisil>
slack1256: Did it work with buildInput -> buildInputs only or was pkgconfig needed too?
<slack1256>
What I never understood is what does pkgconfig does? Is it like a database with the recommended flags for the compiler to use a library?
<wolfman154>
infinisil: that actually sounds good, I would like to just use one package manager for everything.
<d10n-work>
(on CentOS6) I run `nix-env -e git` but `which -a git` still shows ~/.nix-profile/bin/git - what is the right way to uninstall git?
<warbo>
wolfman154: Nix/NixOS is a bit of a spectrum
<slack1256>
infinisil: It needed both, writing buildInputs without the pkgconfig line didn't work.
<warbo>
you can just 'nix-env -i' all of the tools you'd use on any other distro and carry on as before, but not get any Nix benefits
<infinisil>
slack1256: I think it does stuff like output the right compiler flags so libraries get correctly passed
domogled has joined #nixos
<wolfman154>
infinisil: so far I like the nix package manager, but it’s only been three weeks
<warbo>
or use 'nix-shell' to install tools per-language or per-project, and carry on as before
<slack1256>
Thanks you guys, I am running make nconfig now :-)
rcshm has joined #nixos
<slack1256>
I will do a blog post on this some day, as nix-shell -A linux '<nixpkgs>' doesn't seem to set up ncurses
<slack1256>
Which is reasonable, it already ships with the config
<warbo>
hmm, looks like uswsusp requires fiddling with the initramfs, which is a rabbit hole I don't feel like going down right now!
<warbo>
thanks anyway everyone
<clever>
warbo: ah yeah, there are 2 ways to resume from hibernation
<d10n-work>
my next question - how do I install git with git-gui? I see a guiSupport option but I'm having trouble figuring out the right way to use it
<clever>
warbo: the 1st only works with swap parititions, and you specifiy the blockdev on the kernel cmdline
<clever>
warbo: the 2nd requires mounting the fs (probably read-only), and running a special util against the swap file
<warbo>
uswsusp needs to know the 'offset' of my swapfile on my partition
<clever>
warbo: offset alone wont work for ext4, it would be a list of offset+size pairs
<eacameron>
infinisil: so it looks like to get -A out of nix build I need to `nix build -f default.nix <thing>`
<warbo>
I was assuming that uswsusp has been abandoned for years, and isn't packaged in NixOS, etc. because the functionality's been subsumed elsewhere
<eacameron>
i.e. `nix build <thing>` doesn't work.
<warbo>
which would make sense if we just need to specify some kernel command lines
<{^_^}>
[nixpkgs] @xeji pushed commit from @ajs124 to master « coyim: 0.3.7_1 -> 0.3.11 (#58948) »: https://git.io/fjLGc
<d10n-work>
thanks infinisil
<clever>
warbo: but line 440 looks like its only for block devs, it will write the major/minor# to a magic /sys entry, then the kernel takes over resuming
<clever>
warbo: that will basically shove the entire liveusb (~400mb in size) into /boot, and give it a grub option
<warbo>
would that be advisable if I want to fiddle with the disk?
Ariakenom has quit [Read error: Connection reset by peer]
<clever>
warbo: its mainly just a second option, to save you from having to find an unused usb stick
<clever>
or if you want to keep it around later, for rescue purposes
<infinisil>
eacameron: probably `nix -f. <thing>` works too
<warbo>
(although, admittedly, I actually installed this system years ago by running the NixOS ISO inside Qemu pointing at the same drive as the host system! I just made sure the host/guest didn't touch each others partitions)
<clever>
warbo: basically, this will create the same kernel+initrd as the rescue setup, but instead of loading it with grub, it loads it with kexec
<clever>
warbo: so nixos will just forcibly hijack the cpu, and assume full control of the box, then run entirely from ram
<warbo>
wow; I'd only attempt that over SSH if the power button was within arm's reach :P
domogled has joined #nixos
vmandela has left #nixos ["Leaving"]
<gchristensen>
hehe
<d10n-work>
When I run `git gui`, I get <Fontconfig warning: "/etc/fonts/fonts.conf", line 142: blank doesn't take any effect anymore. please remove it from your fonts.conf> - is there a good way to make nix-installed programs point to the fonts.conf in the nix fontconfig package instead of my OS's fonts.conf?
<gchristensen>
I've done it from far away, but not on anything I needed
fendor has joined #nixos
<clever>
warbo: of note, my kexec image is configured to reboot itself 5 minutes before the end of the hour
<clever>
warbo: so even if you cant reach the power button, the old os will resume shortly
<clever>
as long as you havent destroyed the boot chain
<warbo>
that's a whole other kettle of fish on this machine
<warbo>
it's got libreboot installed, but I can't update the config it came with
<warbo>
so I have to manually select the 'scan for grub on (msdos1)' option every time :P
<gchristensen>
jikes
<warbo>
it supposedly checks each partition for a config file and uses it if found, but it doesn't seem to work (maybe my libreboot version's too old)
<warbo>
I don't want to reflash it myself, in case I brick it :P
<warbo>
I've learned a lot, but think I'll stick to what I know for now (GParted on a live USB; I'm sure I've got a few knocking around somewhere)
<warbo>
thanks all
<warbo>
clever++
<{^_^}>
clever's karma got increased to 121
warbo has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<sierraDelta>
Any ideas why, after running the single-user install, I'm getting complains of root's channels not being there? For some reason $NIX_PATH has `/nix/var/nix/profiles/per-user/root/channels` even though I'm not running as root?
<clever>
that command will open its nix file in an editor
rprije has joined #nixos
cyphase has joined #nixos
mekeor has joined #nixos
kvda has joined #nixos
Neo-- has quit [Ping timeout: 255 seconds]
<mekeor>
hello. i would like to debug a nix-package-definition. how can i view the source after config-phase and before compilation?
<clever>
mekeor: run `configurePhase` under nix-shell
<mekeor>
clever: the package is inside nixpkgs. i tried to invoke nix-shell with `nix-shell ./default.nix` but got an error... how do i invoke the nix-shell appropriately?
<clever>
mekeor: nix-shell -A foo, when in the root of nixpkgs
<mekeor>
clever: wow, thank you!
<slack1256>
Does anyone emacs nix-mode mess up the indentation?
<mekeor>
slack1256: i like it its indentation :)
<slack1256>
To me when opening a new-line it shifts the surrounding scope to the left size
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<slack1256>
There is a error of a misssing `extend` binding missing. I included the output of the pastebin. Anyone care to look at it? I am following the example done on the nixos manual.
wfranzini has quit [Remote host closed the connection]
alex`` has quit [Quit: WeeChat 2.4]
wfranzini has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xal has joined #nixos
<iceypoi>
just a very general question. How long does it usually take for PRs got get accepted to nixpkgs (no controversy involved)
m0rphism has quit [Ping timeout: 250 seconds]
kvda has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
erasmas has quit [Quit: leaving]
<kalbasit>
infinisil: thank you, that helps!
<kalbasit>
clever: oh interesting, I did not know about edit. Thanks!
matix has joined #nixos
o1lo01ol1o has joined #nixos
<infinisil>
iceypoi: If you ping people, mention it in chats and such it can be pretty fast, a couple of days. But if not then it can take forever
domogled has quit [Ping timeout: 255 seconds]
<iceypoi>
I see, coz' I made a tiny 10-line fix to grub (https://github.com/NixOS/nixpkgs/pull/58027) and it's been open for over two weeks, even though the code review was accepted
<samueldr>
kalbasit: looking at it, been pretty involved in bootload-y stuff especially grub
<kalbasit>
samueldr: awesome, thank you!
<kalbasit>
iceypoi: your PR is in good hands now :)
<iceypoi>
great! thanks guys
<samueldr>
(infinisil is codeowner of all nixos modules; not sure how useful in the end it is for infinisil considering how submerged in PR he must be)
<kalbasit>
samueldr++
<{^_^}>
samueldr's karma got increased to 67
<kalbasit>
samueldr: true
<samueldr>
(and of note, here in nixpkgs codeowner isn't really meant as "I'm the law" but more "notify me", at least partially)
<samueldr>
and yeah, it looks innocuous, though I have questions/nits, sorry not sorry :)
<samueldr>
(commenting on the PR)
<infinisil>
samueldr: Yeah it gets a bit overwhelming sometimes, I can't review all of them, so I have to just ignore some notifications
<kalbasit>
I wish I have more time to help you guys, trying my best :|
<{^_^}>
Nixpkgs doesn't have enough people for all incoming PRs, so we'd appreciate anybody's help with reviewing them, especially package updates. Just testing the relevant package/service and leaving a comment saying what you tested, how you tested it and whether it worked would be great. This would reduce the average time-to-merge for all of us. Thanks if you do :)
sam is now known as Guest49268
siel has quit [Ping timeout: 250 seconds]
freeman42x has quit [Ping timeout: 257 seconds]
<samueldr>
iceypoi: commented, took some time because I first looked at how technically sound the request was :)
<samueldr>
oh, and good first contribution :)
<iceypoi>
samueldr: I'll think it through again if that works, because I seem to remember that your suggestion doesn't work (was my first instinct, too)
<iceypoi>
I'll get back to you
<samueldr>
yeah, the `grub_platform` check can't happen within the nixos module; it'd have to be a pair of options (even though it's a bit inelegant)
<samueldr>
(my first instinct too was to recommend a single option and the platform check within the nixos module)
<iceypoi>
added a comment, if you're happy with it, I can make the changes roughly tomorrow and have it tested for both efi and bios.
<iceypoi>
it just so happens that my laptop needs the bios version and desktop needs efi
<samueldr>
hmm, no comment is showing up here
<iceypoi>
it's a *review*... doesn't it show up there?
<samueldr>
ah, "Start a review" needs to be "committed" to github
<iceypoi>
oh, didn't know, I just added a comment, then :P
<samueldr>
to the top right there would be a "Review changes" button I think
<samueldr>
I used the word committed, but that's overloaded; when "starting a review" you're basically batching a bunch of comments
<samueldr>
and it is finalized with the top right green "Revoew changes" button
<samueldr>
Review*
<iceypoi>
i see, didn't know. You learn something new every day xD
<worldofpeace>
Anyone know the value `python -c "from distutils.util import get_platform; print(get_platform())"` would return on a darwin builder?
<samueldr>
there are example values for Mac OS X (whatever that is) by the end of the thing
<samueldr>
hmm, might not be "right", looking at another page; looks like depending on the package manager sometimes it ends in -intel sometimes in -x86_64 according to https://github.com/MacPython/wiki/wiki/Spinning-wheels
ng0 has quit [Quit: Alexa, when is the end of world?]
over7head has joined #nixos
<over7head>
what premissions nix use for system files if they are read-only for root (/nix/store) ?
<samueldr>
the daemon handles allowing write access on a as-needed basis
<mekeor>
i'm trying to fix a bug within a nix-package-definition, namely R. during the configurePhase, the path to the `which` binary is determined and the string `@WHICH@` within some source code is replaced with this path which i think this happens in the buildPhase. currently `which` is declared as a buildInput to the package. i think the cause of the bug, which i'm to fix, is that the path is wrong during run-time of R. could it be that th
<mekeor>
path to the `which` binary which is used to replace the `@WHICH@` string refers to the path on the building machine? so that it's wrong on the target machine? how would i fix that?
<clever>
mekeor: can you pastebin the nix expression?
<samueldr>
from the manual, over7head, >> Nix will automatically make /nix/store writable as needed (using a private mount namespace) to allow modifications.
<ar1a>
so i want to roll back my nixpkgs channel to before ghc was upgraded to 8.6.4. How would I do this? keep in mind it would be downgrading packages
<clever>
mekeor: and if you read the configure script, what does it do?
<slack1256>
To change documentation on nixpkgs, is it better to talk to the maintainer of the file privately first right?
<clever>
mekeor: i think configure needs a --flag to set the which path, but it may also use the WHICH env var at build time
<mekeor>
clever: there is this line: `WHICH=$ac_cv_path_WHICH` in the configure script. and there is this line in config.log: `ac_cv_path_WHICH=/nix/store/ckd1dy6llxr1s17f9x27p9jwzdanl5yx-which-2.21/bin/which`
npmccallum has joined #nixos
<clever>
mekeor: sounds like it got things right on its own
<clever>
mekeor: if you repeat the test from the issue, under `strace -e execve -f`, what does it show being ran?
<mekeor>
clever: also there is a R-3.5.1/src/library/base/all.R generated which contains this snippet http://sprunge.us/ZXpu9n
<clever>
mekeor: yeah, looks like the generation worked perfectly
<mekeor>
yup, it's a non-existent path to `which` binary
<mekeor>
i think this confirms my initial suspicion
<clever>
mekeor: what about the output of `nix-store --verify --check-contents` ?
jasongrossman has quit [Read error: Connection reset by peer]
<mekeor>
clever: btw, i'm getting this error on NixOS/Linux and Nix/MacOS
wolfman154 has joined #nixos
erasmus has joined #nixos
wolfman154 has quit [Client Quit]
<ar1a>
so i want to roll back my nixpkgs channel to before ghc was upgraded to 8.6.4. How would I do this? keep in mind it would be downgrading packages
<clever>
ar1a: would be simpler to just point nix-build to the right rev, then to try and do a rollback
jasongrossman has joined #nixos
jluttine has quit [Ping timeout: 255 seconds]
<ar1a>
clever: can't do in this situation, i need to use haskell-ide-engine, but hie-nix (https://github.com/domenkozar/hie-nix) hasn't been updated to 8.6.4 yet and it takes hours to compile
<ar1a>
rolling back my channel to 8.6.3 is much less hassle
<mekeor>
clever: that takes forever... :/
<clever>
mekeor: yeah, it will hash everything in /nix/store/
<clever>
ar1a: and select a rev that has the ghc you want
<clever>
all revs in that list will have coverage on the binary cache, so you wont need to spend an hour building ghc
<ar1a>
oof
Rusty1 has quit [Quit: Konversation terminated!]
<clever>
ar1a: you could also try asking domenkozar next time he is on, but i think he's sleeping right now
<mekeor>
clever: you said "buildInputs are only available at build-time" but the nixpkgs-manual states buildInputs "often are programs/libraries used by the new derivation at run-time"
<clever>
mekeor: the runtime closure is a subset of the buildinputs, based on the paths that persist within $out
<clever>
mekeor: oh, if you run `strings` on the compiled binary, does the path to which appear?
<mekeor>
(R-3.5.1/bin/R is a bash-script while R-3.5.1/bin/exec/R is the binary which i ran `strings` on)
<ar1a>
error: Package ‘discord-haskell-0.8.1’ in /nix/store/zz0wcm1lsjv5k7zzh3pffhadqvjb8kdk-nixos-19.09pre173349.07b42ccf2de/nixos/pkgs/development/haskell-modules/hackage-packages.nix:67464 is marked as broken, refusing to evaluate.
<mekeor>
clever: what does that mean?
<ar1a>
i had a look on nixpkgs issues and discord-haskell is never mentioned
<ar1a>
why is it marked as broken?
jasongrossman has quit [Ping timeout: 250 seconds]
<clever>
mekeor: i suspect R is encoding the paths strangely, so nix cant properly detect the runtime deps
<clever>
mekeor: what about `strings -e l exec/R | grep which` ?
<clever>
mekeor: or `-e b`
jasongro` has quit [Client Quit]
everybodyHertz has joined #nixos
slack1256 has quit [Remote host closed the connection]
jluttine has quit [Ping timeout: 244 seconds]
wolfman154 has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mekeor>
clever: both result in 0 matches
<wolfman154>
Could someone please post the link to today’s logs I’m on my phone so I can’t
<clever>
mekeor: then either its encoding things very weirdly, or its not using the generated file
<clever>
mekeor: wait, it is using the generated file, strace confirmed that
<wolfman154>
Thanks
<wolfman154>
ar1a++
<{^_^}>
ar1a's karma got increased to 1
<wolfman154>
mekeor++
<{^_^}>
mekeor's karma got increased to 1
<mekeor>
clever++
<{^_^}>
clever's karma got increased to 122
<mekeor>
hmmmmmm
mbrgm has quit [Ping timeout: 258 seconds]
<clever>
mekeor: what if you just run `hexdump -C` on the binary, and then manually search thru it for a path, it may be one character on every 2nd or 4th byte