<infinisil>
Crazy idea: Let's get rid of the idea of users having to manage channels, and instead only provide tools to get the latest successful build of packages
<infinisil>
So you wouldn't install hello from nixpkgs version 1e6bf25, but instead say "I want hello" and the tool would search the latest nixpkgs version that has a successful build of hello
<infinisil>
And have some algorithm find a good nixpkgs that has a lot of dependencies to share
<worldofpeace>
An algorithm like that sounds like i'd be hard to make, edge cases for sure. But it could be possible, and that's what people are really after anyways so why not ensure that.
mkoenig has joined #nixos
<worldofpeace>
Also infinisil you need to be the head of affairs on "crazy" ideas :) It's a very useful skill to have and to share, and you're very good at it
<Shados>
It's what a large group are after, sure... another large group wants stably pinned versions.
<infinisil>
worldofpeace: Hehe thanks
judson_ has quit [Remote host closed the connection]
<infinisil>
Shados: There's nothing that would make pinning impossible there
judson_ has joined #nixos
xcthulhu has joined #nixos
<Shados>
You did say "only" provide tools to get the latest successful build of packages. I do think that would make for a good default, though.
<infinisil>
Ah right
Glider_IRC has quit [Quit: Leaving]
judson_ has quit [Remote host closed the connection]
judson_ has quit [Remote host closed the connection]
alexherbo29 has joined #nixos
alexherbo2 has quit [Ping timeout: 246 seconds]
<infinisil>
Idea: Have some tool that allows you to strip nixpkgs to the bare minimum that you need to build some thing
jtojnar has quit [Ping timeout: 258 seconds]
<infinisil>
Like remove all files you don't need
<infinisil>
And an extension to that: Mirror nixpkgs by only applying the commits that change the files you need
<infinisil>
This would allow you to have stripped down nixpkgs mirrors for specific applications, which minimizes the time to download pinned versions, and minimizes the need to update these mirrors
<clever>
2019-05-02 23:12:27 < infinisil> So you wouldn't install hello from nixpkgs version 1e6bf25, but instead say "I want hello" and the tool would search the latest nixpkgs version that has a successful build of hello
MinceR has quit [Ping timeout: 276 seconds]
<clever>
infinisil: thats going to make the qt version mismatch stuff 100x worse :P
<clever>
infinisil: its also going to hella-waste disk space by giving you 100 copies of glibc!
<infinisil>
Oh no
<infinisil>
Let's eliminate impurities before that
<infinisil>
It should serve as a motivator to do that :2
<clever>
youll still have 100 copies of glibc
<clever>
i recently discovered my laptop still had generation 1 of nixos, lol
<infinisil>
clever: I think if an algorithm smartly chooses versions it might work well
<clever>
it has been keeping every single build of nixos, from day 1
<infinisil>
I don't have that much space, damn
<clever>
up to gen 154 now
<infinisil>
Huh that's not a lot
<clever>
18.03 was on the disk, but is gone now
<clever>
18.09 and 19.03 are still present
<infinisil>
I'm on gen 559 now
<clever>
from maybe 6 nixpkgs revs
<clever>
my desktop is up to 470
<clever>
and the desktop is the 2nd install i ever made
<clever>
have i ever mentioned the 1st frankentstein install?
xcthulhu has quit [Quit: Leaving]
<infinisil>
Can't say that you did
sigmundv_ has quit [Ping timeout: 246 seconds]
alexherbo29 has quit [Ping timeout: 244 seconds]
orivej has joined #nixos
<clever>
infinisil: it booted x86-64 and armv6l on the same rootfs
o1lo01ol1o has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
mkoenig has quit [Remote host closed the connection]
goibhniu has joined #nixos
<infinisil>
:P
<infinisil>
That sure is something
goibhniu2 has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 252 seconds]
justanotheruser has quit [Ping timeout: 246 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
npmccallum has quit [Ping timeout: 268 seconds]
<yuken>
If I want to clone a NixOS package configuration and update/change the version, how would I install this package?
srl295 has joined #nixos
phs^ has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.4]
endformationage has quit [Quit: WeeChat 2.4]
<roconnor>
There are a couple of ways you might go about doing that. If you are thinking about your user profile, I might reach of using packageOverrides in your ~/.nixpkgs/config.nix file.
<roconnor>
updating the version of a package requires somewhat moderate surgery, but it is doable.
mwilsoncoding has quit [Ping timeout: 256 seconds]
pwnst has quit [Client Quit]
pwnst has joined #nixos
pwnst has quit [Ping timeout: 255 seconds]
mexisme has joined #nixos
fendor_ has joined #nixos
j6x has joined #nixos
domogled has joined #nixos
linarcx has joined #nixos
civodul has quit [Read error: Connection reset by peer]
civodul has joined #nixos
j6x has quit [Quit: Page closed]
Anton-Latukha has joined #nixos
roworu has joined #nixos
domogled has quit [Quit: domogled]
sigmundv_ has joined #nixos
linarcx has quit [Ping timeout: 255 seconds]
linarcx has joined #nixos
roworu has quit [Read error: Connection reset by peer]
init_6 has joined #nixos
MinceR_ is now known as MinceR
ar1a has quit [Ping timeout: 255 seconds]
jasongrossman has joined #nixos
ar1a has joined #nixos
sb0 has joined #nixos
winem_ has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
logzet has joined #nixos
Havvy has quit [Ping timeout: 255 seconds]
thc202 has joined #nixos
Makaveli7 has joined #nixos
Havvy has joined #nixos
__monty__ has joined #nixos
winem_ has quit [Remote host closed the connection]
sb0 has quit [Quit: Leaving]
johanot has joined #nixos
cfricke has quit [Ping timeout: 252 seconds]
mexisme has joined #nixos
logzet has quit [Ping timeout: 276 seconds]
logzet_ has joined #nixos
markus1189 has quit [Ping timeout: 250 seconds]
tshaynik has quit [Ping timeout: 244 seconds]
Jetien has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
markus1189 has joined #nixos
ardumont has quit [Ping timeout: 246 seconds]
rauno has quit [Ping timeout: 252 seconds]
<exarkun>
anybody know how to get tlp to actually work on nixos? "Error: ThinkPad battery features not available.". I'm guessing some missing kernel module?
mexisme has quit [Ping timeout: 246 seconds]
ardumont has joined #nixos
<mog>
exarkun, i think you need boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
<exarkun>
I added what mog suggested and rebooted and it works now, though, so immediate issue resolved :)
<mog>
also awesome
pwnst has joined #nixos
schjetne has quit [Ping timeout: 250 seconds]
Glider_IRC has quit [Quit: Leaving]
erictapen has joined #nixos
b1000101 has joined #nixos
pie_ has quit [Ping timeout: 246 seconds]
<b1000101>
sorry for stupid question, but what could be wrong if patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath /nix/store/... is giving me this error? error: syntax error, unexpected ':', expecting $end, at (string):1:144
<b1000101>
it "stops" at the first : in the path
kipari has quit [Ping timeout: 246 seconds]
xkapastel has joined #nixos
Soo_Slow has joined #nixos
<yuken>
roconnor, I didn't even notice your messages up above, thanks!
<b1000101>
oh, got it, I forgot to include stdenv.cc which :(
<yuken>
Is there any... Nix by Example? I can't wrap my head around functional languages :o
johanot has quit [Ping timeout: 255 seconds]
<__monty__>
yuken: The nix pills are usually recommended, not much of a language introduction though. Have you read the entire manual? It's worth your time.
<yuken>
Nope, __monty__ - was going to this weekend, been super busy. I've never done functional language stuff outside of super basic bash, and even then it was as object-orientated as I could make it.
<yuken>
So it's pretty confusing for me.
johanot has joined #nixos
WilliamHamilton has joined #nixos
<__monty__>
yuken: Maybe think of functions as static methods. You always have to pass a value.
<__monty__>
The other difference is functions can be values. And the syntax.
<WilliamHamilton>
at the boot I get the message `waiting for device /dev/disk/... to appear`
dslegends has joined #nixos
<WilliamHamilton>
then it says that an error occurred at the stage 1 of the boot process, and prompts me to reboot or continue (continuing leads to an error)
<WilliamHamilton>
what should I do? Why am I not inserting the passphrase for my encrypted disk?
<yuken>
__monty__, that seems oversimplified, but if that's all there is then it doesn't seem too difficult.
<yuken>
It's just a new mindset for me, hopefully I can figure it out fast.
hio has joined #nixos
<__monty__>
Careful, once you figure it out you'll be all "Why would *anyone* do OOP?!?"
erictapen has quit [Ping timeout: 258 seconds]
<cyris212>
WilliamHamilton: Have you set boot.initrd.luks.devices to right disk uuid?
<WilliamHamilton>
cyris212: no thank you, I'll rectify this!
adamantium has quit [Remote host closed the connection]
<WilliamHamilton>
I missed the importance of that step because I had a premade config
<cyris212>
Happened to me on my first NixOS installation :-)
<srhb>
yuken: For the basics of the language, people usually like this one: https://nixcloud.io/tour/
<srhb>
yuken: (First load is quite slow, but it works)
<tilpner>
krbtgt: What command are you running and how does it fail?
<tilpner>
E.g. nix-env ignores NIX_PATH by default
<krbtgt>
nix-env -iA mypackages; it doesn't find my config.nix file, so i added -f to point it there, but i can't seem to find any specifier that makes it myPackages valid
<krbtgt>
that seems to have worked; i had tried that before but couldn't ascertain why
<krbtgt>
maybe it's because i added the nixos channel as my local user
<tilpner>
nix-env lacks a lot of consistency with the other tools, it uses ~/.nix-defexpr to find available packages
<tilpner>
Which none of the other tools even knows about
<krbtgt>
yeah, my friend had told me the user-side of package management was a bit of technical debt (the ad-hoc way it works)
<krbtgt>
otherwise the system seems really nice
<manveru>
who needs package management when you got NIX_AUTO_RUN :D
<tilpner>
D:
<gchristensen>
D:
* manveru
hides
<gchristensen>
oh my dear
<gchristensen>
NIX_AUTO_INSTALL too, haha
<krbtgt>
nix-shell is neat
rprije has quit [Ping timeout: 246 seconds]
<krbtgt>
i'll approach the container/VM building stuff one at a time
<azazel>
I had an issue like this, one time and it was due missing channel in ~/.nix-channels or /root/.nix-channels
erictapen has joined #nixos
Xyliton has joined #nixos
<Xyliton>
is NixOps worth using for managing a single server?
<gchristensen>
you could but no need, really
<tilpner>
It's worth using Nix to remote-deploy to a single server
<tilpner>
nixops isn't really necessary to do that
<nh2[m]>
Xyliton: it can be worth it, because you can easily spawn a backup server with same config and so on
<Xyliton>
the server in question is in-house
Shouou has joined #nixos
<lunik1>
hey is anybody about who uses firejail on nixos? am I right in thinking any program I what wrapped should be specified in programs.firejail.wrappedBinaries but not environment.systemPackages?
<nh2[m]>
Xyliton: however nixops usually means you can't enable automatic updates, so you have to pick one of the two (only one tool can control what exactly is running on the server)
{^_^} has quit [Remote host closed the connection]
<manveru>
offlinehacker: are you still using chef?
{^_^} has joined #nixos
<gchristensen>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
erictapen has quit [Ping timeout: 250 seconds]
<gchristensen>
<3 {^_^}
<{^_^}>
{^_^}'s karma got increased to 159
<azazel>
,
<{^_^}>
Special commands: find tell locate - Commands sorted by use count, page 0 (use ,<n> to view page <n>): tofu help libraries paste unfree unstable library escape'' declarative escape" overlay pr profiling howoldis ping pinning xy ask imperative which-channel wololo exec fancy-uninstall nixlang++ pills cache channels home-manager callpackage configsearch haskell loot stuck tias -a smart-questions stateversion timer cloak dontask error nur runtimedeps
<{^_^}>
Invalid page index, the last page is number 1
<gchristensen>
nicely done infinisil
<gchristensen>
ar: thank you for the tip :)
<Xyliton>
azazel: Why should one build their binary closure remotely instead of on the server?
jchia_ has joined #nixos
iyzsong-x has joined #nixos
waleee has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
<azazel>
Xyliton: because I do development on my workstation and push the results to the server(s), anyway probably can use the remote store in the server to do all the work, by accessing it via SSH
<dmj`>
hey, how do I keep the git hash around when I do a nix build
fidart has quit [Ping timeout: 255 seconds]
<jchia_>
I've been running distros like Ubuntu, Fedora and Arch Linux. I know how to install the distros and do simple admin things like configuring ssh, using LUKS encryption and configuring the network settings. How much time would it take me to learn how to maintain a NixOS installation comfortably for personal use to do software development?
<jchia_>
I found out about NixOS because of Nix because of Haskell.
bollu has quit [Quit: Ping timeout (120 seconds)]
<gchristensen>
hard to know, jchia_ :) it is still a Linux system, but there is a ramp-up time to learn how the configuration process works.
<gchristensen>
jchia_:maybe set it up in a VM and give it a go?
bollu has joined #nixos
<jchia_>
gchristensen: I have a spare laptop and am considering trying NixOS on it.
<gchristensen>
oh great!
<qyliss^work>
We're here if you need help getting started!
<infinisil>
jchia_: to give you a random estimate, i think you'll need a couple weeks to get comfortable
<gchristensen>
qyliss^work++
<{^_^}>
qyliss^work's karma got increased to 7
<azazel>
jchia_: have you tried to use Nix alone in your current distro to get "the feeling"?
<etu>
jchia_: Just ask in the channel at any time, there's not people active at all time of the day. But there's often people here that can help :-)
<jchia_>
azazel: No, I have only heard about Nix, and only because I know Haskell and some people who use Haskell also use Nix.
<gchristensen>
give it a go, you'll love it!
<jchia_>
What are a few of the more nixos commands I should get to know first?
<qyliss^work>
+1 for nix-shell -- it's what sold me on Nix when I first saw it. Instantly have any program available for trying out / one-off use, without installing it globally
<jchia_>
Thanks, everyone.
<jchia_>
Going to install now.
domogled has joined #nixos
<zemm>
jchia_: to be clear, you don't _have_ to install NixOS to use nix in development - although why not if you can :)
<infinisil>
One time my friend had a problem with one of manjaro's packages. I then convinced him to install nix so he could install it through nix which didn't have any problems :P
Cale has quit [Ping timeout: 276 seconds]
<zemm>
we just recently used Nix with development in Win10 (Windows Subsystem for Linux)
<zemm>
there was some minor gripes in installation, but after that it worked fine
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
<infinisil>
Nice, what are those gripes? Were they fixed in nix/nixpkgs?
<manveru>
zimbatm: what do you think about adding additionalWrapperArgs to bundlerApp, so we could do the PATH injection directly?
Acou_Bass has joined #nixos
<zemm>
I can't remember, its been a few months :( But none of us had substatial knowledge of Nix, and got around it with some googling
<infinisil>
I see
<qyliss^work>
manveru: +1 from me on that idea, fwiw
MmeQuignon has quit [Ping timeout: 258 seconds]
jasongrossman has quit [Ping timeout: 245 seconds]
<WilliamHamilton>
infinisil: do you have any thoughts on how to debug why the x server is not starting in a laptop with a fresh nixos installation?
<zemm>
and the usage was a pretty basic shell.nix with all the dependencies neede by the project (go/elm/serverless so no nix-package was built, it just provided the environment)
<cyris212>
WilliamHamilton: what kind of graphics card are you using?
<zemm>
we also use Nix this way in Ubuntu and RHEL, provides huge benefits with very little knowledge needed in day to day usage
<azazel>
WilliamHamilton: have a look at `journalctl -eu display-manager`
<WilliamHamilton>
cyris212: it's an integrated card, intel HD graphics 4000
<WilliamHamilton>
azazel: the relevant line from there could be one of these two:
<WilliamHamilton>
1) modeset(0): fauked to set mode; invalid argument
<WilliamHamilton>
2) AIGLX: suspending AIGLX clients for VT switch
<azazel>
WilliamHamilton: also have a look into /var/log/X.0.log
<WilliamHamilton>
both of those have tangential issues on google, but nothing I could put to use
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil>
Hmm no idea really, are you using the nouveau driver?
<gchristensen>
hrm it seems the thunderbolt kernel module is a bit buggy
<WilliamHamilton>
azazel: that file doesn't exist for me
<WilliamHamilton>
infinisil: I'm using the default one, which I think is nouveau, I didn't add any config for that
<infinisil>
I think it should be in the display-manager logs which one was selected
bun_ has joined #nixos
o1lo01ol1o has joined #nixos
Cale has joined #nixos
<WilliamHamilton>
infinisil: I can't find anything regarding nouveau in there, but wouldn't know the other one
srid has quit [Ping timeout: 255 seconds]
nahamu_ is now known as nahamu
bun_ has quit [Client Quit]
Makaveli7 has quit [Quit: WeeChat 2.4]
<infinisil>
WilliamHamilton: When you `journalctl -u display-manager -b` and search for `LoadModule`, what do you find?
WilliamHamilton has quit [Ping timeout: 256 seconds]
<genesis>
classic nix issue i guess.
erictapen has joined #nixos
WilliamHamilton has joined #nixos
<WilliamHamilton>
infinisil: sorry, power went out, I was about to ask how did you understand that modesetting was the driver, given that there were many LoadModules?
b1000101 has quit [Quit: Leaving]
<infinisil>
Nice :)
<adisbladis>
genesis: Maybe with home-manager
mabel has joined #nixos
<infinisil>
WilliamHamilton: Just had a bunch, so I cd'd into nixpkgs/nixos/modules and did an `rg videoDrivers`, when I saw modesetting being listed
<infinisil>
s/bunch/hunch
waleee has quit [Quit: WeeChat 2.4]
<infinisil>
I'm not sure if #55583 was a good decision now..
<linarcx>
Guys, how to setup lsp-mode + emacs to get autocomplte for a c++ project? I can't figure out what sould i do? perhaps any successfull experience with deep details will be appreciate?
emily has quit [Quit: Updating details, brb]
emily has joined #nixos
orivej has quit [Ping timeout: 250 seconds]
mwilsoncoding has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<lunik1>
Ok I have wrapped git in firejail using programs.firejail.wrappedBinaries and placed git in environment.Systempackages. I kind of expected this to give collisions because the wrappedBinaries options states "You will get file collisions if you put the actual application binary in the global environment"
o1lo01ol1o has quit [Ping timeout: 276 seconds]
<lunik1>
Have I misunderstood something?
<hodapp>
raaaawr, why must BlueZ deprecate useful tools and provide no good explanation about what replaces them?
<hodapp>
I saw iqubic in here months ago asking about this same issue (missing hciconfig or hcitool)
<hodapp>
perhaps it's time for me to add the build-time flag to still build deprecated tools in bluez's derivation
<infinisil>
lunik1: You'll probably only get collisions if you put git into systemPackages yourself
<lunik1>
infinisil: that's what I did
<gchristensen>
error: Nix daemon out of memory ... nice
<infinisil>
lunik1: At build time there wasn't any warning about a collision?
<lunik1>
infinisil: there was not
<infinisil>
lunik1: How did you define wrappedBinaries?
<lunik1>
git = "${lib.getBin pkgs.git}/bin/git";
<infinisil>
Hmm not sure then
<gchristensen>
awesome I accidentally tried to import /nix/store in to a nix build :D
<lunik1>
and I get nothing when I run "sudo nixos-rebuild test" (just to check that should be where I see warnings)
zimbatm[m] is now known as zimbatm[m]1
<infinisil>
Well once it built it there won't be any more warnings
<infinisil>
(because the build is cached)
<infinisil>
or should be
<lunik1>
I don't think there were warnings the first time, can I ignore the cache?
<zimbatm>
manveru: no objection here
domogled has quit [Ping timeout: 245 seconds]
stepcut_ has joined #nixos
stepcut has quit [Ping timeout: 246 seconds]
bohan has joined #nixos
schjetne has joined #nixos
<lunik1>
ok I added aria2c and the collisions appeared, all is (not) well
zimbatm has quit []
mthst has joined #nixos
domogled has joined #nixos
zimbatm[m]1 is now known as zimbatm
zimbatm has quit [Changing host]
zimbatm has joined #nixos
mthst has quit [Client Quit]
domogled has quit [Client Quit]
npmccallum has joined #nixos
domogled has joined #nixos
npmccallum has quit [Remote host closed the connection]
npmccallum has joined #nixos
mthst has joined #nixos
<fgaz>
Infinisil: hah, that one took me a lot to fix
<fgaz>
I had to stay on an old generation for months
<fgaz>
Fortunately the 19.03 changelog listed every breaking change (I was in unstable) and I found about the driver
jonaswouters has quit [Remote host closed the connection]
dsiypl4 has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
shibboleth has joined #nixos
Shouou has quit [Ping timeout: 268 seconds]
imdoor_ has joined #nixos
mthst has quit [Quit: the bouncer died]
erictapen has quit [Ping timeout: 252 seconds]
mthst has joined #nixos
knupfer has joined #nixos
<Philonous>
Is there a way to see which generations have (successfully) booted in the past? Or even better, a command like nix-collect-garbage -d that is guaranteed to leave one bootable generation?
joko has joined #nixos
joko has quit [Changing host]
<gchristensen>
I could have sworn that nix-collect-garbage would not delete the /run/booted-system profile link, but I guess not
<clever>
it wont GC the target of booted-system, but it can delete the generation link
<gchristensen>
yeah, I thought it didn't
<clever>
so that booted version wont be put back into the bootloader
<clever>
so, while it keeps the known-good nixos, it wont let you boot it :P
<gchristensen>
seems foolishly simple to fix this :)
erictapen has joined #nixos
endformationage has quit [Ping timeout: 258 seconds]
<mthst>
i can't make boot.initrd.network work. i get this error in stage-1-init: modprobe: FATAL: Module af_packet not found in directory /lib/modules/5.0.10
stepcut_ has quit [Remote host closed the connection]
ubert has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
grw has quit [Quit: WeeChat 1.4]
<jchia_>
I just did a basic NixOS installation following the manual. However, the system is missing some important things. I can't connect to wifi because there's no wpa_supplicant. There's no vim, so I can only use nano. I think I need network connection above all. Supposing I have no Ethernet, does this mean I have to boot back to the USB and reinstall with a modified config that include the packages I need, including wpa_supplicant? If I have E
<jchia_>
thernet, maybe it'll be simpler to plug in a cable?
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #nixos
<lordcirth__>
jchia_, definitely simpler to plug in ethernet temporarily
Ariakenom has quit [Quit: Leaving]
theduke has joined #nixos
<theduke>
hey, I'm playing around with nix-env (on Arch linux) and I have some trouble understanding packages
<theduke>
eg `nix-env -qa git` shows 2 different entries, with no way to set them apart
<theduke>
the web search shows them with two different "attributes" (minimal / full)
<theduke>
but selecting those with `nix-env -iA nixos....` seems to only work on nix os, not on other distributions
<tilpner>
Use -iA nixpkgs.
<theduke>
i've scanned the user guide but this is not explained very well (attributes vs derivations etc)
<theduke>
is there a good source somewhere?
<theduke>
also , how can I get `nix-env -Qa` to show more info so I can tell the different entries apart?
iyzsong-x has quit [Ping timeout: 252 seconds]
lordcirth__ has quit [Remote host closed the connection]
<Philonous>
also, »nix-env -qaP« shows the full attribute path
lordcirth__ has joined #nixos
<Philonous>
e.g. nix-env -qaP git
WilliamHamilton has quit [Quit: Page closed]
<theduke>
ah `-P` helps
<theduke>
so attributes have a completely separate hierarchy and are not related to the package name?
<theduke>
that's quite confusing
pwnst has quit [Ping timeout: 250 seconds]
<tilpner>
Yes it is. You want to use attribute paths whenever you can
<Philonous>
Nix-pkgs is a giant hash-map from names to derivations (think make-files in FreeBSD ports). The name of the package and where the derivation for it is stored in the map are prima facie unrelated.
<Philonous>
You can have packages that aren't even stored in nixpkgs at all
<bohan>
like make phony targets?
<Philonous>
Sorry, meant to write "from attributes to derivations"
<bohan>
don't be sorry. the hard part in your sentence was actually "prima facie" :p
<tilpner>
I have a weird situation where Nix only contacts the cache about some store items, but not about others
<tilpner>
A simple writeText, built on the server and pulled over with nix-store -r works fine
<tilpner>
But a thing Hydra built with buildRustPackages does not, and I can't figure out why
<tilpner>
Even the Hydra-suggested nix-env -i line fails
andreas303 has joined #nixos
Havvy has quit [Ping timeout: 250 seconds]
<tilpner>
Does that seem familiar to any of you?
klntsky has quit [Remote host closed the connection]
<theduke>
mhm, just installed Firefox and it has a very weird pointer icon (a rotated hand) and bad UI font. (very different from native)
<theduke>
I assume that is related to gtk config?
klntsky has joined #nixos
<tilpner>
theduke: Yes, sounds likely
anon has joined #nixos
Anton-Latukha has quit [Remote host closed the connection]
anon is now known as Guest7325
<tilpner>
Nix says it's checking the substituter, but my nginx logs say differently, and I cleared ~/.cache/nix
jchia_ has joined #nixos
<jchia_>
In case I mess up, should I backup /etc/nixos/configuration.nix or keep a version history myself or does NixOS automatically keep old versions?
Shouou has joined #nixos
<tilpner>
jchia_: NixOS does not keep backups by default, though you can instruct it to do so
<lordcirth__>
jchia_, I'd use git
<tilpner>
jchia_: Many people use git to version-control their configuration
<makefu>
jchia_:short answer, no . but there are a couple of ways to get this
<makefu>
there was a post on discourse.nixos.org about that
<jchia_>
use git as root or as some other user? Which is better?
<tilpner>
You can change ownership of those files to your primary user if you want
<jchia_>
I suppose I can even symlink
jchia_ has left #nixos [#nixos]
<tilpner>
You can also move them anywhere else you want, they don't need to stay in...
<tilpner>
:/
jchia_ has joined #nixos
<tilpner>
Huh, nix-store --dump-db on the cache host aborts with an error about another invalid path
<tilpner>
That's probably not good
Shouou has quit [Read error: Connection reset by peer]
Shououo has joined #nixos
<tilpner>
And now it substitutes the path that used to not work
<tilpner>
Without me doing anything, except starting a GC
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<tilpner>
clever: I'll run that after the GC finishes, but I don't have a way to test whether things are fine anymore
<tilpner>
clever: The previously failing substitution now works, and I have no idea why
dsiypl4 has quit [Read error: Connection reset by peer]
dsiypl4 has joined #nixos
<OmnipotentEntity>
I'm having a rather obscure problem. Specifically full screening YouTube videos on my 3rd monitor only results in a black screen (rather than video, cursor still draws). My monitors are setup so that my first two monitors are on the first card, and my second is on my second card. They are GTX780s, and I'm using Base Mosiac mode. My configuration is here: https://pastebin.com/NAkbJMAU
<OmnipotentEntity>
my third* is on my second card.
drakonis has joined #nixos
theduke has quit [Remote host closed the connection]
drakonis_ has quit [Ping timeout: 250 seconds]
<goibhniu>
omnipotententity: I've had something like that from time to time, but restarting firefox or a suspend cycle would sort it out
dansho has joined #nixos
mwilsoncoding has quit [Ping timeout: 256 seconds]
Shououo has quit [Ping timeout: 255 seconds]
<OmnipotentEntity>
thanks for the tip goibhniu, unfortunately, in my case simply restarting firefox, or even rebooting doesn't fix the issue. It does seem to be isolated to firefox video though, as both mplayer and vlc as well as chromium work just fine full screen on my third monitor. But twitch on firefox, for instance, does not.
<exarkun>
is mdns-scan packaged? I can't find it with any obvious grepping. Or is something similar packaged?
<goibhniu>
:/
<clever>
,locate mdns-scan
<{^_^}>
Couldn't find in any packages
<clever>
exarkun: `avahi-browse -at` does something similar
jtojnar has joined #nixos
sb0 has quit [Quit: Leaving]
<exarkun>
thanks clever
domogled has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
dbmikus_ has joined #nixos
srl295 has joined #nixos
Anton-Latukha has joined #nixos
bgamari has quit [Ping timeout: 276 seconds]
bgamari has joined #nixos
<nh2>
I'm trying to make gstreamer gst-plugins-good work on Darwin. The install step fails with
<nh2>
The package has `outputs = [ "out" "dev" ];`, but neither `$out` nor `$dev` are used anywhere explicitly. What could be the problem here?
<nh2>
`find: '/nix/store/dis3dljpdc7mi52m6skxh0nmg2mvhb09-gst-plugins-good-1.16.0-dev': No such file or directory`
Woland[m]1 has joined #nixos
<jtojnar>
nh2[m]: probably somewhere in generic builder?
<jtojnar>
or multiple-outputs.sh
jomik has joined #nixos
<nh2>
jtojnar: does it make sense that these exist on the first place? On Linux I don't get an error, and thse `-dev` outputs exist in the store, but without contents, only `nix-support/propagated-build-inputs`. Should I delete the `"dev"` output?
<jomik>
So, I need to create an expression to build a package again. I think it is about time that I learn how to do it properly. Because I have just been modifying the phases with various debug output, like `ls` and stuff.. I am pretty certain that I should be able to open a nix-shell and then execute phases from that?
<jtojnar>
nh2: yeah, but gst-plugins-good does not have anything to move
<nh2>
jtojnar: why does it not fail for Linux though? Is it that only Linux has `nix-support/propagated-build-inputs`, and Darwin not?
<nh2>
on Linux the contents of the file is `/nix/store/psk0prgy7niw28nbvsv3r3idb91zvf8l-gst-plugins-good-1.16.0`
<jtojnar>
nh2: the file should be only created in fixupPhase
<nh2>
jtojnar: the Linux build doesn't seem to have a fixupPhase either
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kreisys has joined #nixos
<nyanloutre[m]>
hello, I tried to look on why the usb-modeswitch udev rules doesn't get applied. It seems we are incorectly patching the udev file: originaly it would call a script but we replace it by the usb_modeswitch executable without changing the arguments.
<nh2>
jomik: yes, for many builds you can do that (though I think not for all). I know of 2 ways:
<nh2>
With `nix-build`, you can run with `--keep-failed`, then cd into the failed build directory, run bash and `source env-vars`, cd into the subdir and run what you like (e.g. continue a `make` or so)
<jtojnar>
maybe darwin bash does something differently there
<nh2>
jtojnar: should I for now make the `dev` output conditional so that it's not used on darwin, or remove it completely? I'm not sure whether one could override meson options such that the dev output becomes important?
<jtojnar>
nh2: remove it completely for good plugins
<jtojnar>
nh2: I would even consider it a bug that empty dev output is allowed thanks to the nix-support directory, other outputs would fail
kenshinCH has joined #nixos
jomik has quit [Ping timeout: 245 seconds]
srid has quit [Ping timeout: 246 seconds]
ckauhaus has quit [Quit: WeeChat 2.4]
<jtojnar>
any ideas why replacing dlopen using LD_PRELOAD would break loading libraries, even if we pass the arguments right to the original implementation?
fendor_ has quit [Remote host closed the connection]
Myhlamaeus has joined #nixos
orivej has joined #nixos
<gchristensen>
> :p mypaint.meta
<{^_^}>
{ available = true; description = "A graphics application for digital painters"; homepage = "http://mypaint.org/"; license = { fullName = "GNU General Public License v2.0 or later"; shortName = "gpl2P...
<jtojnar>
something up with mypaint?
phreedom has joined #nixos
mwilsoncoding has joined #nixos
<gchristensen>
sorry, was using IRC as a lazy way to look for its info :X
<gchristensen>
(it is really good)
<etu>
:D
orivej has quit [Ping timeout: 250 seconds]
<gchristensen>
(on another note, "nix edit" is so good. `nix edit -f . mypaint`)
<mwilsoncoding>
for whatever reason, it complains that it cannot find it and the tests fail every time
<mwilsoncoding>
the same happens for other azure modules
mthst has quit [Quit: the bouncer died]
<azazel>
mwilsoncoding: probably you need to install these modules
mthst has joined #nixos
gagbo has joined #nixos
<mwilsoncoding>
azazel: how would one go about doing that? I'm putting this into a nixpkgs expression in which my checkPhase is "runHook preCheck; pytest; runHook postCheck"
<mwilsoncoding>
can I somehow include azure-applicationinsights as a member of _its own_ checkInputs ?
Guest7325 has quit [Ping timeout: 244 seconds]
Guest7325 has joined #nixos
<azazel>
mwilsoncoding: have you followed he python's packaging guide in nixpkgs manual?
freeman42x has quit [Ping timeout: 252 seconds]
<mwilsoncoding>
I have it open in a tab and am referencing it- but I'm also trying to cover ground quickly, so there's a high probability I missed something...
imdoor_ has quit [Quit: imdoor_]
<mwilsoncoding>
azazel: many thanks. I slowed down and took another look- pytest is called automatically if I just include it as a checkInput- I did not have to override checkPhase
dsiypl4 has quit [Read error: Connection reset by peer]
oida has quit [Remote host closed the connection]
dsiypl4 has joined #nixos
oida has joined #nixos
init_6 has quit []
<mwilsoncoding>
wait- now I'm remembering why I did that- checkPhase essentially calls `setup.py test` rather than 'pytest'
<gagbo>
don't you even want python -m pytest ?
sigmundv_ has quit [Ping timeout: 268 seconds]
dansho has quit [Quit: Leaving]
<manveru>
aanderse: do you know why we have two redmine versions?
<mwilsoncoding>
which, according to the documentation, appears to just be a call to pytest (tho they are assuming current directory is top level of the repository)
Guest7325 has quit [Ping timeout: 246 seconds]
jomik has joined #nixos
Guest7325 has joined #nixos
wfranzini has joined #nixos
<cocreature>
I’m trying to upgrade nixpkgs in our CI and I’m getting a lot of “error: unexpected end-of-file” errors. Is there anything I can do to fix this or at least make it less likely (e.g. increase the number of retries somewhere)
<coconnor>
howdy all. Running QT executables from the shell results in no theme. I remember solving this before but forgot how. any pointers? :(
knupfer has quit [Quit: knupfer]
<gagbo>
Apparently the doc also states it adds cwd to sys.path, which I thought it already did (I'm quite a noob in Python)
<coconnor>
cocreature: what is outputting that error? EG: the command being executed
<cocreature>
coconnor: sorry, forgot to include that. It happens while copying from the cache.
<cocreature>
It seems to be flaky and happens on different store paths each time
civodul has joined #nixos
bepvte has joined #nixos
<bepvte>
Im reading the "nix pills" guide, and I came across this syntax: pkgs = import <nixpkgs> {};
<bepvte>
Why is {} being passed to import nixpkgs?
<gchristensen>
when imported, <nixpkgs> returns a function
<bepvte>
Ah
<bepvte>
Thank you
Shououo has quit [Ping timeout: 246 seconds]
camsbury- has quit [Remote host closed the connection]
camsbury has quit [Remote host closed the connection]
alexherbo29 has quit [Read error: Connection reset by peer]
<coconnor>
cocreature: understood. Copying from http cache?
<coconnor>
(HA. co-creature. the dual of a creature? Can I read my name as the dual of a connor then?)
alexherbo29 has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
<gchristensen>
(we also have a copumpkin, and colemickens which I assume is the dual of a lemickens)
<azazel>
:-)
knupfer has joined #nixos
dslegends has quit [Quit: dslegends]
jomik has joined #nixos
U007D_ has joined #nixos
<coconnor>
XD
<cocreature>
coconnor: exactly! (two both questions ;))
U007D_ has left #nixos [#nixos]
acarrico has quit [Ping timeout: 252 seconds]
knupfer1 has joined #nixos
tbenst_ has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 276 seconds]
knupfer1 is now known as knupfer
Dema has joined #nixos
tbenst_ has joined #nixos
<Dema>
Hi! I've a small question, I've installed nixos several days ago, I'm using unstable channel, did nixos-rebuild --upgrade yesterday. Just moments ago run nix-channel --update and launched nix build --no-link -f '<nixpkgs/nixos>' config.system.build.toplevel and it's downloading 2.3GiB. Why the number is so big? I thought it should only upgrade packages that are changed, but for example, I have two derivations of gimp in store of the same
<Dema>
I wonder can I somehow see why it's being upgraded?
ricekrispie2 has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
domogled has quit [Ping timeout: 255 seconds]
ricekrispie has quit [Ping timeout: 258 seconds]
<coconnor>
Dema: try `nix build --dry-run`
<gchristensen>
Dema: if a very low level library changed, it will cause everything that depended upon it to rebuild as well
knupfer1 is now known as knupfer
<gchristensen>
so in those cases you'll end up with, for example, two gimps
Jetien has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
<Dema>
Yeah, I was thinking that maybe something like glibc was changed. Just wanted to ask for some tools to explore what is going on there :)
jomik has joined #nixos
<jomik>
I have to patch a binary that has an rpath of `$ORIGIN:$ORIGIN/../lib`, wth is origin? :D
<blackriversoftwa>
angerman: In the IOHK haskell.nix infrastructure: is there a way to override mkDerivation (say, to add a shell hook) for a package set?
mexisme has quit [Ping timeout: 268 seconds]
<zeta>
well it looks like clamav is scanning the whole system, i don't know ?
jomik has quit [Quit: WeeChat 2.4]
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zeta>
i just want to make sure clamav is scanning firefox ?
<Yaniel>
firefox itself or your user profile?
matix has joined #nixos
<coconnor>
huh. interesting. nixos provides a mostly blank config to clamd
<coconnor>
which, without setting extraConfig, looks to set up clamd to the defaults
<coconnor>
whatever those are
o1lo01ol1o has joined #nixos
<coconnor>
the clamd docs, however, reference clamd.conf.example as a prototype config.
<zeta>
well i just want clamav to scan the whole system(including firefox)
<coconnor>
if the nixos config was derived from clamd.conf.example then this would be pretty straight forward to answer
<zeta>
:(
<coconnor>
"Look at the config and see what it says". as is tho.. the config is blank so it is kind of a mystery to what the config *is*
<coconnor>
lemme try enablign the module to double check that haha brb
<camsbury>
clever: I remember you telling me before some command you could run to get the hash of your current nixpkgs channel in nix repl?
<camsbury>
I'd like to have that command so I could keep track of the versions I use when I update
zeta has quit [Quit: WeeChat 2.4]
ixxie has joined #nixos
<tilpner>
camsbury: Perhaps it was lib.version, which doesn't show a hash here, but might with proper channels
jackdk has quit [Ping timeout: 258 seconds]
lordcirth has quit [Remote host closed the connection]
lordcirth has joined #nixos
eraserhd has joined #nixos
tbenst_ has quit [Remote host closed the connection]
tbenst_ has joined #nixos
zxcvbnm7358 has quit [Ping timeout: 246 seconds]
<eraserhd>
Is there a way, with nix-env (on Mac, so not NixOS), to store a file in my dotfiles repo to install a bunch of stuff? The only way I can find so far is to build a package with a bunch of dependencies.
<Dema>
I made a fix to broken pygame derivation, how can I replace broken derivation with correct one locally so I can try to rebuild switch everything that depends on it?..
mexisme has joined #nixos
o1lo01ol1o has joined #nixos
<LnL>
eraserhd: I assume you mean eg. buildEnv, you can do something like this as an alternative
<Dema>
I can successfully build it with nix-build -A python37Packages.pygame, but I don't know how to force other packages to use it instead of one from nixpkgs.
<Dema>
At least I wanted to try to build frescobaldi which depends on it.
camsbury has quit [Ping timeout: 255 seconds]
camsbury has joined #nixos
lordcirth has quit [Remote host closed the connection]
<LnL>
frescobaldi.override { pygame = ...; }
wfranzini has quit [Remote host closed the connection]
<camsbury>
ty @tilpner
wfranzini has joined #nixos
<gchristensen>
bgamari: looking like Monday/Tuesday btw
* bgamari
tries to figure out what this means
<gchristensen>
oh, oops
<gchristensen>
right. 19.03 on Packet.com
<bgamari>
ahh
<bgamari>
right
<eraserhd>
LnL: this looks pretty nice, actually. ty!
<Dema>
Thanks! I've found something in CONTRIBUING.md guide. They say I should run nix-shell -p nix-review --run "nix-review pr XXX". Doing it now.
Dema has quit [Ping timeout: 256 seconds]
<Unode>
hi all, if I want to create a derivation that consists of a python environment (with dependencies) and a python script to be downloaded and added to bin/ , is mkDerivation the apropriate function or is there a better suited one?
<camsbury>
I have used mkDerivation and mkShell interchangeably in a `shell.nix`, calling `nix-shell` to activate
<camsbury>
haven't done more research yet
<camsbury>
but you get your deps for free just putting them into `buildInputs`
<camsbury>
not sure about the best way to add the script, maybe a shellHook]d
ixxie has quit [Ping timeout: 252 seconds]
<infinisil>
Unode: Yeah, you can install the binary in $out/bin like normal, and set `pythonPath = [ pythonPackages.foo ... ]; nativeBuildInputs = [ pythonPackages.wrapPython ]; postFixup = ''wrapPythonPrograms'';`
<infinisil>
Could even use pkgs.runCommand or runCommandNoCC
<Unode>
infinisil: lots of stuff I'm not entirely familiar with in your examples
<Unode>
I'll explore those options, thanks
<Unode>
camsbury: I do have a nix-shell solution as well but using shebangs which adds 2.5 seconds of startup time
<Unode>
so not really practical
<infinisil>
It's really just: wrapPythonPrograms wraps everything in $out/bin/* with the correct python interpreter, while listening to the $pythonPath env var for packages it needs. wrapPython is added to nativeBuildInputs such that the wrapPythonPackages becomes available
knupfer has quit [Ping timeout: 276 seconds]
<infinisil>
It's probably the easiest way to make python binaries
<camsbury>
ah okay
<camsbury>
good to know infinisil
<Unode>
infinisil: and to fetch the python script? fetchurl?
<infinisil>
Unode: The simplest way is `pkgs.runCommandNoCC "foo" { pythonPath = ...; nativeBuildInputs = ...; } ''mkdir -p $out/bin; cp ${fetchFromGitHub { ... }} $out/bin; wrapPythonPrograms"`
<Unode>
but was trying to skip a couple of hops, then again there's a setup.py so maybe there's a better way...
<infinisil>
Ah well if there's a setup.py the standard buildPythonPackage should work
<Unode>
will give that a try
talqu_` has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
Guest7325 has quit [Quit: WeeChat 2.4]
Ariakenom has joined #nixos
__monty__ has quit [Quit: leaving]
iceypoi has joined #nixos
<talqu_`>
In a haskell project nix shell `cabal new-run` words, but now nix-build release.nix fails giving me this error: ghc: can't find a package database at /home/talqu/.cabal/store/ghc-8.6.4/package.db
knupfer has joined #nixos
talqu_ has joined #nixos
<infinisil>
talqu_`: You need to clean your sources for nix builds
<talqu_`>
infinisil: how do i do that?
<infinisil>
Otherwise you'll have stuff like environment files and intermediate build outputs in your nix builds, which are impure
<infinisil>
talqu_`: I personally use lib.sourceByRegex
<infinisil>
talqu_`: Something like `src = lib.sourceByRegex ./. [ "src.*" ".*.cabal" ];` should probably work
vidbina has joined #nixos
<Unode>
infinisil: hum... and what if setup.py is minimal and is missing dependencies? :S
<infinisil>
Unode: Add them to propagatedBuildInputs
kyren has quit [*.net *.split]
lewo has quit [*.net *.split]
ctp has quit [*.net *.split]
attente[m]1 has quit [*.net *.split]
fnords has quit [*.net *.split]
risson has quit [*.net *.split]
IRCsum has quit [*.net *.split]
luciandesozay[m] has quit [*.net *.split]
timclassic has quit [*.net *.split]
tet[m] has quit [*.net *.split]
ptotter[m] has quit [*.net *.split]
darkf has quit [*.net *.split]
newhoggy has quit [*.net *.split]
thoradam has quit [*.net *.split]
peter2121[m] has quit [*.net *.split]
Criena[m] has quit [*.net *.split]
Purple-mx has quit [*.net *.split]
AntonSchirg[m] has quit [*.net *.split]
moope[m] has quit [*.net *.split]
DanP[m] has quit [*.net *.split]
bobvanderlinden_ has quit [*.net *.split]
ndarwincorn has quit [*.net *.split]
sitischu[m] has quit [*.net *.split]
Tony[m] has quit [*.net *.split]
luftmensch[m] has quit [*.net *.split]
abbafei[m] has quit [*.net *.split]
thequux[m] has quit [*.net *.split]
laas has quit [*.net *.split]
Rich[m] has quit [*.net *.split]
vaibhavsagar has quit [*.net *.split]
clacke[m] has quit [*.net *.split]
Guest26289 has quit [*.net *.split]
florianjacob has quit [*.net *.split]
bennofs[m] has quit [*.net *.split]
NickHu has quit [*.net *.split]
nore has quit [*.net *.split]
p_l has quit [*.net *.split]
shad has quit [*.net *.split]
chrisaw has quit [*.net *.split]
cocreature has quit [*.net *.split]
jbetz has quit [*.net *.split]
nimblepoultry has quit [*.net *.split]
nh2 has quit [*.net *.split]
vdemeester has quit [*.net *.split]
feepo has quit [*.net *.split]
sppky has quit [*.net *.split]
NYXT has quit [*.net *.split]
plllm has quit [*.net *.split]
flokli has quit [*.net *.split]
layus has quit [*.net *.split]
parsnip has quit [Quit: WeeChat 2.4]
<Unode>
infinisil: http://dpaste.com/33B671W doesn't seem to work, still complains that dependency is missing.
<Unode>
^ is added to ~/.config/nixpkgs/config.nix
lstanley has quit [Ping timeout: 246 seconds]
srk has quit [Ping timeout: 250 seconds]
kenshinCH has quit [Ping timeout: 255 seconds]
<talqu_`>
infinisil: I dont have ghc neither cabal-install globally on my nixos. In the beggining inside the project nix-build release.nix works well. However, once entered in a pure shell where I have haskellPackages.cabal-install as a nativeBuildInput, and doing cabal new-run for example, the file .ghc.environment.x86_64-linux-8.6.4 is generated inside the dir by cabal. Getting out of the shell, and doing nix-build release.
<talqu_`>
nix fails now, until i delete that .ghc.environment.x86_64-linux-8.6.4 file. What is the reason behind this? How does nix-build work? I gets ghc, cabal behind the scenes (cause I dont have them globally)? And why does it fail in the case where .ghc.environment.x86_64-linux-8.6.4 file exists in the dir?
linarcx has quit [Quit: WeeChat 2.4]
digitalgrease_ has quit [*.net *.split]
wildsebastian has quit [*.net *.split]
utdemir[m] has quit [*.net *.split]
`slikts has quit [*.net *.split]
grenade has quit [*.net *.split]
bwe has quit [*.net *.split]
philipcristiano has quit [*.net *.split]
bachp1 has quit [*.net *.split]
mara[m]11 has quit [*.net *.split]
gausby_ has quit [*.net *.split]
Wizek has quit [*.net *.split]
nwspk has quit [*.net *.split]
jmeredith has quit [*.net *.split]
ocharles has quit [*.net *.split]
pointfree has quit [*.net *.split]
valwal_ has quit [*.net *.split]
statusbot has quit [*.net *.split]
pareidolia has quit [*.net *.split]
megfault has quit [*.net *.split]
Adluc has quit [*.net *.split]
jboy has quit [*.net *.split]
meck has quit [*.net *.split]
delan has quit [*.net *.split]
uranther has quit [*.net *.split]
pleeplop has quit [*.net *.split]
torched[m] has quit [*.net *.split]
zurdo has quit [*.net *.split]
Florian[m]5 has quit [*.net *.split]
contrun[m] has quit [*.net *.split]
peel has quit [*.net *.split]
tbenst[m] has quit [*.net *.split]
bkl[m] has quit [*.net *.split]
kevincox[m] has quit [*.net *.split]
ststefa[m] has quit [*.net *.split]
neonfuz2 has quit [*.net *.split]
escaP[m] has quit [*.net *.split]
klDen[m] has quit [*.net *.split]
alj[m] has quit [*.net *.split]
exarkun1 has quit [*.net *.split]
Seb[m] has quit [*.net *.split]
philipp[m] has quit [*.net *.split]
JaakkoLuttinen[m has quit [*.net *.split]
offlinehacker has quit [*.net *.split]
sm[m] has quit [*.net *.split]
Irenes has quit [*.net *.split]
nocoolnametom has quit [*.net *.split]
pingveno has quit [*.net *.split]
lpsmith has quit [*.net *.split]
unacceptable has quit [*.net *.split]
lejonet has quit [*.net *.split]
georgyo has quit [*.net *.split]
Shados has quit [*.net *.split]
DerGuteMoritz has quit [*.net *.split]
nikola has quit [*.net *.split]
obfusk has quit [*.net *.split]
NinjaTrappeur has quit [*.net *.split]
eri451 has quit [*.net *.split]
shreyansh_k has quit [*.net *.split]
mfernandez has quit [*.net *.split]
garbas has quit [*.net *.split]
witchof0x20 has quit [*.net *.split]
srk has joined #nixos
<infinisil>
talqu_`: I don't know the specifics, but that file is generated by cabal for knowing about your build environment, which includes impure things like ~/.cabal as you previously noticed
<infinisil>
And if you don't filter the source properly that file gets included in the nix-build, which means the cabal inside there tries to use that file
<infinisil>
But of course it can't do that because the file refers to impure paths like ~/.cabal, which are not accessible in the sandbox
<talqu_`>
i see thanks infinisil
m0rphism has quit [Ping timeout: 268 seconds]
acarrico has joined #nixos
zenobit has joined #nixos
pwnst has quit [Ping timeout: 258 seconds]
lovesegfault has joined #nixos
<talqu_`>
How should i do something like this: I have a haskell binary built on local nixos machine, then nix-copy-closure to remote machine and now i need to kill old running version of that binary and run the new. I saw online a systemd solution but in its config it points to a binary name where in nixos world every version would have a different name. I could write a script which greps the old binary's process, kills it an
<talqu_`>
d run the new binary. Would you point me to some better solutions for such a case?
<infinisil>
talqu_`: Is it a linux remote machine?
<infinisil>
Which runs systemd?
<talqu_`>
yes, both nixos
<Unode>
propagateBuildInputs -> propagatedBuildInputs . now it works
iceypoi has quit [Quit: WeeChat 2.4]
<Unode>
infinisil: thanks for the help
<infinisil>
Ah, well then you shouldn't nix-copy-closure this manually and instead define a systemd service that runs the binary
<infinisil>
Unode: Ah haha didn't even notice sorry
<infinisil>
talqu_`: Well, there's a few ways to do it
<Unode>
infinisil: no worries, was surprised nix didn't complain though
<infinisil>
Unode: Yeah I don't like that behavior.. It just makes all attributes environment variables
<infinisil>
talqu_`: I suggest you to either manage the remote machine locally, by using nixos-rebuild with --target-host
<infinisil>
Then you can define a systemd service that refers the local files without you having to transfer them
<infinisil>
talqu_`: Or alternatively, transfer the files needed for the build (e.g. in a git repo would be nice), then import those files in the remote machine's nixos config
<infinisil>
talqu_`: A simple systemd service might look like `systemd.services.foo = { wantedBy = [ "multi-user.target" ]; serviceConfig.ExecStart = "${import ../path/to/release.nix}/bin/foo"; }`
mexisme has quit [Ping timeout: 258 seconds]
<infinisil>
Whenever you make any changes to your package, just nixos-rebuild for it to rebuild it, stop the old binary, and start the new one
<talqu_`>
infinisil: Hmm. So from the remote machine, `nixos-rebuild with --target-host my-local-machine` would trigger a rebuild of my local machine's configuration.nix file? Local configuration.nix import the project's release.nix and gets rebuilt? Then in the remote machine's configuration.nix, a defined systemd service can directly refer to my local machine's project binary? I'm a noob, so sorry
shibboleth has joined #nixos
erasmas has quit [Quit: leaving]
<infinisil>
talqu_`: No problem. Not really, maybe it's best to just copy the project files to the remote machine, then nixos-rebuild there, without --target-host. So you just rebuild your remote system as you always would
<infinisil>
talqu_`: And to make the service work, add a systemd service definition as I showed earlier to your configuration.nix no the remote machine
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<talqu_`>
infinisil: the idea i had was to precisely build the project on my local machine, cause the remote is slow and old.
Xyliton has quit [Ping timeout: 258 seconds]
fresheyeball has joined #nixos
<fresheyeball>
I made tons more progress on my ghcjs build
<fresheyeball>
but now it dies linking dist/build/cabal/cabal.jsexe
<fresheyeball>
stack overflow: use +RTS -K<size> to increase it
<fresheyeball>
how can I get around this? Do I really need to have an insane stack size
<talqu_`>
infinisil: thanks again, i'll read about that
o1lo01ol1o has quit [Ping timeout: 268 seconds]
jackdk_ has joined #nixos
submoo[m] has quit [Ping timeout: 264 seconds]
npmccallum has quit [Ping timeout: 244 seconds]
<talqu_`>
infinisil: serviceConfig.ExecStart = "${import ../path/to/release.nix}/bin/foo"; Do i also need a serviceConfig.ExecStop, or rebuilding would automatically stop the service and once rebuild finishes would start it again?
<infinisil>
Yeah you don't need to specify that
<infinisil>
happens automatically
submoo[m] has joined #nixos
<talqu_`>
nice :)
mexisme has quit [Ping timeout: 246 seconds]
marcinja has quit [Ping timeout: 264 seconds]
marcinja has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<fresheyeball>
dmj`: heya
zurdo has quit [Ping timeout: 264 seconds]
teh[m] has quit [Ping timeout: 264 seconds]
nocent has quit [Ping timeout: 264 seconds]
nocent has joined #nixos
zurdo has joined #nixos
phreedom_ has joined #nixos
gagbo has quit [Ping timeout: 244 seconds]
teh[m] has joined #nixos
Ariakenom has quit [Quit: Leaving]
orivej has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
<angerman>
blackriversoftwa: I don’t think we have shell hooks. Most customizations are controlled through the options. Best to open an issue.
<blackriversoftwa>
angerman: So there is no way to specify an overlay that can override mkDerivation for the package set?
<blackriversoftwa>
(I ask because that's what we're currently doing in the nixpkgs haskell infrastructure)
mexisme has joined #nixos
<pie_>
youd probably end up overriding stdenv?
<pie_>
i guess you could do an override such that you merge into the stdenv set
<pie_>
but i dont know enough about stdenv to say much
<angerman>
blackriversoftwa: it might actually be. I just haven’t done it myself yet. I was just trying to point out that the haskell.nix approach is rather trying to use the option system than multi layer overrides.
<clever>
pie_: there are some functions in nixpkgs that do basically that
<pie_>
clever, i see
<blackriversoftwa>
angerman: hrm well I was trying to follow that thread and it seems like there's no option for shellHook yet even though the component builder takes a shell hook as a parameter
<blackriversoftwa>
I'll see about an issue and a patch
<blackriversoftwa>
angerman: the other issue I'm running into: how would I override the `libs` option for a library component, instead of adding to it?
<angerman>
blackriversoftwa: awesome!
<blackriversoftwa>
a cabal-to-nix generated package definition is trying to grab a library by the wrong name
<blackriversoftwa>
(bzlib haskell package wants pkgs.bz2 but in nix that's pkgs.bzip2)
<blackriversoftwa>
but if I just put that in a module then it just adds it to the list rather than replacing the default from the package definition
endformationage has joined #nixos
ardumont has quit [Ping timeout: 258 seconds]
eraserhd has joined #nixos
<clever>
blackriversoftwa: there are ~3 ways that is delt with, a translation map in cabal2nix, passing the right name when you callPackage, adding an override in the haskell overlay
astrofog has joined #nixos
<blackriversoftwa>
clever: this is the iohk haskell infrastructure though, not the nixpkgs one
Orbstheorem has quit [Ping timeout: 250 seconds]
<blackriversoftwa>
it seems to be using the same module system as NixOS so presumably it's the same sort of thing?
<angerman>
blackriversoftwa: there are maps for haskell/cabal library name to nix-name in the haskell.nix repo.
<clever>
blackriversoftwa: yeah, thats mostly done with overlays in the haskellPackages context
<clever>
but the new haskell.nix stuff is entirely seperate from the old haskellPackages stuff
<angerman>
Same for pkg-config stuff
judson has quit [Ping timeout: 246 seconds]
Orbstheorem has joined #nixos
mbrgm_ has joined #nixos
catern has quit [Excess Flood]
talqu_ has quit [Remote host closed the connection]
talqu_` has quit [Read error: Connection reset by peer]
mbrgm has quit [Ping timeout: 252 seconds]
mbrgm_ is now known as mbrgm
<blackriversoftwa>
angerman: I'm poking through the haskell.nix repo right now but I don't see that
<angerman>
blackriversoftwa: please file any issues and questions you have as you go. This is very valuable. And it shows where we can improve the documentation for everyone!
<angerman>
Ideally as one or multiple issues on the haskell.nix issue tracker, so it doesn’t get lost.
shibboleth has quit [Quit: shibboleth]
erictapen has quit [Ping timeout: 246 seconds]
erictapen has joined #nixos
ardumont has joined #nixos
<pie_>
clever, random idea: i guess IFD would let one build from latest github source