<wpcarro>
Has anyone figured out a way to get an iMessage client on NixOS? I've ported just about everything else from my OSX workflow to my new NixOS machine.
snajpa has joined #nixos
Mateon2 has joined #nixos
<elvishjerricco>
wpcarro: I tried to find something for that a while ago and came to the conclusion that we're just never gonna have iMessage on Linux. There used to be some CLI iMessage clients for macOS, which would have been great since I could just use those over ssh in Linux. But they don't seem to work anymore
<elvishjerricco>
Please let me know if you find anything :)
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon2 is now known as Mateon1
<wpcarro>
elvishjerricco: will do! Thanks for sharing your experience
* jasom
is not aware of any iMessage clients that work that aren't written by a company whose name rhymes with "grapple"
<jasom>
elvishjerricco: if you have a mac, you can remote into a mac from linux
phreedom_ has joined #nixos
<elvishjerricco>
jasom: You mean like VNC?
<jasom>
elvishjerricco: yeah
<elvishjerricco>
That's a sad solution :P
<elvishjerricco>
I've just started trying to get everyone I know to use Signal lol
<wpcarro>
I've been looking around for example configs using i3 on top of KDE. Anyone here have one they're willing to share?
<wpcarro>
I've been able to get just i3 and I *believe* KDE is handling my Login Screen..? My understanding is fuzzy, but I'm trying to recreate a config that I found online. Doesn't use NixOS though :/
phreedom has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #47636 → WIP nixos/nix-daemon: Organize buildMachine options with a submodule → https://git.io/fxTTB
<wpcarro>
Or maybe it's SDDM that's handling my login screen. Oy I have a lot to learn
<jasongrossman>
wpcarro: You're right that the login screen is separate from the window manager ...
<wpcarro>
jasongrossman: yeah that was my hunch. I also have two lines in my NixOS config that enable SDDM and Plasma
<jasongrossman>
wpcarro: In NixOS's options, the login screen is called the displayManager.
<jasongrossman>
Right.
<wpcarro>
jasongrossman: that's great. That would confirm that SDDM is my Login Mgr then...
<wpcarro>
that's good to know
<jasongrossman>
You can have any of the displayManager options together with either or both of a windowManager and a desktopManager.
<__red__>
Thanks gchristianson
nuncanada has joined #nixos
<jasongrossman>
Although not all combinations of windowManager and desktopManager work well together, and anyway if you like i3 then you probably don't want a desktopManager.
<__red__>
er, gchristensen - sorry, thanks :-)
<gchristensen>
common mistake :)
<wpcarro>
jasongrossman: that's reassuring. I have all three options set. It seems to me like i3 is preventing KDE from booting up. You're right though that i3 covers a lot of what I want from KDE
<jasongrossman>
You might find that KDE programs are available, even if KDE is not running as the window manager.
<wpcarro>
I have seen some examples of i3 integrating with Plasma though that look pretty cool to me, so I'm on a quest to get that working
<jasongrossman>
OK, cool. I don't remember whether I've tried that combination! Certainly not recently.
<elvishjerricco>
wpcarro: Beware, a lot of screen lockers are completely stupid and just put you a different tty. Pressing ctrl-alt-F7 often brings you back to the session without having to authenticate. I switched to light-locker, and it solves this by putting a black window over the regular session that can't be closed, and auto-switching you back to the login tty if you switch to F7
<wpcarro>
jasongrossman: Ok great. And do you have any tips for introspecting the configuration options? Do you recommend that I use a nix-repl?
<elvishjerricco>
I really wanted to use physlock, but had trouble getting it to work exactly right.
<wpcarro>
elvishjerricco: I'll definitely check out light-locker then, since I currently don't have any strong opinions about Login Managers
<jasongrossman>
I use physlock.
<wpcarro>
which I guess is synonymous with a screen locker as well..?
<elvishjerricco>
wpcarro: I think light-locker might be specific to lightdm though
<elvishjerricco>
jasongrossman: Do you have issues with the display not being allowed to go to sleep?
<wpcarro>
thank you, jasongrossman
<jasongrossman>
wpcarro: If you need tighter integration between i3 and plasma than those options give you then you're on your own! There might be things you want to configure inside plasma but I have no idea how.
<jasongrossman>
elvishjerricco: No BUT I don't actually launch it very often so I can't say I've tested it well.
<wpcarro>
this is a great start!
<wpcarro>
thanks so much
<jasongrossman>
wpcarro: If all you need is i3 managing your windows and KDE programs available to run then you should already have that, I believe.
<{^_^}>
#43774 (by Infinisil, 10 weeks ago, merged): minecraft: clean and fix up
<__red__>
I'll try it again, just in case
<__red__>
sec
ProofTechnique has joined #nixos
<ProofTechnique>
Is there a way to ghc-pkg hide/show packages from within a nix?
<ivan>
sometimes strace can point to something useful, or maybe it'll work better if you clear its download cache, or maybe this is a new issue you need to file
<ProofTechnique>
*within nix
nuncanada has joined #nixos
nuncanada has quit [Remote host closed the connection]
ProofTechnique has quit [Client Quit]
<Lisanna>
Trying to set a nix option with a remote-store (--store). Tried ssh-ng://root@example.com?max-jobs=5 as the value for --store but Nix is complaining with: "warning: unknown setting 'max-jobs'"
<sevanspowell>
But amazonka is a stack project and so doesn't have a nix file. What would be the way to proceed?
<__red__>
ivan: crashed again - I'll see if I can work out what the issue it
<__red__>
err, is
<elvishjerricco>
sevanspowell: Are you using `haskell.lib.packageSourceOverrides` or something?
<sevanspowell>
Likely will use something like `nixpkgs.haskellPackages.override`
sigmundv__ has quit [Ping timeout: 260 seconds]
blahdodo has joined #nixos
<sevanspowell>
Anything that will let me override the version of amazonka used in the particular pin of nixpkgs I'm using.
<jasom>
hunspell can't seep to find any dictionaries, even though I installed nixos.hunspellDicts.en-us any suggestions?
<elvishjerricco>
sevanspowell: However you would normally do it with fetchFromGitHub, you'll have to do the same thing but once per sub-package in the amazonka repo, using `amazonka-ec2 = "${amazonka}/amazonka-ec2";`
zemm has quit [Ping timeout: 268 seconds]
<sevanspowell>
Ah, thanks. Maybe that was the piece I was missing.
<elvishjerricco>
sevanspowell: `extend` is technically worse than `override`. I only use `extend` when I don't really care, because it's easier to type and read. But when I'm being responsible I always use `override`. See: https://github.com/NixOS/nixpkgs/issues/26561#issuecomment-397350884
blahdodo has quit [Ping timeout: 245 seconds]
<sevanspowell>
elvishjerricco: Gotcha. Thanks for your help. Where do overlays fit in this picture?
<elvishjerricco>
sevanspowell: overlays are to <nixpkgs> as overrides are to haskellPackages
<sevanspowell>
elvishjerricco: Haha thanks, no wonder I was confused.
nD5Xjz_ has quit [Ping timeout: 260 seconds]
<elvishjerricco>
sevanspowell: The syntax is slightly different though. The whole thing is kinda a mess :P
nD5Xjz has joined #nixos
<sevanspowell>
elvishjerricco: A link to that issue is definitely going in the codebase :)
blahdodo has joined #nixos
wpcarro has joined #nixos
<wpcarro>
Does anyone here use Dropbox declaratively with NixOS? I've been able to download the client with systemPackages, but I don't think it's syncing properly
<wpcarro>
I've seen workarounds online, but not sure if that's stale. Decided someone here may know
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
<__red__>
haha, I switched the repo to mine since I dind't expect upstream to commit my PR for a while
blahdodo has quit [Ping timeout: 268 seconds]
<__red__>
they committed it in 38 minutes - not bad for a project that'd been idle for months ;-)
wpcarro has quit [Remote host closed the connection]
blahdodo has joined #nixos
georges-duperon has quit [Quit: Leaving]
<sevanspowell>
wpcarro: I wouldn't mind know this too, haven't had it working for a while.
<sevanspowell>
*knowing
Ralith_ has quit [Remote host closed the connection]
worldofpeace has joined #nixos
blahdodo has quit [Ping timeout: 252 seconds]
tnks has joined #nixos
hellrazor has quit [Ping timeout: 244 seconds]
<tnks>
I see usages of lndir in Nixpkgs, but as I understand it, I don't think this creates efficient symlink trees. Is there a function in Nixpkgs that does?
<tnks>
(by efficient, I mean links of parent directories where possible).
blahdodo has joined #nixos
<tnks>
I see that buildenv uses a Perl script, I believe to implement the logic I was trying to avoid handrolling.
worldofpeace has quit [Quit: worldofpeace]
<tnks>
that code says that it's a "fork of the buildEnv in the Nix distribution"... where is that exactly?
<tnks>
In the meantime, I think this is what I want.
<Myrl-saki>
How does setupHook work?
<{^_^}>
[nixpkgs] @thoughtpolice pushed 7 commits to master: https://git.io/fxTYb
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fxTCF
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #47646 → ghc-8.2.2: Oops, added adjacent patch the one I wanted → https://git.io/fxTWZ
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #47646 → ghc-8.2.2: Oops, added adjacent patch the one I wanted → https://git.io/fxTWZ
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fxTW4
dmc has quit [Quit: WeeChat 2.2]
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #47647 → ghc-8.2.2: Oops, added adjacent patch to the one I wanted for master → https://git.io/fxTWR
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #47647 → ghc-8.2.2: Oops, added adjacent patch to the one I wanted for master → https://git.io/fxTWR
<b1000101>
hi! has anybody managed to get displaylink working on NixOS? I managed to get it installed, or at least I think I did, by adding services.xserver.videoDrivers = [ "displaylink" ]; to my configuration and doing rebuild-switch. I can use any device connected to the USB hub but the monitors. They don't get recognized in Displays (plasma5)
cmacrae has quit [Ping timeout: 252 seconds]
<sphalerite>
b1000101: videoDrivers is for graphics cards
LysergicDreams has quit [Ping timeout: 246 seconds]
<sphalerite>
b1000101: displaylink won't actually be a valid value for it. Whether and how this works depends on what graphics card you have and, uh, stuff
iyzsong has joined #nixos
<sphalerite>
b1000101: have you got it working on another linux distro?
LysergicDreams has joined #nixos
<b1000101>
sphalerite: it seems to be supported on Ubuntu, but no, I did not. However, few of my colleagues just got the same hub and are running Mint so I think I will have to try it on their machines as well :).
<sphalerite>
b1000101: it's probably more a matter of the machine that you're plugging it into than the hub
<b1000101>
sphalerite: hmmm, any advices on what might I try? When I did add the line to the config, it updated my udev rules. It gets stuck on startup (waiting on udev) for 3mins, then boots. So I guess I got the wrong end of the stick
<sphalerite>
yes, almost certainly. What kind of graphics chip do you have in your computer
<sphalerite>
?
__monty__ has joined #nixos
<b1000101>
sphalerite: intel uhd graphics 620
<sphalerite>
hm right. Intel graphics should be uncomplicated for this sort of thing, and AFAIK should work out of the box :/
pie_ has quit [Ping timeout: 260 seconds]
<b1000101>
sphalerite: :(
<b1000101>
should be, I know... BTW when tested on precisely the same hardware, Linux Mint / Ubuntu doesn't work out of the box either.
<sphalerite>
yeah ok. If they find a way to get it working there, #nixos can probbaly help you adapt that to nixos
<sphalerite>
but I really don't know anything else to add, except maybe show what the journal says when you plug it in (run journalctl -f, then plug it in)
<clever>
sphalerite: and also `udevadm monitor`
<sphalerite>
b1000101: ^
* clever
returns to bed
sigmundv__ has joined #nixos
sigmundv__ is now known as sigmundv
Cale has joined #nixos
<b1000101>
sphalerite: Loads of stuff but I cant see anything related to HDMI / DVI https://pastebin.com/UeKfNkRBhttps://pastebin.com/gVrTec9b ...sorry for spamming thing like these, I know it's not an NixOS issue so I should probably seek help elsewhere.
<{^_^}>
[nixos-homepage] @edolstra pushed to master « Nix 2.1.3 released »: https://git.io/fxTVq
<{^_^}>
[nix] @edolstra pushed 0 commits to refs/tags/2.1.3: https://git.io/fxTVc
<clever>
b1000101: i can see the usb keyboard and some kind of receiver, but no trace of the display
<b1000101>
clever: Yeap, that's exactly what's happening. Mouse and keyboard are working properly. HDMI nor DVI are read. Even the NIC is working fine.
<b1000101>
clever: *HDMI and DVI are dead
patrl has joined #nixos
<b1000101>
clever: but when I connect the HDMI straight to the laptop, it works correctly. So I know the monitor is working properly.
<b1000101>
clever: hmmm, there's actually something going on when I disconnect/connect the DVI ...
<philippD>
Is there a way to lookup packages by files they provide yet? Everything I could find on that topic are at least two year old threads where the answer was no.
mayhewluke has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @pmiddend opened pull request #47656 → jetbrains: add libnotify to wrapper to enable notifications → https://git.io/fxT6F
seanparsons has joined #nixos
mayhewluke has joined #nixos
<aminechikhaoui>
philippD: you mean something like nix-locate ?
tertl3 has quit [Quit: Connection closed for inactivity]
<Myrl-saki>
Oh cool.
blahdodo has quit [Ping timeout: 252 seconds]
<tobiasBora>
Hello,
agander has quit [Ping timeout: 268 seconds]
blahdodo has joined #nixos
<tobiasBora>
I'm still trying to understand what's wrong with KDE's desktop update. Basically when I install a new program, I can't find the application in the menu, even after a reboot. But if I run kbuildsycoca5, it appears. I was thinking that nixos didn't run kbuildsyscoca5, hence the bug... However it does run it: "sudo nixos-rebuild switch [...] kbuildsycoca5 running... [...]"
<tobiasBora>
Any idea what's wrong with that?
<hyper_ch2>
,locate bottle-websocket
<{^_^}>
Couldn't find in any packages
<philippD>
Hm, it seems nix-locate isn't quite what I want for my usecase. I want to create tool that creates nix expressions that build pdfs from a tex files. The main point is that the expression should also use a minimal texlive package (Since texlive-combined-full is way to big in some contexts). So I need to find out what I have to pass to `texlive.combi
<philippD>
ne`
<Mic92>
tobiasBora: I remember that I had to delete ~/.data/mime because it contained paths relative to my nix profile
<srhb>
philippD: That way more complex, because you could build arbitrarily complex expressions from functions like that.
<philippD>
but nix-locate doesn't find `texlive.lm` when searching for `lmodern.sty`
<Mic92>
tobiasBora: and I moved kde packages to /etc/nixos/configuration.nix.
<srhb>
philippD: Right, it's probably not built by Hydra.
<Mic92>
this kde/qt profile fiasco ist still a problem
<tobiasBora>
Mic92: all my conf is done from this file already
<tobiasBora>
Mic92: and I don't have any .data folder
<philippD>
srhb: So I have to index all texlive packages myself -.-
<srhb>
philippD: Afraid so, yes.
<srhb>
philippD: At least, *someone* has to do the work.
<srhb>
philippD: We have no way of knowing in advance what files a given expression produces.
<philippD>
srhb: right, but all expressions for texlive packages have the same structure
<srhb>
philippD: Yes. There's no fundamental reason that we couldn't build them all on Hydra (except it's a lot of work)
<philippD>
srhb: can you point me to a source that indexes nix packages? So, I don't have to write that stuff from scratch.
<srhb>
philippD: nix-locate is probably your best bet to get started, though I believe it's hardcoded to check Hydra for the files.
<srhb>
philippD: essentially you'll have to build every package in texlive, wich should be so hard (conceptually combine with each of them, and search the resulting out path)
<srhb>
iow indexing is as simple as using "find" on every result symlink that you get from building every texlive package.
<srhb>
philippD: You could also possibly just look at the symlinks from building one giant texlive combination.
<hyper_ch2>
hmmm, can I point in a python3 project as build input python27 package?
<{^_^}>
[nixpkgs] @nyanloutre opened pull request #47659 → WIP emby: 3.5.2.0 -> 3.5.3.0 and migration from mono to dotnet → https://git.io/fxT1p
<hyper_ch2>
Myrl-saki: I don't know what that does
<Myrl-saki>
hyper_ch2: It checks if it's Python 3.0 by getting the first character in the version.
<philippD>
srhb: looking at the texlive nix expressions in nixpkgs I could also just pull down all of the tarballs manually and inspect them. Might be faster then combining with each package
<Myrl-saki>
hyper_ch2: Also, that wasn't meant as a reply to you. :P
<Myrl-saki>
Just in case.
<hyper_ch2>
Myrl-saki: ah ok :)
<hyper_ch2>
trying to update deda...it now comes with a gui and one of the deps is only packaged at 2.7 :(
<srhb>
philippD: Indeed, it might. :)
<Myrl-saki>
hyper_ch2: Just a little bit of history. Windows 10 went from 8 to 10, because there are programs that check for Windows 95/98 by checking if the first character is "9"
<Myrl-saki>
hyper_ch2: Just thought that it's funny to see the same thing in Nixpkgs.
<hyper_ch2>
Myrl-saki: :)
<Myrl-saki>
# Convert derivation to a Python module.
<Myrl-saki>
What does this mean?
simukis has joined #nixos
<srhb>
Myrl-saki: It looks pretty clear. It adds a number of things to passthru that are expected for python modules, apparently.
<Myrl-saki>
Well, I don't manage Python projects, at the very least. I can at least write Python.
<srhb>
Myrl-saki: I don't think it has anything to do with a "module" in the python sense. It's a python module in the sense that nixpkgs views a python module (apparently) as something that has those attributes.
<Myrl-saki>
srhb: Ah, thanks. I did a quick search and also found "module" in Python's manual.
<Myrl-saki>
But I wasn't sure how passthru was related.
<srhb>
Right, it's just something we're using internally. search for pythonModule in the same file for instance
<colemickens>
plus, if I go that route, I'd probably just replace the one in the kernel tree directly anyway rather than make another package to include
<{^_^}>
[nixpkgs] @romildo opened pull request #47661 → theme-obsidian2: fix theme name in index.theme → https://git.io/fxT9R
patrl has quit [Ping timeout: 252 seconds]
blahdodo has joined #nixos
iyzsong has quit [Ping timeout: 268 seconds]
b1000101 has quit [Ping timeout: 256 seconds]
<teto>
I wanna write a test that makes sure a certain expression asserts . is that possible in nixpkgs?
<LnL>
you can use builtins.tryEval
<Myrl-saki>
nix-repl> builtins.tryEval "[] + 1"
<Myrl-saki>
{ success = true; value = "[] + 1"; }
reinzelmann has joined #nixos
Zajcev_ has joined #nixos
<gchristensen>
> builtins.tryEval ([] + 1)
<{^_^}>
cannot coerce a list to a string, at (string):196:19
fendor__ has joined #nixos
<gchristensen>
since nix is lazy, the rhs won't be evaluated until it is forced, which tryEval will do
<{^_^}>
[nixpkgs] @peti pushed to master « nixos: include system-level dconf resources in GDM's profile »: https://git.io/fxTQl
<Myrl-saki>
gchristensen: Ohh
<Taneb>
> builtins.tryEval (assert false; 0)
<{^_^}>
{ success = false; value = false; }
<Taneb>
> builtins.tryEval (assert true; 0)
<{^_^}>
{ success = true; value = 0; }
<Profpatsch>
Since I still haven’t found out yet: What’s the best way to advance a commit pin of nixpkgs?
blahdodo has quit [Ping timeout: 252 seconds]
<Mic92>
Profpatsch: not sure if it is the best, but there is a tool called nix-pin, never tried it however.
<Profpatsch>
It should be around a commit C that contains the features I need and have the property that it has full hydra.nixos.org binary caches for Darwin and Linux.
<Profpatsch>
Maybe cc aszlig ^
<manveru>
i usually just get the latest nixpkgs-unstable...
<gchristensen>
oh cool, my blog post on docker layer optimisation is on the frontpage of HN
<__red__>
gratz gchristensen
<manveru>
the ways of HN are mysterious
<manveru>
but it somehow got 54 points :D
Phillemann has joined #nixos
<gchristensen>
manveru: I got an email yesterday afternoon saying a moderater saw my post, thought it was pretty great, and put it in a "re-up" pool which automatically throws it on the front page randomly in the next 48hrs.
<Phillemann>
I'm getting "Unknown distribution option: 'console_scripts'" when I execute "python setup.py build"
<manveru>
sweet
<Phillemann>
Did anything change wrt. Python packaging?
<gchristensen>
yeah, was nice -- it fell off /new within like 30min yesterday
<__red__>
gchristensen: "Or to use a real example, Nix itself can render a graph of a package’s dependencies"
<__red__>
so I knew that nix was a graph, but I didn't know I could get a graphviz visualization of it
<__red__>
is there a command that does this already?
Phillemann has left #nixos ["WeeChat 2.2"]
<aminechikhaoui>
__red__: man nix-store should have some examples I think
<jasongrossman>
gchristensen: It's number 15 on the front page now.
sevanspowell has quit [Ping timeout: 256 seconds]
<shreyansh_k>
guys, what is the difference between firefox, firefoxWrapper and firefox-wrapper? Which one should I install?
<symphorien>
they are (legacy ?) aliases of one another
<symphorien>
use firefox :)
<Yaniel>
IIRC firefox is built from source, firefoxWrapper is a wrapper around the binary from mozilla
<Yaniel>
or was
<symphorien>
I thought this was firefox-bin
<Yaniel>
hm, might be
<symphorien>
the wrapper is for native plugins (for extensions of flash)
kreetx has joined #nixos
<symphorien>
s/of/or/
<kreetx>
on the new macOS I get this error: dyld: "Symbol not found: ___CFObjCIsCollectable Referenced from: /nix/store/79x43vkf7r0hhyd7h6xy7kipyv9j5kj8-libsecurity_utilities-osx-10.7.5/lib/libsecurity_utilities.0.dylib
<clever>
i used `tcpdump -i enp3s0 -p -n port 53 -e`
<Myrl-saki>
Should we try netcat?
<teto>
LnL: awesome thanks !
<clever>
netcat wont shows macs
<Myrl-saki>
Right, but it will tell us if I can connect to port 53 on my desktop from my laptop.
<clever>
53 is udp, netcat is mostly tcp
<Myrl-saki>
Anyways, with the same flags, I get two MAC addresses. Posting.
<tobiasBora>
Hum... I tried to install source-code-pro, and to update fonts using "sudo fc-cache -fv", but this font isn't detected by spacemacs... Any idea what's going wrong?
<lingeeal>
can I somehow install a package and also automatically add to configuration.nix? similar to npm i pkg --save which add the package to packages.json
<lingeeal>
I want to install this package nix-env -iA nixpkgs.haskellPackages.ghcid for example
Kelppo has quit []
<clever>
lingeeal: just add pkgs.haskellPackages.ghcid to the systemPackages and nixos-rebuild switch
agander has quit [Read error: Connection reset by peer]
Thra11 has joined #nixos
agander has joined #nixos
<lingeeal>
thanks clever
fendor__ has quit [Remote host closed the connection]
fendor__ has joined #nixos
Rusty1 has joined #nixos
nico202 has joined #nixos
<nico202>
I broke NixOS .-. my user isn't anymore in sudoers. I added it with a liveusb, sudo nixos-rebuild switch gives `the group 'nixbld' specified in 'build-users-group' does not exist`
fendor__ has quit [Ping timeout: 240 seconds]
<nico202>
I think I need to reinstall from live, or anybody knows what to do?
<symphorien>
nico202: do you have any old generations you can boot from ?
wucke13 has joined #nixos
<symphorien>
(where you are in sudoers)
<wucke13>
Hello, I'm writing a package for a nwjs application, which has a lot of npm dependencies. How can I get all the needed dependencies there?
Maxdamantus has quit [Ping timeout: 260 seconds]
Maxdamantus has joined #nixos
<nico202>
symphorien: It happened after installing another system on another partition, I thought I just damaged the drive so I've not tried older generations. But yeah I should try, I also have `system.copySystemConfiguration = true` so I might be safe.. Let's try thanks
nico202 has quit [Quit: Leaving]
iyzsong has joined #nixos
<symphorien>
to check the drive you can (as root) run nix-store --verify --check-contents iirc
agander has quit [Ping timeout: 245 seconds]
blahdodo has joined #nixos
agander has joined #nixos
nico202 has joined #nixos
<nico202>
nope, no generation works
<symphorien>
does not work as in ?
<clever>
nico202: you can use e in grub to edit the init= and change it to init=/bin/sh and then it will just give you a root shell without any login
<nico202>
clever: yes but then how do I fix it? Should I use useradd?
fendor__ has joined #nixos
<nico202>
I have root access to this partition files from the other system, but even adding me to sudoers was useless because I still cannot rebuild it
<nico202>
(without nixbld)
<clever>
nico202: edit configuration.nix and nixos-rebuild
<clever>
nico202: also check `nix-store --verify --check-contents`
seanparsons has joined #nixos
<nico202>
thanks I'll try, but I don't think it's a problem in the configuration since I did just small changes this week
<clever>
nico202: every time nixos boots, it will re-sync /etc/passwd and /etc/group with the current config
<clever>
so a reinstall isnt really needed
<betaboon>
what is required to configure a nixos-machine to be truly headles (no x-dependencies etc) ?
<{^_^}>
[nixpkgs] @xeji pushed commit from @vdemeester to master « traefik: 1.7.0 -> 1.7.1 (#47660) »: https://git.io/fxkI4
<Myrl-saki>
clever: Like, `tcpdump ... > foo`?
<clever>
tcpdump -w file
<Myrl-saki>
clever: What was the file size by the end of it?
<clever>
20 or 30gig
<Myrl-saki>
lol
<Myrl-saki>
clever: Was this under ZFS('cuz compression and stuff)
<clever>
ext4
<Myrl-saki>
clever: Now I want to generate a 30 GB lorem ipsum on ZFS, then --apparent-size.
<Myrl-saki>
Give me a few.
<jD91mZM2>
fendor: I don't think there is documentation for all functions like that. Best you can get is `man configuration.nix`... I think
<{^_^}>
[nixpkgs] @xeji merged pull request #47650 → jetbrains.idea-community: add IntelliJ keyword to the longDescription → https://git.io/fxT8d
<{^_^}>
[nixpkgs] @xeji pushed commit from @Ekleog to master « jetbrains.idea-community: add IntelliJ keyword to the longDescription (#47650) »: https://git.io/fxkLJ
<fendor>
so, there is only a documentation for builtin function?
<{^_^}>
[nixpkgs] @xeji pushed commit from @Ekleog to release-18.09 « jetbrains.idea-community: add IntelliJ keyword to the longDescription (#47650) »: https://git.io/fxkLW
<fendor>
can i not document my expressions somehow?
<fendor>
like parameters, e.g.?
<clever>
fendor: commends work in nix expressions, #
agander_ has joined #nixos
<fendor>
clever, then i can read the file, but i can not generate some kind of documentation nor in the repl read the signature or something like that
<clever>
yeah, nothing like that
<{^_^}>
[nixpkgs] @Synthetica9 opened pull request #47662 → wmfocus: init at 1.0.2 → https://git.io/fxkt2
agander has quit [Ping timeout: 252 seconds]
agander_ is now known as agander
<fendor>
i think something like that would make sense to ease the entry barrier for beginners learning the language.
agander_ has joined #nixos
agander has quit [Ping timeout: 268 seconds]
jperras has joined #nixos
keks has joined #nixos
blahdodo has joined #nixos
<keks>
hi all. I've run into https://github.com/NixOS/nixpkgs/issues/40706. As far as I can see, nix doesn't really allow using cmake for Qt development at the moment? Or do you see a workaround?
<{^_^}>
#40706 (by lucas8, 19 weeks ago, open): Broken cmake file with Qt5.10 full
<keks>
the issue is that cmake tries to find all qt plugins in the tree of qtbase, instead of the respecive plugin's tree
Friedem has joined #nixos
<Friedem>
Hi guys! I am trying to figure out if Nix is a good solution for an issue we are having and wondering if anyone here could help
agander__ has joined #nixos
<symphorien>
please ask :)
<Friedem>
I want to set up a reproducible/isolated build environment to crosscompile targeting i586
<Myrl-saki>
Friedem: i586?
<Friedem>
And my final build output actually needs to be the file system of the built binaries as well as libraries
<Myrl-saki>
Friedem: Got a specific CPU model in mind?
<aanderse>
i'm trying to make a nixos package. the contents of the package can be downloaded via a zip file, but the zip file contains another zip file with the binaries. i'm trying to think the best way to go about this. the unpackCmd?
<Myrl-saki>
Where's dontDisableStatic though.
<Myrl-saki>
Er, wait, I'm stupid. I mixed things up.
<Friedem>
not processing any of the data on the line
wucke13 has quit [Ping timeout: 252 seconds]
<Friedem>
mostly just pounding out FFTs
<manveru>
ok, so it's just a ton of old boxes that don't need upgrades :)
<gchristensen>
Friedem: yes, it is a good use case for this :)
* manveru
really wants a new CPU so building that kernel wouldn't take forever
endformationage has joined #nixos
* gchristensen
resists being a shill
<tnks>
I'm double-checking something that's annoyed me before. I know with configuration arguments coming into an import of nixpkgs you can specify overlays, and you can have many of these. But once I've got the instance of nixpkgs, can I layer on more overlays?
<gchristensen>
no, tnks
<tnks>
gchristensen: well, good to know I wasn't wrong before in that assessment.
<gchristensen>
you can reimport nixpkgs with overlays, but you can't get the list of overlays from when nixpkgs was first imported, so you have to know at eachi mport location everything you want
<gchristensen>
(import "${pkgs.path}" { ... })
<tnks>
gchristensen: yeah, that's in line with what I saw before (and still see).
<tnks>
cool, well too bad that I can't do what I wanted... good that I wasn't wrong.
<manveru>
gchristensen: i'm still on i7-4771 (haswell), which i think is now 5 years or so...
<tnks>
gchristensen: thanks for confirmation. Nixpkgs is a pretty big codebase, and I always find I'm second-guessing whether I actually know what's in it.
<manveru>
Friedem: `./result/bin/lsof: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /nix/store/iabdx190fajjc5w7gpmi7s1xr0gdfic0-glibc-2.27-i586-pc-linux-gnu/lib/ld-linux.so.2, for GNU/Linux 2.6.32, not stripped` it works :)
<gchristensen>
tnks: same? :) manveru: my desktop here is from ~'09, not great for building. I rent big builders hourly when I have something which is longer than 30min
<ravloony>
Hi all, trying to get a ruby app updated and working. I ran bundix -l with the Gemfile and Gemfile.lock from the project (staytus), and it all looks good, but when deployed, commands fail with `Could not find annotate-2.6.7 in any of the sources`. Annotate is the only development dependency.
<manveru>
yeah... if i had more than 200KB/s upload speed, i might consider that too
<manveru>
ravloony: add `groups = ["default" "development"];` to your bundlerEnv`
<Myrl-saki>
gchristensen: Specs, ifI may ask?
<manveru>
i thought using all groups was the standard though...
johanot has quit [Quit: WeeChat 2.0]
<gchristensen>
Myrl-saki: for what I rent?
<Myrl-saki>
gchristensen: For your local machine.
<gchristensen>
manveru: aahhh yeah, when I build big disk images, I realize the drv here, nix-copy-closure to a build server, build there, and then `scp` from that builder to the image-hosting server.
<Friedem>
manveru: so would I need to "nixify" our whole application to use this? or can I just set up a shell with the crossSystem arg and run make from in there?
<gchristensen>
I guess it was from late '10 or early '11
<manveru>
Friedem: using a nix-shell might work for starters
<Myrl-saki>
gchristensen: Yeah, same thought, but 16 GB of RAM is still amazing.
<gchristensen>
Myrl-saki: I put all my money in to the RAM, and then matched it with a 30gb ssd :D
<manveru>
Friedem: just add all your build deps to it and `make` should work
<Myrl-saki>
gchristensen: lol. Pretty much same thing. People wondered how I built an i5 + SSD + 16 GB of RAM under $400. The secret is no graphics.
<gchristensen>
also same :D
<manveru>
Friedem: the outputs won't go into the /nix/store though, but if you compile static binaries it doesn't matter too much
<rcherrueau>
Hi there! I have a question about `buildInputs' of `mkDerivation' function. The docs says that the `buildInputs' attribute ensures that `include' sub-directories of its packages are searched by the C compiler. But, what happens when the package contains a "dev" output, in addition to the traditional "out", such as in ImageMagick
<Myrl-saki>
rcherrueau: There used to be a problem related to that w.r.t. zlib, IIRC.
fendor has joined #nixos
<tnks>
I need a mnemonic to remember "self: super:" and not "super: self:"
blahdodo has joined #nixos
<tnks>
I guess lexical sort will do.
fendor has quit [Remote host closed the connection]
betaboon has quit [Quit: WeeChat 2.0]
<rcherrueau>
Myrl-saki: I did some tests and it appears I have to go with `buildInputs = [ pkgs.imagemagick.dev ]'
<rcherrueau>
So, any suggestion about handling dev dependencies? I mean, is it better to include `pkgs.imagemagick.dev' in buildInputs or export `{pkgs.imagemagick.dev}/lib' and `{pkgs.imagemagick.dev}/include' in preConfigure?
<Myrl-saki>
rcherrueau: The former, IMO.
<rcherrueau>
Myrl-saki: thanks a lot
<d1rewolf>
how can one prevent things like "nix search" from using a pager?
<srhb>
d1rewolf: NIX_PAGER= nix search foo
<d1rewolf>
srhb: so I should be able to put NIX_PAGER= in my shell's rc file to make that permanent?
<d1rewolf>
srhb: that should be obvious to me, so ignore that question ;)
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru>
Friedem: you need to pass the `crossSystem = { config = "i586-pc-linux-gnu"; };` to nixpkgs
<manveru>
and also select the nixpkgs with my patch
wpcarro has joined #nixos
<Friedem>
manveru: like so: with import <nixpkgs> {crossSystem = { config = "i586-pc-linux-gnu"; };};?
blahdodo has quit [Ping timeout: 252 seconds]
<Myrl-saki>
That seems to be correct. Might need parentheses though.
<wpcarro>
Hey I remember reading about installing packages from nix that weren't part of your <nixpkgs> but are part of say "unstable". Is overriding attrs the recommended way to do this? Or is there another, preferred way
<Myrl-saki>
Alternatively, `crossSystem.config`
<Myrl-saki>
wpcarro: `nix-build -f channel:...`?
<Myrl-saki>
Friedem: Same to you too.
<Myrl-saki>
Wait.
<wpcarro>
Myrl-saki: from inside of a configuration.nix file? I only need *one* package from unstable
<Friedem>
manveru: how do I point to your version of nixpkgs?
<Myrl-saki>
nix-build '<nixpkgs>' -I 'nixpkgs=https://github.com/manveru/nixpkgs/archive/i586-support.tar.gz' -A hello
<Myrl-saki>
Seems to work.
<Myrl-saki>
Now you just need to put your crossSystem.
jperras_ has joined #nixos
<wpcarro>
hmm I was hoping to define it in the configuration.nix level instead of an ad-hoc install
kreetx has quit [Ping timeout: 252 seconds]
<Myrl-saki>
wpcarro: You can still do it that way, with `(import (fetchTarball https://github.com/...) {}).foo` or something of the like.
<wpcarro>
Myrl-saki: interesting... I'll look into that route
<Myrl-saki>
wpcarro: Yeah, Nix is honestly one of the languages I'm glad I've learned.
<infinisil>
There are very minor differences with overlays and such i think
<tilpner>
d1rewolf - Try a newer version
<infinisil>
Between pkgs and pkgs.pkgs
<{^_^}>
[nixpkgs] @erikarvstedt opened pull request #47665 → Minor initrd improvements → https://git.io/fxkBs
<Myrl-saki>
infinisil: How about pkgs.pkgs.pkgs?
<infinisil>
Welllll
<Myrl-saki>
(Somewhat serious question.)
<infinisil>
In the sam way probably
<d1rewolf>
tilpner: ok...updating from unstable and will rebuild and report back. thx
<Myrl-saki>
It'd be kinda interesting if .pkgs is idempotent.
<infinisil>
But i don't know exactly in which way to begin with
<samueldr>
,pr jluttine
<{^_^}>
jluttine: 0. Sorry. 1. If you complain about PR being in limbo, always provide a number («I have an unmerged PR (#23924)…»), bot will print PR title and it might bring you an impulse-merge. 2. Please look up who commits similar work and ping these people (or request-review), keeping up with all the PRs is not really possible.
<{^_^}>
[nixpkgs] @pmiddend opened pull request #47666 → jshint: depend on phantomjs2 → https://git.io/fxkRG
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
<infinisil>
Myrl-saki: eh, that can be written with just 1
<Myrl-saki>
infinisil: Oh. :P
<infinisil>
I think every multiple let in's can be written in one
rcherrueau has quit [Remote host closed the connection]
<d1rewolf>
hi guys. I run nixos+i3+3 monitors. almost every reboot, only one of those monitors will work. the others appear to have no signal
<d1rewolf>
I've been able to fix this sometimes by manually running xrandr again (my i3 config already does this at login), but today that won't even work
<d1rewolf>
any ideas what could cause this? i'm using sddm as the login manager
<d1rewolf>
xrandr --current shows the three monitors are connected
wpcarro has quit [Remote host closed the connection]
<FRidh>
selfsymmetric-pa: from the docs, use the first solution: First, if an overlays argument to the nixpkgs function itself is given, then that is used.
<selfsymmetric-pa>
Looking at the manual...It looks like overlays are maybe a new and more general way of doing packageOverride?
<FRidh>
correct
<sphalerite>
yes, they are
<selfsymmetric-pa>
I can't find any examples of using them in a `configuration.nix`
<selfsymmetric-pa>
Do you have one?
<sphalerite>
selfsymmetric-pa: I don't think you actually need to use an overlay nor packageOverrides for this
<selfsymmetric-pa>
I think I'm missing some basic point of nix expressions. Because there's this mental block where I see an overlay but I don't know how to integrate it into my setup.
<sphalerite>
you can do environment.systemPackages = let unstablePkgs = import <unstable> {}; in [ pkgs.awscli unstablePkgs.circleci-cli pkgs.google-cloud-sdk … ];
<selfsymmetric-pa>
It's frustrating though because there is an _expression_ called "pkgs". That I get. And there's a _subexpression_ called, say "src", and I feel like I should be able to override it but for some reason it's not that simple.
<disasm>
selfsymmetric-pa: `nixpkgs.overlays = [];` I think is what you want
<sphalerite>
selfsymmetric-pa: are you trying to replace any packages within the dependency tree as opposed to just using unstable ones in your systemPackages? If not, you don't need packageOverrides or an overlay.
<keks>
hi all. I've run into https://github.com/NixOS/nixpkgs/issues/40706. As far as I can see, nix doesn't really allow using cmake for Qt development at the moment? Or do you see a workaround?
<{^_^}>
#40706 (by lucas8, 19 weeks ago, open): Broken cmake file with Qt5.10 full
<keks>
the issue is that cmake tries to find all qt plugins in the tree of qtbase, instead of the respecive plugin's tree
<selfsymmetric-pa>
sphalerite: That solution works well for everything but `kubernetes-helm` here, which needs to have some attributes overridden relative to the unstable version.
<sphalerite>
keks: a whole lot of packages in nixpkgs are already built with cmake
<selfsymmetric-pa>
FRidh: Why am I doing `let nixpkgs` when `nixpkgs` isn't part of any other subexpression. Is that hidden? Am I overriding something global?
<selfsymmetric-pa>
This seems super weird.
<sphalerite>
keks: I think you might need to use a different mkDerivation for it though and add extra-cmake-modules to the nativeBuildInputs. I'm not sure of the exact details.
<FRidh>
I'll likely made a mistake in my example. Note there is no need to use fetchTarball, I just typically use it instead of a nix-channel
slack1256 has joined #nixos
<sphalerite>
selfsymmetric-pa: even there packageOverrides/overlays is orthogonal to what you're trying to achieve
<keks>
sphalerite: I tried to get inspiration from sqlitebrowser, which uses qt and cmake, but i can't find a difference
mayhewluke has quit [Ping timeout: 252 seconds]
<selfsymmetric-pa>
sphalerite: I think that's true.
<FRidh>
selfsymmetric-pa: nixpkgs is now the whole package set, so nixpkgs.kubectl will now have the old kubectl
<slack1256>
This is non-nixos specific. How do I launch a program such that stderr isn't shown on the terminal but on the systemd-journal?
<sphalerite>
selfsymmetric-pa: instead, you can put in the systemPackages list (unstablePkgs.kubernetes-helm.overrideAttrs (orig: { name = "kubernetes-helm-2.11.0"; src = …;}))
<selfsymmetric-pa>
Super weird. I have this thing, `(import <unstable> {}).kubernetes-helm`. So I should be able to say `my-kubernetes-helm = (import <unstable> {}).kubernetes-helm.plusSomeOtherStuff{etc.}`.
<sphalerite>
selfsymmetric-pa: note overrideAttrs, which changes what's passed to mkDerivation, as opposed to .override, which replaces what's passed to the package function
<selfsymmetric-pa>
I hate this idea of overriding a global variable so that I can use a part of it later.
<selfsymmetric-pa>
I would much prefer to immutably create a `my-kubernetes-helm` package.
<selfsymmetric-pa>
sphalerite: oh that looks pretty good
<sphalerite>
slack1256: I think foobarbaz 2> >(systemd-cat) ought to work
jlou2u has joined #nixos
mayhewluke has joined #nixos
<slack1256>
sphalerite: Nice
<sphalerite>
keks: I believe the CMAKE_BUILD_TYPE is redundant, since it's passed by the cmake build hook anyway. That aside, maybe extra-cmake-modules is some sort of magic potion that will fix it — libsForQt5's callPackage should provide it
<sphalerite>
selfsymmetric-pa: that's one of the reasons I want to deprecate packageOverrides (#43560) — there are too many things with override in their names and it leads to a blurring of what's there for which purpose
<sphalerite>
it's fine once you've understood it but it's such a barrier to understanding
<selfsymmetric-pa>
Unfortunately now I get "The option value `environment.systemPackages.[definition 12-entry 6]' is not of type `package'."
<sphalerite>
you need some extra parentheses
<selfsymmetric-pa>
Ah good.
<sphalerite>
it parses that as two list elements — the first is unstablePkgs.kubernetes-helm.overrideAttrs and the second is the function passed to that
<sphalerite>
that's supposed to be passed to that*
<selfsymmetric-pa>
Awesome, now I'm just getting "attribute 'fetchurl' missing".
<selfsymmetric-pa>
And yeah, I totally agree. Now that you've shown me the `overrideAttrs` version it makes much more sense. It's all local modification, less dark magic.
<sphalerite>
you could of course add back the `with pkgs;` but what's nice about not using it is that it's very clear that some stuff is from unstable and some isn't
<selfsymmetric-pa>
Yeah, once I get it working it's just refactoring. :)
<selfsymmetric-pa>
I like this setup so much better .
<sphalerite>
overlays are only necessary when you want to modify the composition, e.g. if you want to replace libcurl with an overridden version for everything that depends on it
<selfsymmetric-pa>
Oh, interesting.
<sphalerite>
but a lot of modifications can be done at the point of use
<selfsymmetric-pa>
I'll definitely have to learn them properly at some point.
<selfsymmetric-pa>
I just bounced off them the first time.
<sphalerite>
:)
goibhniu has quit [Ping timeout: 252 seconds]
<sphalerite>
and packageOverrides are the less powerful predecessor of overlays
agander__ has joined #nixos
agander__ is now known as agander
reinzelmann has quit [Quit: Leaving]
nico202 has quit [Quit: Leaving]
<selfsymmetric-pa>
I am a huge fan of overrideAttrs.
<selfsymmetric-pa>
Will probably use it for almost everything I need to modify.
<Zajcev_>
guys ... what does it meen? ... libz.so.1 => not found ... libgmp.so.10 => not found
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
<symphorien>
mmh there is too much to build for me to test
<__red__>
workflow question. If a reviewer opens a review and I reply with a comment - do they get notified?
blahdodo has quit [Ping timeout: 252 seconds]
<__red__>
For all the other observations I made changes so re-published and "resolved"
<__red__>
I'm guessing if I'm not making the requested modifications and I'm commenting instead I shouldn't resolve it... and somehow they get notified?
<infinisil>
nbp: Cool :)
<symphorien>
Friedem: in a non-cross nix-shell I got to build a hello world with g++ -lpcrecpp a.cpp but I had to remove glibc from target_packages
<symphorien>
glibc is provided by the stdenv, so you don't need it, and if you include it apparently it messes with the c++ stdlib
<Friedem>
hmm, I don't get anythihg different when taking out glibc
<symphorien>
can you link against pcrecpp on a toy example file ?
d-fish has joined #nixos
<catern>
woah
<catern>
latrace is cool
<catern>
and not packaged in Nixpkgs
<jonge>
hey there. with "nix-store -q --size /nix/store/foobar" i can print the runtime-needed closure size, right? how do i print the size of the compile time closure?
<symphorien>
for the size, I don't know, but for just the closure nix-store -qR on the .drv I think
<infinisil>
I also copy some well working default.nix and shell.nix files from other haskell projects to get the nix part going
<Synthetica>
Any particular examples (not new to either haskell or nix, but never used them in conjunction)
<Friedem>
so it just seems that NIX_LDFLAGS aren't making it to the linker?
<jonge>
symphorien: ok this way i get the list of derivations and patches etc. etc. needed to build this, but from here, would i have to translate the derivation paths back to the result paths and count their sizes or something like that?
<infinisil>
Synthetica: And can put hackage modifications into the extends in default.nix
<infinisil>
build with `nix-build -A hashsearch`
slack1256 has quit [Ping timeout: 268 seconds]
<Friedem>
symphorien: I am running the shell with --pure
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @pmiddend to release-18.09 « jshint: depend on phantomjs2 »: https://git.io/fxkMj
<symphorien>
Friedem: then g++ should not be in the $APTH
<symphorien>
/nix/store/ipv82kisciii2a6vldnn6r1lkjmsj3qc-gcc-wrapper-7.3.0/bin/g++ is the wrong compiler
<kalbasit[m]>
can someone with Mac build access on borg (trusted user) please build my PR on Mac? https://github.com/NixOS/nixpkgs/pull/47675 cc: clever infinisil gchristensen
<symphorien>
then if the toy example links and not real thing, it is probably because of the build system. Possible culprits: ignoring $CC, hardcoding /usr/bin/gcc and so on
kiloreux has quit [Ping timeout: 252 seconds]
pie__ has quit [Ping timeout: 252 seconds]
<symphorien>
also not passing down environment variables like NIX_LDFLAGS
<samrose>
samueldr: sometime in the next 2 months 18.09 will be the "stable" release of nixos is that right-ish?
<Friedem>
symphorien: It must be, I will look into that. Thanks for your help!
<symphorien>
:)
<infinisil>
samrose: Should be stable in just a bit!
<capisce>
what do you use for screen locking?
jperras_ has joined #nixos
kiloreux has joined #nixos
<samrose>
infinisil: ah ok thanks. I just took a chance and moved my project forward from 18.03 to 18.09, and the upgrade worked without an issue. Since my project is so young, I am just going to roll with it
FRidh has quit [Quit: Konversation terminated!]
<samrose>
even building custom channels in my hydra instance, and autoUpgrade on running nodes worked
acowley has joined #nixos
<samrose>
pretty amazing to see that work without one error on the first attempt
kiloreux has quit [Ping timeout: 245 seconds]
<acowley>
Would it be okay to PR the nixos-rocm overlay packages into nixpkgs proper? They are primarily for AMD GPUs, so that's limited, but worse, they involve at least two builds of LLVM.
<infinisil>
samrose: Awesome!
<acowley>
My trouble is that the builds take a couple hours, so having users perform them is a pain. But perhaps that's also too much load to dump on hydra.
<infinisil>
acowley: What does it change?
<acowley>
infinisil: It amounts to three compilers at the moment: OpenCL, HCC, and HIP
<infinisil>
Wait, overlay packages? So it's not an overlay or..?
kiloreux has joined #nixos
<acowley>
I also have some machine learning libraries that build on HCC that I could add. Hopefully getting tensorflow building from source against those compilers, too.
<symphorien>
acowley: for users, maybe use cachix ?
<acowley>
infinisil: Right now it's structured as an overlay, but it's just a handful of packages at the end of the day.
<samrose>
infinisil: frankly, given how the upgrade of an operating system usually goes (full of errors) this really still blows me away :)
<acowley>
symphorien: I've been thinking about that, but I don't know how to track nixpkgs versions with cachix and couldn't find much information on that.
<symphorien>
I don't understand
<acowley>
symphorien: I suspect it is I who doesn't understand.
<infinisil>
acowley: I mean, we can't stop submitting packages to hydra just because it does so much already, but i see your point
<infinisil>
I'd go for it
<acowley>
symphorien: A build of one of these compilers would depend upon a particular nixpkgs commit, so it's not clear to me how this works with cachix if a user is tracking nixos-unstable themselves.
<symphorien>
ah they would have to use the same revision as yours I guess
<symphorien>
but if you pin your overlay to something which is known to be in cachix
<acowley>
symphorien: I don't think cachix supports overlays atm (there's an issue tracking this), so pinning nixpkgs across a set of packages is a bit awkward.
<infinisil>
Oh yeah that's a problem then
<acowley>
But I had trouble finding much information at all on how using cachix works, so I don't know how or if people are already dealing with this.
<infinisil>
acowley: You could just submit the packages to NUR I guess
<catern>
how do I turn off -Werror=format-security for building a Nix package?
<infinisil>
Not sure what you mean by cachix doesn't support overlays. Overlays are on the nix language level and don't have anything to do with caching derivations
<infinisil>
acowley: Oh I see now, he wants to make that command download the overlay into ~/.config/nixpkgs/overlays and add caching for the overlays new derivations
<{^_^}>
[nixpkgs] @peti pushed 7 commits to haskell-updates: https://git.io/fxkHJ
<infinisil>
Which means you can just run that command, then install a projects packages with `nix-env -iA nixpkgs.thenewderivation`
<acowley>
infinisil: Yes, that's my understanding
<{^_^}>
[nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fxkHL
<samueldr>
samrose: two blocking issues, one I'm directly in charge of and will finish this evening, #47602 , the other I'm not sure what is going on there, and how much of an issue it is, #47577
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @pmiddend to release-18.09 « jetbrains: add libnotify to wrapper to enable notifications »: https://git.io/fxkH2
<samueldr>
(the documentation update took longer to implement, but I'll be pretty pleased with it, about 90% done, most of what's left is to actively try the updated guide)
LysergicDreams has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-semigroupoids: update to latest version for ghc-8.6.x »: https://git.io/fxkH9
<tilpner>
You didn't make a mistake, same error here
Xiro` has quit [Ping timeout: 272 seconds]
<d1rewolf>
ok...so broken appimage or bug in appimage-run?
leotaku has joined #nixos
<tilpner>
Don't know yet
<tilpner>
Probably my fault, but there are some weird appimages out there
samrose has quit [Quit: Page closed]
<d1rewolf>
lol, k. i appreciate you looking at it
orivej has joined #nixos
<ejpcmac>
rawtaz: Haha, you’ll make me famous ^^ Glad you enjoyed my article :)
Anton-Latukha has quit [Quit: Leaving.]
<rawtaz>
ejpcmac: oh, hi! =)
<rawtaz>
ejpcmac: thanks a lot for writing it, good articles like that are a valuable contribution to many different areas
civodul has joined #nixos
<{^_^}>
[nixpkgs] @roberth pushed commit from Samuel Leathers to docs-trivial-builders « trivial builders: adding usage documentation for functions »: https://git.io/fxkNk
<{^_^}>
[nixpkgs] @roberth pushed commit from @gilligan to docs-lib-options « docs: lib/options.nix function documentation »: https://git.io/fxkNO
<{^_^}>
[nixpkgs] @roberth pushed commit from @gilligan to docs-lib-sources « docs: documentation for `cleanSource` »: https://git.io/fxkNG
<{^_^}>
[nixpkgs] @roberth pushed commit from @FPtje to docs-all-packages « all-packages.nix: Documented some fetch functions »: https://git.io/fxkNZ
<{^_^}>
[nixpkgs] @roberth pushed commit from @lheckemann to docs-make-channel « Document make-channel.nix »: https://git.io/fxkNC
<ejpcmac>
rawtaz: That’s what I think! There was no comprehensive article about Nix and Elixir so far, so I’ve written one :)
<ejpcmac>
rawtaz: It’s been short to write compared to my previous article about Nix, where I tell more my journey from system package managers, to asdf and then Nix. Maybe it’s too long since people doesn’t seem to read it to the end. (But being short about Nix when starting from a zero knowledge is far from simple)
<tilpner>
d1rewolf - You can test this locally with nixpkgs=https://github.com/tilpner/nixpkgs/archive/appimage-run-type-1-2.tar.gz
blahdodo has quit [Ping timeout: 245 seconds]
<ottidmes>
I was not thinking properly and did passwd to change the root passwd while installing after it failed during nixos-install, but of course that only changes the root passwd of the installer, and not the installed OS. I then unmounted the installer on my VPS and rebooted, only to find out I was unable login. And now I read that I can only remount an ISO after 6 hours... (I should just have changed the boot
<ottidmes>
prio.) So my question is, is there a default root password for root, before you set it to something else yourself?
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fxkx3
<samueldr>
ottidmes: assuming you're at a console, did you try a blank password?
<ottidmes>
I am at the console (via a VNC connection), but blank did not work
<samueldr>
if you can get to grub or to another bootloader, if that bootloader allows editing the boot option (grub does), I believe there may be a way to fix, though am unsure how exactly
<das_j>
Hey everyone, is there a way to override the system variable for nixos-rebuild?
<samueldr>
oh, there's boot.debug1mounts also
<ottidmes>
samueldr: Thanks! I will look into that
<samueldr>
boot.debug1mounts) # stop after mounting file systems
<samueldr>
ottidmes: also look at systemd's boot options, it may as well have a way to start a shell as root
<samueldr>
-> To boot directly into rescue target add systemd.unit=rescue.target or just 1 to the kernel command line. This target is useful if the problem occurs somewhere after the basic system is brought up, during the starting of "normal" services. If this is the case, you should be able to disable the bad service from here. If the rescue target will not boot either, the more minimal emergency target might.
<samueldr>
haven't validated that it works under NixOS
<ottidmes>
samueldr: I tried the boot.debug1mounts, but it just boots and asks me to login again, but you have given me plenty of others to try, so I will try those now, thanks!
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to release-18.09 « matomo: 3.5.1 -> 3.6.0 (#46242) »: https://git.io/fxkho
<ottidmes>
samueldr: I edited the entry incorrectly, so that is why it did not work, both your suggestions seem to work. I am not trying the systemd rescue suggestion, because it seems easier than working from stage 1
<samueldr>
and yes, if systemd can handle it, it should be easier
<ottidmes>
samueldr: haha, yeah, "now" trying :P but it does "not" work :P because it gives and error that root is locked, which is the whole problem, I will try the stage 1 solution then
<samueldr>
good to know, it confirms that there is no password for root :)
<samueldr>
(as it's really locked, so no way to get in that way)
<ottidmes>
samueldr: yeah, was about to remark the same, and we now know that nixos does have support for this systemd rescue
<samueldr>
if you're not worried about breaking things (if the server is really empty of anything important) I believe that editing the /etc/shadow file, removing the password from the 2nd field (which may be one single asterisk) should do the trick
<maurer>
Has anyone installec CLaSH on NixOS recently? I keep getting doctest fails
<maurer>
(I may be installing it wrong)
<samueldr>
or maybe it's an exclamation mark
<maurer>
843, I get a failing doctest due to the tutorial docs failing to import the clash prelude
<maurer>
(the dontCheck is me trying to work around doctest failing due to search paths, but it didn't seem to work)
<thoughtpolice>
Does Clash not work, or is it the dontCheck part?
<maurer>
thoughtpolice: Without dontCheck, it does not install because doctests fail
<maurer>
(I am failing to create an environment with clash installed, I have tried 821Binary, getting a libtinfo error, and 843, getting a doctest error
<thoughtpolice>
maurer: I thought about it and, I think you need to actually override the set of packages with dontCheck, not just apply dontCheck to the packages. Why? Because they might depend on each other
DigitalKiwi has left #nixos [#nixos]
<thoughtpolice>
So here's what's happening: to build 'fury' I want clash-prelude. OK, it might build that, and in this case it would turn off the checks. But now I need to build clash-ghc -- that comes later, because it depends on clash-prelude.
<thoughtpolice>
So, which version of clash-prelude does it choose? The 'dontCheck' version you added, or the original one? Answer: the original one, because you didn't override the clash-prelude *in the haskell package set itself*
<maurer>
Ah, OK. I will look up how to do that override then.
<thoughtpolice>
In other words, just putting 'dontCheck clash-prelude' into the buildInputs isn't enough; you need to make sure *all* packages that need clash-prelude see this overridden version.
<colemickens>
Is there anything that will analyze my system closure and tell me which of the Channel gating jobs apply to me?
<colemickens>
For example nixos-unstable might gate on libvirtd (I think it actually does NOT, but let's pretend it does).
<colemickens>
Maybe my systems don't need libvirtd, and I have a lot of CPU power to spare, but I want to ensure my system configs pass all of the other relevant tests.
<ottidmes>
gchristensen: although it is clear enough if you look at the other examples, the indentation of the examples might imply that they are examples of that particular argument
<gchristensen>
ah! cool, thank you, ottidmes !
<ottidmes>
gchristensen: Maybe add the type to the argument, so you do not have to count the arguments in the signature to determine the type
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes>
gchristensen: I see "Like ???" I assume that is known and will not be there in the final output?
<{^_^}>
[nixpkgs] @xeji pushed commit from @dywedir to master « i3status-rust: 0.9.0.2018-09-30 -> 0.9.0.2018-10-02 (#47687) »: https://git.io/fxIqH
<ottidmes>
gchristensen: more links would be useful, e.g. instead of just mentioning nix-shell, point to some doc of it, beginners might not know of it
<{^_^}>
[nixpkgs] @xeji pushed commit from @c0bw3b to master « gmm: 5.1 -> 5.3 (#47686) »: https://git.io/fxIqN
<ottidmes>
gchristensen: The numbering at e.g. pullImage is nice, but formatting wise I would expect the indentation before the numbers instead of after
fendor has quit [Read error: Connection reset by peer]
<gchristensen>
oh uh oh you're going a bit further on than I intended :D
<gchristensen>
but yeah, you're right! I'm taking notes for sure
<ottidmes>
haha, no problem, I stopped myself at chapter 8
<{^_^}>
[nixpkgs] @xeji pushed commit from @dywedir to master « mpv: 0.29.0 -> 0.29.1 (#47689) »: https://git.io/fxIm3
<tnks>
that's hillarious... I was writing this Nix expression in Vim, and was convinced that the syntax highlighter wasn't keeping up with reality... but it was right... I was wrong.
<colemickens>
How are you doing the patching? You might be able to have the derivation definition do that as part of building.
ajs124 has joined #nixos
<colemickens>
Or you could send upstream patches that make those paths a build-time configuration option, so that you could just set a Make flag or something, rather than having to write/maintain a patch, etc.
<colemickens>
Unfortunately I'm not skilled enough to advise more than that.
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to staging « unbound: 1.7.3 -> 1.8.0 (#46938) »: https://git.io/fxIYU
<magnetophon>
colemickens: yeah, that's what I thought too, and I wrote that in my answer to him. Just thought I'd doublecheck here.
<magnetophon>
Hmm, he just answered, but I don't understand what he's suggesting. Could someone join the conversation in the above link?
<ottidmes>
He just suggests a way for you to get access to an extra variable for you to use in your patches, from what I gather (I am no expert), while all you ask for is that /usr is not hardcoded but done via a variable
<magnetophon>
ottidmes: thanks, that's what it looks like to me. How would you solve this? Could you please comment in the issue directly, cause otherwise it turns into a game of chinese whispers... :)
<ottidmes>
magnetophon: I do not know what the policy is, I did some quick searches, but found nothing of the kind. No policy on what to suggest to package maintainers to make their packages better fit NixOS that I know of. Most packages just replace the hardcode paths. Makefiles is not my cup of tea, so cannot help you there. I would suggest asking how easy it is to make /usr variable and default to /usr (for other
<ottidmes>
distributions), while allowing you to not have to patch the Makefile, but since it is just the one line, you could also just say, it is OK as it is, and that you can easily patch it for NixOS
<{^_^}>
[nixpkgs] @nicknovitski opened pull request #47692 → kubeval: init at 0.7.3 → https://git.io/fxIOg
<gchristensen>
usually projects use the PREFIX variable to determine where to install to, and Nixpkgs supports that out of the box
jluttine has quit [Ping timeout: 245 seconds]
sigmundv__ has joined #nixos
jluttine has joined #nixos
<magnetophon>
gchristensen: I know, but this is not on where to install, but on where the pkg will find it's own variables. Could you please join us on https://github.com/sadko4u/lsp-plugins/issues/6 as I don't know what to tell him
<{^_^}>
sadko4u/lsp-plugins#6 (by magnetophon, 3 hours ago, closed): [ERR] Could not find LSP JACK core library
<magnetophon>
s/variables/libraries/
<gchristensen>
no, sorry, not my area of expertise