<alp>
it's a trivial Setup.hs so nothing fun to see in this particular case, but the data is there.
<elvishjerricco>
Nice. It'd be hard to enrich from-cabal to do this, because that's essentially asking it to run the solver. So stealing the information from the plan seems like the right answer. Though I'm not sure how to thread that info correctly
nineteeneightd has joined #nixos
asymmetric has quit [Ping timeout: 240 seconds]
<alp>
yeah, and "when"
<elvishjerricco>
I suppose we could just use the plan more completely; i.e. refer to things just as specifically as plan.json does
Sonarpulse has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
<nineteeneightd>
Is there a way to get the location of the kernel, initrd and command line needed to start the most recent configuration other than peeping /etc/grub/grub.cfg? Trying to script retrieving all of that information so that I can use it to run the system under hyperkit (xhyve).
hoshineko has quit [Ping timeout: 256 seconds]
<angerman>
elvishjerricco: the from-stack logic refers to hsPks.$pkg.$version
hoshineko has joined #nixos
<elvishjerricco>
angerman: Yes but it places those values in fields identified only by package name
<elvishjerricco>
And refers to dependencies only by package name
<angerman>
elvishjerricco: Hà :-) pull setupDepends from setupDependsPkg
<angerman>
Then you can specify that set separately if you want.
<elvishjerricco>
angerman: Well there basically has to be a different package set for every setup.hs because they can apparently all receive different plans
<elvishjerricco>
But I think we can do just that
<angerman>
If found a lot of issues can be solved with custom namespaces :-)
<elvishjerricco>
Basically, from-plan could simply output all the detailed information so you can identify things by version, then we write a Nix driver that filters the right package sets for both the regular depends and the setup depends based on the plan
<elvishjerricco>
alp: Do you have a source on cabal allowing different versions of the same package for the sake of setup-depends? It'd be a shame to invent all this infra only to find it isn't needed :P
<infinisil>
nineteeneightd: That's the function that generates a grub entry
<infinisil>
nineteeneightd: From which we can see that it reads system/{kernel,initrd,init,kernel-params}
<infinisil>
(system is the nix derivation of the system, e.g. /run/current-system)
<elvishjerricco>
alp: That article makes me wonder if cabal could be made to allow different exes to depend on different versions of a lib. If that ever happens, we'll be glad we solved this problem ahead of time
seafood has joined #nixos
igo95862 has quit [Quit: igo95862]
<nineteeneightd>
Perfect! Thank you very much!
jperras has quit [Quit: WeeChat 2.1]
work_ has joined #nixos
<elvishjerricco>
> we might pick different versions of QuickCheck for different test suites in different packages (though only where necessary).
<{^_^}>
error: syntax error, unexpected IN, expecting ')', at (string):43:74
<elvishjerricco>
alp: They don't say whether cabal actually does this, but if it does then this infrastructure is required
<alp>
elvishjerricco, I haven't tried that yet. but the core principle stated in the article that it's fine for setup scripts because they're executables should hold for other executables too :)
<alp>
the key really just is that the constraint of using version X of some lib "stops there"
<alp>
so I suspect it could be made to work if it doesn't yet, but you'll really want to talk to hvr & friends to get a precise description of what Cabal supports now and could support in the future
<alp>
and whether a package out there actually needs different versions of a lib in setup-depends
<alp>
and in one of the normal components
jperras has joined #nixos
<elvishjerricco>
alp: I think this is likely worth pursuing. The article does make it clear that this is supported for setup-depends, and I could easily see this being more aggressively supported in the future. Doesn't seem to hard to make it work in nix
<alp>
anyway, all of this to explain that I was trying to take this into account back when I was thinking about an alternative cabal2nix
<alp>
if you see a way to make it supported without spending weeks on it, that might be worth it, but a quick chat with some Cabal folks to get more precise information can't hurt
<elvishjerricco>
Yea I'll ask around
nuncanada has quit [Quit: Leaving]
<alp>
elvishjerricco, but I'm really glad you and angerman took the time needed to work on those stuffs, I'll definitely be switching over as soon as I get a chance to look at the code a little bit. cheers :)
Have-Quick has joined #nixos
d1rewolf has joined #nixos
<d1rewolf>
hi guys. I'm a long time linux user (since rh 5.1). I'm currently running Ubuntu but am comfortable finding my way around just about any distro. I'm looking a NixOS with growing enthusiasm.
<d1rewolf>
Two questions:
<d1rewolf>
1. Is it currently feasible for a desktop os? Stable enough to count on it day to day?
morenoh149 has quit [Ping timeout: 268 seconds]
<d1rewolf>
2. How does package selection compare to the large-ish selection on the Debian/Ubuntu fronts?
<d1rewolf>
(twO)
<hodapp>
1: I use it on a desktop and a laptop with no problem
<hodapp>
2: nixpkgs has quite a lot of stuff, but Debian/Ubuntu likely have a bit more (especially when you count 3rd party repos and .debs)
<hodapp>
but if you want answers on specific packages, you can look in the nixpkgs repo or just ask folks
<hodapp>
you could always start with Nix on top of your existing Ubuntu and see how that goes
<hodapp>
if you don't want to dive in with NixOS
<bgamari>
elvishjerricco, I believe it does encode setup deps
<d1rewolf>
hodapp: how well is that supported? (nix on ubuntu?)
<hodapp>
I think that works fine with most distros, really
<hodapp>
you don't get quite the same level of declarative configuration/management as you'd get with NixOS, but it still gets you into Nix/Nixpkgs a bit
ericsagn1 has joined #nixos
matthewbauer has joined #nixos
<joepie91>
d1rewolf: more stable for workstation use than any other distro I've used; however, also requires a bunch of upfront time/effort investment to understand how everything ties together
andreabedini has joined #nixos
<joepie91>
I rarely run into unpackaged things, but yes, there's less than for other major distros if you count third-party repos; in particular trying to run proprietary stuff (especially games) tends to involve some packaging work
<joepie91>
that having been said; packaging is easier and a more normal part of the system configuration process than on other distros
<hodapp>
I've had to package a number of things myself, but this is more when I need to build some weird package that has a horrible build, and that horrible build has horrible dependencies that aren't present in nixpkgs (at least not in the right form) and it just sort of cascades from there
<joepie91>
ie. "creating a package yourself" is a fairly normal part of NixOS usage whereas on other distros it's usually something you'd only expected dedicated maintainers to do
<hodapp>
but... honestly I ended up doing this pretty often on other distros
<hodapp>
and with NixOS the end result is that instead of just doing it totally ad-hoc and trying to remember what I did, I ended up with a recipe I could reuse/re-tune later
<joepie91>
d1rewolf: btw, one major selling point for me for NixOS on a workstation is the rollbacks
<hodapp>
and at least once this saved me hours and hours of reproducing the same thing on my laptop
<joepie91>
I can just assume there to be a possibility to roll back to a previously working setup in a pinch, no matter what I've fucked up
<hodapp>
that is one feature that I've yet to actually need - somehow
<joepie91>
I've needed it a few times :)
<hodapp>
on Arch Linux it's a feature I'd have used regularly...
devx has quit [Quit: . .. ...]
rprije has joined #nixos
mounty has quit [Ping timeout: 256 seconds]
tzemanovic has joined #nixos
devx has joined #nixos
<hodapp>
however, I tend to take the "just jump in" approach when it comes to learning new things, so I around late 2016 after I finished some big projects I just nuked my Arch install completely and installed NixOS on my workstation
<hodapp>
and I just picked a time when I had a couple days of nothing major being due in order to deal with the stumbling block of learning
mounty has joined #nixos
<joepie91>
yeah, that's definitely something I always recommend for NixOS
<joepie91>
don't jump into it unless you can miss a few days
<joepie91>
:p
<jasongro`>
Arch Linux forums are full of people asking how to do rollbacks, and there's a standard reply that you shouldn't even try.
<hodapp>
and shortly after, I realized that I could just copy my configuration.nix over to my laptop, customize just a few things (encrypted disks, hardware-specific stuff and build a NixOS
<hodapp>
er... premature Enter... and build a NixOS system based on my workstation with all the same tools available
<jackdk>
That's basically what I did about a year ago. I've had to package a couple of niche things but the process for contributing to nixpkgs was very smooth and one of the easiest I've done
<hodapp>
JasonGro`: ugh, I gave up on Arch IRC at a certain point
<hodapp>
so many nasty people there
<jasongro`>
Really? That's sad. I hadn't noticed. Didn't need interactive help because the Arch Wiki is so good.
<jasongro`>
Oh, also I was using Manjaro and I know Arch people usually refuse to help Manjaro users!
<hodapp>
just was sick of the "you waited a week to upgrade your system? you didn't remember to check the front page for important news when you did your daily upgrade? what are you, mentally retarded?" attitude
<jasongro`>
Oh I see, yes.
<jasongro`>
That is sad.
<jasongro`>
I use(d) Debian for mission-critical stuff, for that reason.
<hodapp>
yeah.
<samueldr>
I started using nixos by trying it out on a secondary computer, rebuilding my "usual setup" at the time with nixos
<hodapp>
it was just routine that something would brick my Arch box to a level where it wouldn't boot or wouldn't boot to a graphical interface
<hodapp>
every few months
<samueldr>
and then, when everything was fine, ported over an never looked back
<jasongro`>
You're reminding me how much I like NixOS. I hope it stays around.
<jasongro`>
So I wonder whether most NixOS people are refugees from Arch rather than other distros.
<hodapp>
lol, I'd figure a lot of Ubuntu/Debian users just because of how common it is
<jasongro`>
I imagine Ubuntu's much commoner, isn't it? (Never been tempted by Ubuntu myself.)
<hodapp>
have used Ubuntu a bunch, mostly had good luck, but did still run into problems
<hodapp>
they were "understandable" problems, so to speak, but not ones I felt like dealing with
kiloreux has quit [Ping timeout: 268 seconds]
<infinisil>
Heh
<joepie91>
[07:13] <Ralith> joepie91: for a while arch was the distro with up to date haskell packages
<joepie91>
[07:13] <Ralith> so it had a high concentration of FP enthusiasts
<joepie91>
[07:15] <Ralith> it also has an outstandingly bad stability story, so it has a high outflow of users with a keen awareness of the problems nix solves :P
<joepie91>
^ why lots of NixOS users come from Arch, probably
<jasongro`>
Right. I like the way Ubuntu's organised. What I DON'T like, and it's a dealbreaker for me personally, is how much it changes.
<hodapp>
joepie91: yes, that's where I started with Haskell - on Arch
<joepie91>
apparently `host` bypasses nscd which is why that works
<joepie91>
(portal IP varies by train, hence the lookup)
<jasongro`>
How did you discover that?!
<joepie91>
anyway, in the long term I want a semi-permanent wireguard connection going to my home PC
<joepie91>
JasonGro`: trial and error, and lots of train rides
<joepie91>
lol
<joepie91>
and lots of debugging
<colemickens>
I currently get "RTNETLINK answers: File exists" and am not deep enough in Linux networking to really know where to look.
<colemickens>
AFAICT nothing else should be managing wg0.
<joepie91>
JasonGro`: I do have a portable 3G/4G modem that I can hook up to my laptop so in a pinch I could look stuff up there
sir_guy_carleton has joined #nixos
markus1189 has quit [Ping timeout: 268 seconds]
<joepie91>
but, limited monthly traffic (250MB, it's a free SIM from my residential ISP), hence trying to use train wifi by default
<joepie91>
yay for incredibly obscure problems
<jasongro`>
joepie91: Yes.
<joepie91>
JasonGro`: oh, recently they've changed the proxy so that the portal does not respond without the right Host header anymore, so I've now automated it with curl
<joepie91>
now I just run ~/nswifi and it will do all the necessary work, agree to the ToS in the portal, and set up a tunnel :D
<joepie91>
but yeah, this is definitely in the "stupid problems to have" category, lol
<joepie91>
JasonGro`: regarding bad press about JS; almost every single piece of criticism I see about JS is completely misguided, and nobody talks publicly about the *real* issues that *do* need to be addressed... :(
<joepie91>
public criticism that is, blogposts, comments, whatever
<jasongro`>
There are a couple of prominent people who agree with us. Can't remember their names offhand - sorry.
<jasongro`>
They're who I got my opinions from. I've never used JS myself.
<infinisil>
There's #nixos-chat for offtopic stuff btw..
<jasongro`>
Oh sorry, yes. (And thanks for the Microsoft link.)
* samueldr
grumbles
<jasongro`>
?
<justanotheruser>
anyone run nixos on their phone?
<joepie91>
JasonGro`: you're not in -chat :)
<samueldr>
^ that's why I'm grumbling
<samueldr>
lol
<samueldr>
I'm trying to get nixos running on my phone
<samueldr>
and the /dev/fb0 device seems to be in bgr instead of rgb and I don't know what I'm doing ~~~
<samueldr>
(so read and blue are switched around)
<samueldr>
red and blue*
<sir_guy_carleton>
my phone is garbage, so i doubt it work at all
<YegorTimoshenko[>
justanotheruser: going to when librem 5 comes out
<infinisil>
samueldr: Haha the display is all messed up because of that?
<samueldr>
only mis-colored
<colemickens>
FWIW, I resolved my Wireguard issue, or at least the service starts.
<jasongro`>
samueldr: Sounds like a feature not a bug.
<samueldr>
though, I tried a hail mary and forced a value in the driver
<colemickens>
1. make sure the private key is where you say it is
<samueldr>
it worked :/
<samueldr>
so I'm wondering how to actually do that the right way
<colemickens>
2. delete wg0 ahead of the startup script, it doesn't handle the link already existing
<samueldr>
probably an ioctl or something in /sys/
<samueldr>
oh, justanotheruser, in this case I'm using an android phone, a zenfone 2 laser (z00t)
<sir_guy_carleton>
how you plan deal with the larger amount of space that nixos would use?
<samueldr>
I just began this week-end an effort to make it easier to port to (bootloader unlocked) android phones
<infinisil>
sir_guy_carleton: It doesn't have to
<samueldr>
my c720p has 32GB storage and I can manage :)
<samueldr>
(a laptop)
<infinisil>
Honestly the only thing that takes more space than other distros are the generations to enable you to rollback to previous systems
<samueldr>
exactly
<infinisil>
Which are totally worth it, but you can turn them off, or limit it to a single on
<sir_guy_carleton>
not a good laptop, but it's what i've got
<infinisil>
Honestly this #<number> feature is a bit mediocre, because copying the url is just about as quick as entering the number. The only thing you get in addition is the description
<samueldr>
sir_guy_carleton: oh, I would have expected an intel atom for what I was thinking of
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
I would expect 64 bit to work,
<sir_guy_carleton>
well i look up the spec sheets on it, it does say the processor is 64 bit
andreabedini has joined #nixos
jackdk has joined #nixos
<sir_guy_carleton>
but i haven't gotten a 64 bit os to install on it
<hoshineko>
it probably started yesterday after i ran a nixos-rebuild switch --upgrade, I also had an issue with glibc locales and used a workaround for that
<hoshineko>
don't know if it could be related
<infinisil>
hoshineko: Try running it again after executing this: export LIBGL_DRIVERS_PATH=$(nix-build --no-out-link '<nixpkgs>' -A mesa_drivers)/lib/dri
work_ has quit [Quit: Connection closed for inactivity]
jackdk39 has joined #nixos
<hoshineko>
same thing
samrose has quit [Ping timeout: 260 seconds]
<infinisil>
Hmm, I would've expected this to work
seafood has joined #nixos
<infinisil>
hoshineko: What's in /run/opengl-driver/lib?
<infinisil>
hoshineko: try setting LIBGL_DRIVERS_PATH to /run/opengl-driver/lib/dri
<hoshineko>
same thing
<infinisil>
hoshineko: Or if that doesn't work, set `LD_LIBRARY_PATH=/run/opengl-driver/lib`
<hoshineko>
same too
<infinisil>
Hmm..
<infinisil>
Hmm, last idea: Try the nix-build --no-out-link thing with s/mesa_drivers/libGL.drivers
<infinisil>
hoshineko: Other than that, #32272 is an (older) issue of this problem. Then there's also https://github.com/guibou/nixGL, but that does pretty much what I just tried here, maybe still worth giving it a shot though
roberth has quit [Read error: Connection reset by peer]
<hoshineko>
that's not really comparable here though
<hoshineko>
you would have to do similar work in nix
<hoshineko>
since this doesn't have a makefile or anything
<infinisil>
But once done and packaged, any distro can use it to install it easily
d6e has joined #nixos
<infinisil>
And that's usually what people using Nix do already with their software, that's why all other people can just go to a random nix project, run nix-build, and have a working build \o/
schoppenhauer has quit [Ping timeout: 245 seconds]
<adelbertc>
`callCabal2nix` inside an overlay should account for any overrides applied in that same overlay right?
<adelbertc>
infinisil: does it not work with overlays?
<adelbertc>
perhaps i am misunderstanding how overlays work
d6e has joined #nixos
<infinisil>
adelbertc: Nah it's not the problem of overlays
<infinisil>
But the haskell set is a bit special with overrides, see the link on how to do it
<infinisil>
The sections should probably get rewritten to use overlays instead of the old packageOverrides though
<adelbertc>
hmmm interesting
dbmikus has quit [Ping timeout: 265 seconds]
rardiol1 has quit [Remote host closed the connection]
<adelbertc>
infinisil: aha that worked!
<adelbertc>
TIL, thank you!
<infinisil>
Nice :)
lord| has quit [Ping timeout: 264 seconds]
lord| has joined #nixos
Cale has quit [Ping timeout: 240 seconds]
jackdk39 is now known as jackdk
slack1256 has quit [Read error: Connection reset by peer]
lord| has quit [Ping timeout: 248 seconds]
Have-Quick has quit [Quit: Have-Quick]
lord| has joined #nixos
Cale has joined #nixos
lord| has quit [Ping timeout: 248 seconds]
lord| has joined #nixos
jasom has joined #nixos
qewzee has quit [Ping timeout: 256 seconds]
<jasom>
how do I free up space in my boot partition?
<jasom>
nixos-rebuild is failing due to it being full
<sir_guy_carleton>
does deleting gnerations work?
<jasom>
sir_guy_carleton: ah, I realized my error; I need to rerun nixos-rebuild after deleting the generations to get it to free the space
Have-Quick has joined #nixos
MercurialAlchemi has joined #nixos
Have-Quick has quit [Ping timeout: 276 seconds]
blankhart has quit [Ping timeout: 276 seconds]
blankhart has joined #nixos
Mr_Keyser_Soze has joined #nixos
mahalel_ has quit [Ping timeout: 268 seconds]
<teto1>
weird, I wrote a shebang of the form "#!nix-shell plot.nix -i python" (first line being the usual one) and it does nothing when running ./myscript.py but if I run strace -olog -f ./myscript.py it is invoked :s
<teto1>
(working = installing the environment in plot.nix)
rprije has quit [Ping timeout: 245 seconds]
Guanin has quit [Ping timeout: 268 seconds]
reinzelmann has quit [Quit: Leaving]
Have-Quick has joined #nixos
init_6 has joined #nixos
Guanin has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 260 seconds]
inquisitiv3 has joined #nixos
lord| has quit [Ping timeout: 240 seconds]
lord| has joined #nixos
hoshineko has quit [Ping timeout: 245 seconds]
oida has quit [Remote host closed the connection]
oida has joined #nixos
spear2 has quit [Remote host closed the connection]
spear2 has joined #nixos
<{^_^}>
[nixpkgs] @andreabedini opened pull request #41877 → aws-sam-cli: init at 0.3.0 → https://git.io/vhwKZ
bennofs has joined #nixos
asuryawanshi has joined #nixos
JasonGrossman has joined #nixos
lord| has quit [Ping timeout: 264 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lord| has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
Have-Quick has quit [Quit: Have-Quick]
reinzelmann has joined #nixos
lord| has quit [Ping timeout: 240 seconds]
lord| has joined #nixos
lord| has quit [Ping timeout: 264 seconds]
lord| has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
Have-Quick has joined #nixos
xy2_ has joined #nixos
sorixelle has joined #nixos
hyper_ch2 has joined #nixos
jasongro` has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
Lev50 has joined #nixos
johanot has joined #nixos
myshoe has joined #nixos
igo95862 has quit [Quit: igo95862]
hoshineko has joined #nixos
<{^_^}>
[nixpkgs] @adisbladis pushed to master « pythonPackages.warrant: Fix compat with pip 10 »: https://git.io/vhw6p
inquisitiv3 has quit [Ping timeout: 276 seconds]
Lev50 has quit [Quit: This computer has gone to sleep]
<zeme>
Good day to all. I'm using Nix at work, exploring the possibility of deployment through nix-copy-closure. I'd like to include a derivation to package up a bunch of data files (certificates and other keys). I'd also like to change the permission bits on those files, or rather to keep the original intact. However I find that all file artifacts that I copy in $out end up as -r--r--r--.
<zeme>
This is expected since the nix store is suppoed to be world-readable and non-writable. Ignoring security implications, and whether to deploy secrets through nix is a good idea, is there a workaround to it? How to write a derivation that copies local files to $out and keeps the metadata (at least permission bits)?
<makefu>
zeme: afair it is not possble to keep the `write` permission bit or the `suid` one. keeping the execute bit should be possible though (not sure if it makes sense for certificates)
<makefu>
you can create either an activation script or a systemd service which prepares the certificates and puts them at the correct destination
blonkhart has quit [Quit: WeeChat 1.9.1]
winem_ has joined #nixos
thc202 has joined #nixos
adamt has joined #nixos
<zeme>
makefu: I see. The activation script/systemd solution is what I'm using now actually! It works great for single files, it's not too much work. However, I have a folder with tens of such files, each with different permissions, so I'd have to chmod each file individually with its corrent permissions
adamt is now known as Guest21370
<makefu>
maybe you could thing of a cool way to iterate over them and set the bits you need with chmod u+ instead of chmod u=
dejanr has joined #nixos
justbeingglad has joined #nixos
<zeme>
makefu: Right. Still, I'd have to include a nix expression, e.g. an AttrSet in my derivation that encapsulates each file's metadata, which is a pain if you have a lot of files. Is there a function in nixpkgs, that takes a local path to a file/folder, and produces, say, a tar of that file/folder? I imagine this would keep the original files' metadata. Then in the activation script I would unpack the tar and move the files accordingly
<makefu>
none that i know of, however i think it should be possible as for example the nixpkgs-tarball and the iso is built by nix :)
<zeme>
makefu: got it. I'll look into that. Cheers.
<sgraf>
version at all and the sha256 I put there is most certainly wrong.
igo95862 has joined #nixos
tzemanovic has quit [Remote host closed the connection]
uri-canva has joined #nixos
<srhb>
sgraf: How do you figure? Aside from 404'ing on the src here, it looks right to me
<srhb>
sgraf: How are you loading your overlay?
tzemanovic has joined #nixos
jasongro` has quit [Remote host closed the connection]
JasonGrossman has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
<uri-canva>
I have a general question about nixpkgs that I'm not sure whether to pose in a github issue: are derivations in nixpkgs meant to work both in nix-shell and outside of it or just one of the two? and if the latter, is there a convention to distinguish which of the two it is for?
xy2_ has joined #nixos
jensens_ has joined #nixos
<srhb>
uri-canva: I would say it's preferable that they work either way, however I know of some things (was it qt stuff?) that does not work without being installed in a profile
<srhb>
uri-canva: It's unfortunate, but, I guess, also often a difficult problem
yenzenz has quit [Ping timeout: 264 seconds]
tzemanovic has quit [Ping timeout: 256 seconds]
Ariakenom has joined #nixos
<uri-canva>
Is there a precedent for derivations that need two separate variants, one for nix-shell, and one for use in profiles outside of nix-shell?
<uri-canva>
I'll have a look at qt
gmarmstrong has joined #nixos
<uri-canva>
In my case clang doesn't work correctly when installed in profile, only when used from nix-shell
frigate_freedom has quit [Ping timeout: 260 seconds]
<uri-canva>
Also some of the things that are done in wrappers to make it work in nix-shell are unnecessary when used outside of it
<sgraf>
srhb: I was just looking at `nix search` for the version and opened a `nix-shell -p creduce-master` successfully (indicating that it didn't respect the src attribute)
<srhb>
uri-canva: I don't know of any, sorry.
<uri-canva>
@shrb Do you know if this question would be ok to ask in an issue on github so the discussion can live for longer?
<srhb>
uri-canva: Definitely okay :)
<uri-canva>
Will do that then, thanks!
<srhb>
sgraf: fwiw you have not overridden the name attribute
<srhb>
sgraf: But other than that, the overlay works correctly for me (if I fix the hash)
<srhb>
sgraf: Did you maybe leave the hash at the old version?
<sgraf>
srhb: Could it be related to my ubuntu installation?
ericsagn1 has quit [Ping timeout: 245 seconds]
<sgraf>
srhb: Yeah, I did, because I wanted to test if it really fetched from GitHub. Which it doesn't for me
<srhb>
sgraf: I don't know. how are you loading the overlay?
<srhb>
sgraf: If you left it at the old hash, and the artifact already exists on your system, it will not check anything online.
<srhb>
sgraf: (Think of it: If it rechecked online everytime, you would always have to fetch everything to see if it really is the same as the hash claims, whether or not it's installed already)
<srhb>
Instead, use...
<srhb>
!wofu
<srhb>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<sgraf>
srhb: That's exactly what I had in mind, but it didn't detect the sha as incorrect, which lead me to believe the src attribute wasn't overriden
<etu>
srhb: That command makes me think about food.
<sgraf>
:D
<srhb>
etu: :-)
<gmarmstrong>
Is there a way to search the irc log on botbot.me? Or anywhere else?
<srhb>
gmarmstrong: None that I've found.
uri-canva has quit [Ping timeout: 260 seconds]
civodul has quit [Ping timeout: 276 seconds]
<srhb>
sgraf: Oh, if it's incorrect and not just "the same as the old one" something should definitely error out.
<sgraf>
srhb: Re loading the overlay: I've put it under ~/.config/nixpkgs/overlays/creduce-master.nix
<srhb>
Sounds right.
<sgraf>
srhb: Ah, you were right all along! Now that I actually modified the sha, it breaks. Sorry for the confusion
<teto1>
gmarmstrong: you can use the riot client I think
<srhb>
sgraf: OK, good. :) So this is what fixed-output derivations do. If the hash is on the system, nothing is checked. Good to know.
phdoerfler has joined #nixos
asuryawanshi has quit [Ping timeout: 240 seconds]
Guest21370 has joined #nixos
freusque has joined #nixos
phdoerfler1 has joined #nixos
phdoerfler has quit [Read error: Connection reset by peer]
<gmarmstrong>
manveru: was wondering whether anyone's had problems in the past with their color display. I'm color blind, but I'm almost positive that my laptop screen looks different than my desktop monitor.
<goibhniu>
My pleasure! The logs are fairly useless without a search feature IMO, perhaps we should disable botbot and direct people to matrix instead?
ThatDocsLady has joined #nixos
* etu
have ended up at botbot from searchengines
<etu>
So it might be useful that way?
<JasonGrossman>
gmarmstrong: I've been wondering about colour management too. I've got as far as checking that NixOS has some of the standard Linux stuff for that.
<manveru>
gmarmstrong: that's the case with most displays... i have 3 monitors on the same machine/card and they all look slightly different :|
<JasonGrossman>
gmarmstrong: I haven't actually used any of it.
phdoerfler1 has quit [Client Quit]
<goibhniu>
etu: good point too
<gmarmstrong>
gnome-color-manager is in master but not stable
phdoerfler has quit [Read error: Connection reset by peer]
<JasonGrossman>
I think there's something lower level. colord, from memory?
<gmarmstrong>
I might check it out, though I'm just using i3.
<JasonGrossman>
Yes, there's colord.
<JasonGrossman>
Which is WM agnostic.
<gmarmstrong>
JasonGrossman: enabling colord doesn't do anything, but I'll fiddle with the program
<fyuuri>
Hi :), i tried installing nix without root, which should work in nix2.0 without problems. However the installer does not take the --store arguement.
JasonGrossman has quit [Ping timeout: 240 seconds]
<frigate_freedom>
Hello. guys!
<frigate_freedom>
Can u help me again, please? :)
<frigate_freedom>
# lxd init
<frigate_freedom>
After enabling virtualization.lxc and virtualizatoin.lxd in configuration.nix I run
<frigate_freedom>
I need couple of containers: the 1st -- to run wine + dxvk games, the 2nd -- to run centos with some proprietary software.
<frigate_freedom>
leaving almost everything by default, but cat /etc/subuid and cat /etc/subgid shows, that only root user was added. How to add non-root user to subgid and subuid?
<elvishjerricco>
bgamari: Oh to answer your original question from before, I think the only packages intended to be stable are those from the Stackage snapshot the package set is based on. Everything else is sort of in a "I hope this works" state.
<ar>
you don't need to specify a partition for grub if you have efi
<ar>
you just need your ESP mounted somewhere
<ar>
typically under /boot/efi
<nlytend>
Ok
<nlytend>
Ty
<nlytend>
$ nixos-rebuild test
Guest21370 has quit [Ping timeout: 276 seconds]
<nlytend>
Its asking for a device
humanoyd has joined #nixos
<nlytend>
Failed assertions:
<nlytend>
- You must set the option ‘boot.loader.grub.devices’ or 'boot.loader.grub.mirroredBoots' to make the system bootable.
<nlytend>
I am using GPT partition scheme, i don't know how mbr will work on this
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
MercurialAlchemi has quit [Ping timeout: 256 seconds]
fendor has joined #nixos
asymmetric has joined #nixos
oida has quit [Ping timeout: 250 seconds]
MercurialAlchemi has joined #nixos
frigate_freedom has quit [Quit: Leaving.]
<clever>
Myrl-saki: pong
<{^_^}>
[nix] @yorickvP opened pull request #2224 → Fix #2162: use getaddrinfo instead of curl to preload NSS → https://git.io/vhrfR
frigate_freedom has joined #nixos
nlytend has quit [Quit: disconnected.]
<clever>
nlytend: if you are doing EFI, you must set boot.loader.grub.device = "nodev";
pie_ has joined #nixos
<Myrl-saki>
clever: How about making a derivation that packs other derivation(coining this as god derivation), which packs multiple architectures of compilers in order to avoid the "cross-compile dependency issue."
<Myrl-saki>
clever: Basically, an escape hatch which works in Nix.
<Myrl-saki>
It's more complicated than necessary, but it's less hacky.
<clever>
Myrl-saki: but you would need a bash that is capable of running on any arch, to run the script that picks a compiler
<Myrl-saki>
I think there's one impurity, which is switching between which GCC to use.
<Myrl-saki>
clever: Can't you package multiple architectures of bash along with the god derivaton?
<Myrl-saki>
OTOH, I think I know what you're saying.
<clever>
the entry point had to be known to the outside
<Myrl-saki>
hmm
<Myrl-saki>
clever: If I understand correctly, what you're saying is that the god derivation will have a machine-dependent bash as input, rendering it also machine-dependent?
thetet has joined #nixos
thetet has left #nixos [#nixos]
iyzsong has joined #nixos
init_6 has quit [Ping timeout: 240 seconds]
<clever>
Myrl-saki: you could maybe cheat with a setup hook
<clever>
Myrl-saki: those dont have a #!
<Myrl-saki>
Ahh, I see now.
<Myrl-saki>
Hmm
<Myrl-saki>
clever: Do you think this will work, in theory? I doubt that this is worth the pain though.
seafood has quit [Quit: seafood]
<clever>
it may work, but now your gcc is 4 times more costly to build
<Myrl-saki>
Right, and 4 times more costly to store, which is not exactly good for SBCs either.
<Myrl-saki>
clever: Oh yeah. I was having this thought. If you have a gcc in your /nix/store, is their a way to say "use the /nix/store/..." for GCC?
<Myrl-saki>
Maybe ${/nix/store/...}?
<Myrl-saki>
It's impure though, so I could see why this isn't implementedb if it's not.
<clever>
changes to that path will still trigger a rebuild
<clever>
so its not impure
<Myrl-saki>
clever: It's impure in the sense that it can't be contained in a nix-build. You'd have to --import/--export for it.
<Myrl-saki>
I think?
<clever>
if you do that in a nix expression, and the path exists when its ran, then it will just use it
<clever>
but the output will rely on the hash of the path as a string, so it changing the compiler out causes a rebuild
Neo-- has joined #nixos
<Myrl-saki>
Oh okay.
<clever>
Myrl-saki: as an example, do nix-instantiate '<nixpkgs>' -A hello
<clever>
then run cat on the .drv it produced
<Myrl-saki>
clever: What should I be checking?
<clever>
and also run `nix show-derivation FOO` on that path
<clever>
basically, the value of the out field, is based on a hash of everything else in that file
<Myrl-saki>
Right.
<clever>
now try that on your own nix file, and try changing things to see if you can slip something in without it appearing in the .drv
seafood has joined #nixos
__monty__ has joined #nixos
gmarmstrong has quit [Ping timeout: 276 seconds]
m0rphism has quit [Quit: WeeChat 1.9.1]
seafood has quit [Quit: seafood]
steell has joined #nixos
jensens_ has joined #nixos
init_6 has joined #nixos
fendor has quit [Ping timeout: 256 seconds]
<init_6>
Hi all. Need some info about install root on lvm2 over luks with gpg2 encripted keyfile. It`s possible with nixos?
thetet has joined #nixos
<gchristensen>
sounds tricky
<clever>
lvm on luks is easy, so the gpg part is the only tricky area
abcrawf has quit [Remote host closed the connection]
<gchristensen>
ah, yeah, thank you for clarifyfing clever
fendor has joined #nixos
<joepie91>
gchristensen: hi, did you see my PMs?
abcrawf has joined #nixos
<{^_^}>
[hydra] @edolstra merged pull request #556 → add some more statistics about runnable/running builds per arch/system features → https://git.io/vp1Nm
<lo_mlatu>
How can I modify a deep dependency of a derivation?
vaninwagen has joined #nixos
<steell>
anyone have an example of a shell.nix that uses default.nix but extends it with some packages for development but not for building? (in my case, emacs and haskell-ide-engine)
spear2 has quit [Ping timeout: 276 seconds]
lo_mlatu has quit [Ping timeout: 260 seconds]
MP2E has quit [Remote host closed the connection]
<nh2[m]>
dtz: hey, what is the latest state of statically linking Haskell programs with musl? I'm trying to figure out if it's already possible
Drakonis has joined #nixos
alex`` has quit [Ping timeout: 256 seconds]
lo_mlatu has joined #nixos
init_6 has quit [Ping timeout: 256 seconds]
Tobba has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @xeji pushed commit from @volth to master « nixos/unbound: add restart (#41885) »: https://git.io/vhrmz
steell has quit [Ping timeout: 256 seconds]
fendor has quit [Ping timeout: 264 seconds]
<gchristensen>
I love the implementation of nixos-version
Rusty1_ has joined #nixos
<tilpner>
Huh
<tilpner>
--hash|--revision)
<tilpner>
echo "master"
oida has joined #nixos
alex`` has joined #nixos
ok2 has joined #nixos
acarrico has quit [Ping timeout: 248 seconds]
Neo--- has joined #nixos
rardiol1 has joined #nixos
<tpanum>
Firefox with Adobe Flash won't build on the unstable channel :-( "error: cannot download flash_player_npapi_linux.x86_64.tar.gz from any mirror"
deni_ is now known as deni
thetet has joined #nixos
<tilpner>
If you're trying to run a standalone thing, you could try running it outside firefox with flashplayer
jtojnar has quit [Remote host closed the connection]
<hodapp>
lo_mlatu_: depending on what you mean, checking out examples in nixpkgs/pkgs/top-level/all-packages.nix for how dependencies are customized might be helpful
<hodapp>
are you dealing with specific packages here?
aminechikhaoui has joined #nixos
hotfuzz_ is now known as hotfuzz
jperras has quit [Quit: WeeChat 2.1]
jensens_ has quit [Ping timeout: 240 seconds]
zeme has quit [Ping timeout: 260 seconds]
jperras has joined #nixos
thetet has joined #nixos
gmarmstrong has quit [Read error: Connection reset by peer]
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
logzet has joined #nixos
seanparsons has joined #nixos
jensens_ has joined #nixos
<lo_mlatu_>
hodapp: I want to use `rtv` on macos, which depends on some python packages that underneath depend on pythonPackages.humanize, whose meta.platforms is set to linux. I want to change this attribute so it can be installed on macos. ( maybe it will fail, but at least I can have a try)
thetet has quit [Ping timeout: 248 seconds]
<kiloreux>
How can I use buildEnv to install a nix expression with nix-env ?
<clever>
lo_mlatu_: there is a config.nix flag that just ignores platforms entirely, the error should say what it is
<leotaku>
How do I "access" the folder my current share files are stored in? Respecting my user env as well as nix-shell.
<leotaku>
Or rather, how do I access the folder all of those files are symlinked in?
olto has quit [Read error: Connection reset by peer]
odeinhart has joined #nixos
odeinhart has quit [Client Quit]
olto has joined #nixos
<lo_mlatu_>
clever: thanks :) made it
ericsagn1 has joined #nixos
d1rewolf_ has joined #nixos
sorixelle has quit [Ping timeout: 245 seconds]
<d1rewolf_>
hi guys. Is it more common for someone to use nix on top of something like Ubuntu, or to use it on top of NixOS? I've seen mention of a few folks using it on top of Ubuntu, and I'm very curious what the expectations are in terms of support
<ryantm>
Can someone check if `nix-prefetch-url -A altcoins.bitcoin-xt` hangs indefinitely for them too?
<ryantm>
d1rewolf_: Nix/nixpkgs is supported on top of Linux, Darwin, and there is a planned ARM stable release
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<d1rewolf_>
ryantm, but I'm curious...is the experience for a newb (to nix, not to linux) better by going with NixOS or by going with something like nix on top of Ubuntu (I'm currently running Ubuntu)?
<ryantm>
d1rewolf_: What are you trying to do?
<hodapp>
if you can afford the couple days of lower productivity, you'll learn so much quicker just diving in with NixOS
<d1rewolf_>
ryantm, get into Nix and NixOS primarily. I love the idea of being able to declaratively recreate my system
<d1rewolf_>
hodapp, ok, I can stomach that. thx
<ryantm>
d1rewolf_: If you want to explore declaritvely recreating your system, you should hop onto NixOS. Nix/Nixpkgs on Ubuntu will let you use Nix as a build tool, and nixpkgs as an alternative to apt/dpkg
<tazjin>
d1rewolf_: if you want to declaratively control the whole sytem, you'll want NixOS
<ryantm>
d1rewolf_: Nix/nixpkgs on Ubuntu won't let you use the NixOS/modules to declaratively configure services
reinzelmann has quit [Quit: Leaving]
chrisvest has joined #nixos
dbmikus_ has joined #nixos
lo_mlatu_ has quit [Ping timeout: 260 seconds]
igo95862 has joined #nixos
<leotaku>
On nixos, how can I list all share file that are currently linked into my environment?
dmc is now known as polyzen
<d1rewolf_>
ryantm, tazjin : ok, great. thanks very much
orivej has joined #nixos
<srhb>
leotaku: find ~/.nix-profile/ (whatever parameters you care about)
<srhb>
leotaku: Include /run/current-system if you care about system too.
tzemanovic has quit [Remote host closed the connection]
camsbury has joined #nixos
mizu_no_oto has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
gmarmstrong has joined #nixos
oknice has joined #nixos
matthewbauer has joined #nixos
oida has quit [Ping timeout: 250 seconds]
<oknice>
Hi! May I ask about packages? Software wants to create new dirs, and not allowed to do that. What nix expect from software and it's path in install phase?
fendor has quit [Ping timeout: 268 seconds]
<maurer>
During install phase, there is a directory called $out that is writable
<maurer>
Put all your stuff there, make new directories if you want
<maurer>
e.g. frequently you'll have $out/bin $out/share, $out/lib etc
<maurer>
Basically, install to $out, not to /
<oknice>
ok, thanks! I got it :)
xy2_ has joined #nixos
asuryawanshi has joined #nixos
camsbury has quit [Remote host closed the connection]
rardiol1 has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos
<infinisil>
catern: With ''?
<benley>
anyone remember how to build the page that goes at nixos.org/nixos/options.html such that I can make sure the docbook markup I'm writing in a module is correct?
<catern>
oh yeah
<hodapp>
infinisil: whoa. is that fixing the horrid indenting behavior in Emacs nix-mode?
Mr_Keyser_Soze has quit [Ping timeout: 245 seconds]
<benley>
I found `nix-build nixos/release.nix -A options`, which spits out options.json, but I'm not sure what to do with that
<infinisil>
hodapp: Not sure if you're having the same problems with indentation as me, but I sure hope so!
<hodapp>
infinisil: likely yes, in that nothing ever seems to indent right and it's a bother to even hit Enter on most lines
__Sander__ has quit [Quit: Konversation terminated!]
hoshineko has quit [Ping timeout: 255 seconds]
<infinisil>
benley: nix-build nixos/release.nix -A manual I think
<benley>
does that include options.html?
Akii has joined #nixos
* benley
finds out
<benley>
oh lol, it also fails to build.
<benley>
possibly because of my own changes, which would actually be a good sign
<infinisil>
hodapp: Hmm maybe, my problems is then I do "let\n\t x=foo\n <return>", and the return doesn't put a \t at the beginning, so i have to reindent it manually
<infinisil>
benley: Yeah i think manual includes everything
<matthewbauer>
yeah it's actually: nix-build nixos/release.nix -A options
<matthewbauer>
that's the options.json which options.html looks in
matthewbauer has quit [Remote host closed the connection]
<benley>
right now that produces a confusing error message: "error: the expression selected by the selection path 'nixos.manual' should be a set but is a function"
<asymmetric>
and i don't know what the install phase should be
<random_guy>
does anyone know whether systemd.user.services.<name>.requires can contain system targets?
<random_guy>
when I put some target there (present at /etc/systemd/system) and try to start the user service, systemd tells me that the system target is not found
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « libupnp: 1.6.21 -> 1.8.3 (#41684) »: https://git.io/vhrbd
asymmetric has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed 53 commits to python-unstable: https://git.io/vhrNz
thetet has joined #nixos
amiloradovsky[m] has joined #nixos
unlmtd has joined #nixos
cornu[m] has joined #nixos
happyente[m] has joined #nixos
M-dpetranek has joined #nixos
Olinkl[m] has joined #nixos
ConorCurry[m] has joined #nixos
mirlur[m] has joined #nixos
atopuzov[m] has joined #nixos
kitten[m] has joined #nixos
GuillaumeBuisson has joined #nixos
ProofTechnique[m has joined #nixos
bennofs[m] has joined #nixos
SamuelEvans-Powe has joined #nixos
telent[m] has joined #nixos
hw9891[m] has joined #nixos
rnhmjoj[m] has joined #nixos
AlanPearce[m] has joined #nixos
indefini has joined #nixos
leons1 has joined #nixos
demyan[m] has joined #nixos
tfc[m] has joined #nixos
moredhel has joined #nixos
tehnix[m] has joined #nixos
bachp has joined #nixos
WilliamHamilton has joined #nixos
lycium[m] has joined #nixos
primeos[m] has joined #nixos
puffnfresh has joined #nixos
aspiwack[m] has joined #nixos
davidar has joined #nixos
BurNiinTRee[m] has joined #nixos
hendrik[m]1 has joined #nixos
mith[m] has joined #nixos
willghatch[m] has joined #nixos
rihardsk[m] has joined #nixos
timclassic has joined #nixos
aniketd[m] has joined #nixos
Naughtmare[m] has joined #nixos
wzy8L-B2[m] has joined #nixos
wervenyt[m] has joined #nixos
adisbladis[m] has joined #nixos
Kallegro[m] has joined #nixos
wak-work has joined #nixos
peel[m] has joined #nixos
nmikhailov[m] has joined #nixos
ArdaXi1 has joined #nixos
tamwile[m] has joined #nixos
bdimcheff has joined #nixos
xnaveira[m] has joined #nixos
sudoreboot[m] has joined #nixos
nh2[m] has joined #nixos
octalsrc[m] has joined #nixos
rycee has joined #nixos
mudri[m] has joined #nixos
timokau[m] has joined #nixos
desttinghim[m] has joined #nixos
thra11[m] has joined #nixos
ipj[m] has joined #nixos
tet[m] has joined #nixos
techtangents[m] has joined #nixos
olejorgenb[m] has joined #nixos
jerengie[m] has joined #nixos
sorbet has joined #nixos
jesper has joined #nixos
wilornel has joined #nixos
thefloweringash[ has joined #nixos
copumpkin has joined #nixos
zaphar_ps[m] has joined #nixos
das-g[m] has joined #nixos
Bugworm[m] has joined #nixos
ayyjayess[m] has joined #nixos
CoopDot has joined #nixos
pauricthelodger[ has joined #nixos
vorot93[m] has joined #nixos
bitmapper[m] has joined #nixos
reactormonk[m] has joined #nixos
M-manveru has joined #nixos
davidak[m] has joined #nixos
herzmeister[m] has joined #nixos
chatnowvvv[m] has joined #nixos
omawnakw[m] has joined #nixos
YuFanLovezYou[m] has joined #nixos
bobvanderlinden_ has joined #nixos
semyon[m] has joined #nixos
colmeka[m] has joined #nixos
darkestmeson has joined #nixos
have-quick[m] has joined #nixos
spacekitteh[m] has joined #nixos
jgl[m] has joined #nixos
florianjacob has joined #nixos
magnap has joined #nixos
necronian has joined #nixos
htafdwes[m] has joined #nixos
abbafei[m] has joined #nixos
sargon[m] has joined #nixos
joh[m] has joined #nixos
aiyubkhan[m] has joined #nixos
hl has joined #nixos
fearlessKim[m] has joined #nixos
Orbstheorem[m] has joined #nixos
nmikhailov[m]1 has joined #nixos
rszibele[m] has joined #nixos
uvnikita[m] has joined #nixos
Wysteriary[m] has joined #nixos
don_quijote[m] has joined #nixos
spawnthink[m] has joined #nixos
edef[m] has joined #nixos
offlinehacker[m] has joined #nixos
M-ms has joined #nixos
icetan has joined #nixos
nocent has joined #nixos
patrl[m] has joined #nixos
apurvapavaskar[m has joined #nixos
ngerstle[m] has joined #nixos
NickHu has joined #nixos
Obscurity[m] has joined #nixos
Phil[m]2 has joined #nixos
yochai[m] has joined #nixos
trikl[m] has joined #nixos
Elephant454[m] has joined #nixos
nyanloutre[m] has joined #nixos
freeman42x has joined #nixos
jameshjacksonjr[ has joined #nixos
bkchr[m] has joined #nixos
pstn has joined #nixos
Rick[29SMPittsbu has joined #nixos
Dezgeg[m] has joined #nixos
TimePath has joined #nixos
oknf[m] has joined #nixos
dtz has joined #nixos
coorey[m] has joined #nixos
bhipple[m] has joined #nixos
codyopel has joined #nixos
trubii[m] has joined #nixos
nickdshsadhkas[m has joined #nixos
chominist[m] has joined #nixos
tokudan[m] has joined #nixos
midchildan[m] has joined #nixos
tosh[m] has joined #nixos
goibhniu[m] has joined #nixos
Minijackson[m] has joined #nixos
Pneumaticat has joined #nixos
MaJoe[m] has joined #nixos
dkellner[m] has joined #nixos
AdamSlack[m] has joined #nixos
slabity[m] has joined #nixos
fighterhero[m] has joined #nixos
Christian[m]4 has joined #nixos
M-Dan has joined #nixos
doubletwin[m] has joined #nixos
crystalgamma[m] has joined #nixos
aramiscd[m] has joined #nixos
equalunique[m] has joined #nixos
paperdigits[m] has joined #nixos
sqzlh has joined #nixos
AntonLatukha[m] has joined #nixos
pierrebeaucamp[m has joined #nixos
vskilet[m] has joined #nixos
Singularity[m] has joined #nixos
bionicmac[m] has joined #nixos
bendlas has joined #nixos
regnat[m] has joined #nixos
jluttine[m] has joined #nixos
jmorriss[m] has joined #nixos
Drakonis[m] has joined #nixos
gh0st[m] has joined #nixos
Hook[m]1 has joined #nixos
illegalprime[m] has joined #nixos
malteof[m] has joined #nixos
nelag[m] has joined #nixos
mtncoder[m] has joined #nixos
taohansen has joined #nixos
johnazoidberg has joined #nixos
asp_ has joined #nixos
Ralith has joined #nixos
petersjt014[m] has joined #nixos
mgttlinger[m] has joined #nixos
DIzFer[m] has joined #nixos
kainospur[m] has joined #nixos
sphalerit has joined #nixos
PeterRomfeld[m] has joined #nixos
mcatis[m] has joined #nixos
bugabinga[m] has joined #nixos
devr[m] has joined #nixos
hedning[m] has joined #nixos
moredhel_[m] has joined #nixos
greska[m] has joined #nixos
musicmatze[m] has joined #nixos
fgaz[m] has joined #nixos
EB[m] has joined #nixos
zurk[m] has joined #nixos
felipeac[m] has joined #nixos
EuAndreh[m] has joined #nixos
rnkch[m] has joined #nixos
dywedir[m] has joined #nixos
darkmeson has joined #nixos
dash has joined #nixos
bbigras-- has joined #nixos
smrtak[m] has joined #nixos
r3mfKm[m] has joined #nixos
attero has joined #nixos
peterhoeg has joined #nixos
Khorne[m] has joined #nixos
danbst[m] has joined #nixos
aaronc[m] has joined #nixos
stekke[m] has joined #nixos
grahamc has joined #nixos
M-fishy has joined #nixos
bluewolfy[m] has joined #nixos
lordfluffywobble has joined #nixos
gudea[m] has joined #nixos
Albtrz[m] has joined #nixos
panther420[m] has joined #nixos
Adev[m] has joined #nixos
zdisk[m] has joined #nixos
dadadus[m] has joined #nixos
DenisLehmann[m] has joined #nixos
jack[m] has joined #nixos
card[m] has joined #nixos
admin[m]4 has joined #nixos
v0id72[m] has joined #nixos
russiancow[m] has joined #nixos
<abcrawf>
random_guy: I don't believe so, since it's two different invocations of systemd.
<infinisil>
2 different invocations? How does that work?
<random_guy>
abcrawf: ah, ok, makes sense
<infinisil>
Ohh
<infinisil>
I overlooked the 'user' in the option
<random_guy>
so, how could I check for network availability?
redfish64 has quit [Ping timeout: 256 seconds]
<infinisil>
network.target doesn't work?
<random_guy>
I understand that requiring network-online.target, if I were using the system instance
<random_guy>
I don't think it's available as a user target?
<infinisil>
It does list it when I run `systemctl --user --all`
<infinisil>
(But network-online isn't)
<random_guy>
ah, I see it there
szicari has joined #nixos
<random_guy>
but when I try to start the service with systemctl --user start mbsync.service, I get Failed to start mbsync.service: Unit network-online.target not found.
<infinisil>
Well network-online is not available as said
<random_guy>
uhm
<abcrawf>
I generally avoid network-online, since it's really just a hack for programs that don't know how to retry.
<random_guy>
network.service doesn't work, either
<infinisil>
network.target
<random_guy>
sorry
<random_guy>
yep
<random_guy>
target
<random_guy>
ah, I see
<infinisil>
But yeah as abcrawf said, network[-online].target really doesn't guarantee much
<infinisil>
But it's better than nothing I guess
<random_guy>
there must be a problem, cause systemctl --user --all lists both network.target and network-online.target as "not-found inactive dead"
<random_guy>
though I'm online, obviously :-)
<abcrawf>
Did you add those? I don't see those targets on my system.
<abcrawf>
(But they do exist for PID 1 systemd)
Neo-- has quit [Ping timeout: 256 seconds]
<infinisil>
Oh, yeah I didn't even notice, network.target is also not-found, inactive, dead for me (but network-online.target doesn't exist). Are you on NixOS?
<random_guy>
yes, I'm on NixOS 18.03
Neo--- has quit [Ping timeout: 276 seconds]
<random_guy>
I didn't add them (at least knowingly)
<random_guy>
I just required them in a user service
<abcrawf>
Hmmm, I'm not really sure how to do that. Sorry. I don't use the user systemd very often.
<random_guy>
but /etc/systemd/system/network.target exists
Ariakenom has joined #nixos
<abcrawf>
Right, but the user systemd isn't watching that directory.
Yaniel has quit [Max SendQ exceeded]
<random_guy>
ah, ah
mizu_no_oto has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed to python-unstable « python.pkgs.pytest-asyncio: minor improvements »: https://git.io/vhrxu
<{^_^}>
[nixpkgs] @andir merged pull request #41815 → dwm-status: add xsetroot and alsaUtils as runtime deps → https://git.io/vha41
<abcrawf>
I _beleive_ user systemd implies network.target, so as long as your service knows how to retry network operations (probably a good idea anyway), you should be fine without the dependency.
reinzelmann has joined #nixos
<random_guy>
ah
<random_guy>
should check that
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
mizu_no_oto has quit [Client Quit]
<random_guy>
and yes, it has a timeout and is triggered by a timer every few minutes
Yaniel has joined #nixos
tzemanovic has joined #nixos
<random_guy>
though I thought it would be nice to not try if I'm offline
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
Yaniel has quit [Max SendQ exceeded]
matthewbauer has quit [Read error: Connection reset by peer]
<abcrawf>
multi-user.target depends on network-online.target, so you are fine. Interestingly, nothing orders itself before network-online.target, so that doesn't actually do anything!
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
asymmetric has joined #nixos
<abcrawf>
My other host (Container Linux) has systemd-networkd-wait-online.service, which is what actually does the waiting.
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
tzemanovic has quit [Ping timeout: 265 seconds]
<random_guy>
anyway, it's not really needed
Yaniel has joined #nixos
<random_guy>
it'll keep trying to synchronize the mail until it gets a connection
Yaniel has quit [Max SendQ exceeded]
<random_guy>
but I thought it would be nice to check
<{^_^}>
[nixpkgs] @dezgeg pushed commit from @lopsided98 to master « platforms/raspberrypi: enable kernelAutoModules »: https://git.io/vhrpy
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Tobba_ has joined #nixos
Yaniel has joined #nixos
Guanin_ has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Guanin has quit [Remote host closed the connection]
<infinisil>
Does setting nix.daemonNiceLevel to something like 7 make it so that when I build something it can't make my whole machine stutter?
<grp>
hi, I'm having troubles with a fresh nixos install. It's not resolving anything... can't nixos-rebuild, not even ping a dns. I can ping any IP just fine. /etc/resolv.conf is ok though... The resolvers are working too, I tested them with dig
Yaniel has joined #nixos
<grp>
is this a common gotcha?
Yaniel has quit [Max SendQ exceeded]
<grp>
I'll provide more info if needed, but guessed this may be me missing some conf detail
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
Yaniel has joined #nixos
Acou_Bass has joined #nixos
Yaniel has quit [Max SendQ exceeded]
orivej has quit [Remote host closed the connection]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
random_guy has quit [Quit: Leaving]
Tobba has quit [Ping timeout: 264 seconds]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
orivej has joined #nixos
Yaniel has joined #nixos
talyz has quit [Ping timeout: 264 seconds]
Yaniel has quit [Max SendQ exceeded]
random_guy has joined #nixos
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<infinisil>
grp: What's the error exactly?
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
asymmetric has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @xeji pushed commit from @yrashk to master « sit: 0.3.2 -> 0.4.0 (#41863) »: https://git.io/vhrhQ
kitemikaze_ has quit []
ixxie has joined #nixos
reinzelmann has quit [Quit: Leaving]
kitemikaze_ has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
Lev50 has joined #nixos
random_guy has quit [Quit: Leaving]
jperras has quit [Ping timeout: 240 seconds]
<grp>
infinisil: lost it in the terminal history. It's working now. How I fixed it? First I overwrote /etc/hosts with a valid IP from dig, then nixos-rebuild switch. By the time it completed, it started working again so I'm currently at a loss as of what was going on
<clever>
grp: its possible you had to fix /etc/resolv.conf
<infinisil>
I'd like to help with that, sounds interesting
<pikajude>
well my formatter is already 99% done
<johnw>
infinisil: cool! Check out Pretty.hs
<pikajude>
it just needs whitespace preservation and formatting for every node that isn't NConstant
<infinisil>
pikajude: :O
<pikajude>
:)
<johnw>
also, you could work on extend our Annotation type
<infinisil>
pikajude: I think that's the hard part..
<pikajude>
ok, maybe 99% is an exaggeration
<hexagoxel>
brittany uses a different approach to reducing the exponential search space (at least i think it is different)
<johnw>
getting our megaparsec parser to preserve whitespace will be a non-trivial exercise
<johnw>
since we rely on "consume all whitespace after token" to happen implicitly in lots of places
<johnw>
that will need to be an explicit, preserved consumption
<hexagoxel>
alas, it does not yet respect precedences/associativity either yet.
<{^_^}>
[nixpkgs] @FRidh pushed 3 commits to python-unstable: https://git.io/vhofO
<infinisil>
johnw: Tbh, the chances of me being able to help with anything hnix related is pretty much 0, the codebase is very much too advanced for my year old haskell experience. And the amount of docs doesn't help :P
humanoyd has quit [Quit: WeeChat 2.1]
<johnw>
infinisil: just become an expert on the parser, then
<hexagoxel>
(if you write an algorithm that can do that, please tell, it might help for getting this into brittany)
<johnw>
ignore the rest, especially the evaluator
<johnw>
time spent mastering megaparsec is time well spent
<infinisil>
johnw: That doesn't sound too far fetched, have done some stuff with parser combinators
<johnw>
if you can produce richer annotations, the rest of the could should "just work" with it
<johnw>
the next step would then be incorporating those annotations into what the pretty printer does
<infinisil>
johnw: What does hnix currently include? parser, evaluator, start of a type checker, ...?
<infinisil>
I'm not sure how far you wanna go with this
<infinisil>
pikajude: How much Haskell experience do you have?
<infinisil>
(certainly more than me, I'm just interested)
<pikajude>
oh
<pikajude>
not really sure
<pikajude>
let me check my github history
<johnw>
ixxie: hadn't seen it, thanks!
<pikajude>
2013-ish?
<johnw>
pikajude has been using Haskell about as long as me
<infinisil>
I see :O
<catern>
so what's the issue with sentry? is it possible to just make a normal Nix package for it instead of using pypi2nix?
<ixxie>
johnw: is hnix in use anywhere?
<pikajude>
it's in use in my formatter project :^)
inquisitiv3 has joined #nixos
<ixxie>
hah
<ixxie>
nice
<infinisil>
I tried to start to use it (for evaluation) for my nixbot, but I failed
<infinisil>
Will have to try again, but it's quiet hard to understand what's going on
<johnw>
ixxie: I use it to debug Nix functions that I write
<johnw>
it already has much better error reporting
<johnw>
but it still can't evaluate everything in nixpkgs yet
<GiGa>
Bit of research suggests I need to run "glib-compile-schemas" although it's not clear to me why, if that's necessary, why that wasn't done as part of the dejadup installation?
<ixxie>
so you are missing certain language features?
<johnw>
ixxie: missing some finer points of evaluation semantics, more like
<johnw>
in same places we're too strict, which can lead to thunk loops
<johnw>
finding these has been a slow process
<ixxie>
johnw: do you think this implementation could eventually replace the C++ one?
<{^_^}>
[nixpkgs] @FRidh pushed 93 commits to python-unstable: https://git.io/vhoUT
<johnw>
ixxie: yes, it would provide an alternative, but not require the c++ version in order to use Nix
<samueldr>
but yeah, more seriously, if it's an actionable issue, don't hesitate to create an issue, for open-ended questions, discourse would be preferred, but it's (as others said) in its infancy
<GiGa>
samueldr: was that aimed at me because I was asking questions?
<samueldr>
nah, GiGa, to inquisitiv3's earlier question
<GiGa>
ah right
<samueldr>
sorry if it's a bit confusing :)
<GiGa>
Not a problem
<GiGa>
Don't suppose you know what this is about do you?
<GiGa>
No matching distribution found for fasteners (from duplicity==0.7.17)
<samueldr>
(the main issue with bigger channels is there's no clear way to split different conversations)
<samueldr>
sorry, not a duplicity user :/
blankhart has joined #nixos
raynold has quit []
<infinisil>
GiGa: Sounds like either the version it wants isn't in nixpkgs (because it's so new), or somebody used a non-open version requirement (==x.x instead of >=x.x)
<GiGa>
infinisil: But that's the derivation I'm updating at the moment, that's what I don't get
<GiGa>
I'm making the derivation up to 17.7
<infinisil>
Yeah, not saying it's the 0.7.17 of duplicity, but rather of fasteners
<infinisil>
Not sure why the error doesn't display fasteners version and constraints
<GiGa>
I wouldn't have the first clue how to work that out sadly
<GiGa>
I've just updated deja-dup but as it needs a newer version of duplicity I figured I'd go sort that. Sadly it won't build because of the above
oida has joined #nixos
shah^ has joined #nixos
<inquisitiv3>
But have the mailing lists been deprecated in favor for Discourse? It says so in the wiki, but the mailing lists still on the page for support on the homepage.
<inquisitiv3>
And doesn't the _Community_ page and _Support_ page contain pretty much the same content?
knupfer has quit [Ping timeout: 276 seconds]
rardiol1 has joined #nixos
<ixxie>
inquisitiv3: yeah they do.... we should probably merge them or something
<ixxie>
inquisitiv3: but there is a bunch of stuff I wanna do with the Wiki this summer :P
thetet has joined #nixos
<ixxie>
inquisitiv3: the change happened recently; they are talking about importing the mailing lists and stuff
<ixxie>
inquisitiv3: so yeah a lot of material will still talk about the mailing lists but that is deprecated
<inquisitiv3>
ixxie: Has there been any discussion separating the Nix expression parts of the different manuals to its own? Now all the manuals teach the language, which make it hard to know where to look.
maiksen has quit [Remote host closed the connection]
<inquisitiv3>
It seems that it's planned for the wiki, but is it for the manuals?
<ixxie>
inquisitiv3: well, we thought it was a good idea at the Wiki but I don't know of any plans for the manuals
<ixxie>
we hope to expand on this in the wiki but lack some momentom atm
<inquisitiv3>
Yeah, so I've taken to read the manuals...
<inquisitiv3>
They aren't very easy to read if you don't know the terminology from before :P
<ixxie>
inquisitiv3: for the language its still probably helpful to read the pills too. The problemw with them imo is that they have somewhat weird workflows but I guess they make sense in the context of learning the language
<infinisil>
Can anybody tell me what this let thing is supposed to do ^^
<infinisil>
I mean I know what it does, but what is it useful for??
<infinisil>
> let { foo = 10; body = "something"; }
<{^_^}>
"something"
johanot has joined #nixos
<ixxie>
> let { foo = 10; body = "something"; } in foo
<{^_^}>
error: syntax error, unexpected IN, expecting ')', at (string):43:39
tenten8401 has joined #nixos
<infinisil>
> let foo = let { bar = 10; body = 20; }; in foo
<{^_^}>
20
<tenten8401>
Hey guys. Does anyone know if it's actually possible to use a package as a "file storage" of some sorts, letting the location of it be referenced from another file?
<infinisil>
tenten8401: what exactly are you intending to do?
<infinisil>
A derivation is just an immutable directory in the end
Yaniel has quit [Max SendQ exceeded]
camsbury has joined #nixos
<tenten8401>
tl;dr on the PR: basically lets you run a command on user creation to copy files
<tenten8401>
so I could have that command be to copy from a package
Yaniel has joined #nixos
<infinisil>
Yeah totally
<ixxie>
samueldr: awesome stuff with the mobile NixOS!
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yaniel has quit [Max SendQ exceeded]
roblabla has quit [Ping timeout: 256 seconds]
<tenten8401>
How would I go about doing that if you don't mind me asking? All I have experience with is a basic build file that can run a Makefile to compile a C file
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<infinisil>
tenten8401: I have a function lying around somewhere that turns an attrset into a derivation with its structure, e.g. { foo.bar = "test"; qux = "hi"; } gets turned into a derivation with a folder foo containing a file bar with contents "test" and a file qux with contents "hi"
<{^_^}>
[nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/vhoO0
Yaniel has joined #nixos
seafood has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<tenten8401>
mainly was hoping to just have a simple file that can copy the working directory into $out so it'll be stored in the system
<infinisil>
Oh yeah
<ixxie>
let { x = "y"; }
<infinisil>
That's trivial
<ixxie>
> let { x = "y"; }
<{^_^}>
attribute 'body' missing, at undefined position
asuryawanshi has quit [Ping timeout: 240 seconds]
Yaniel has joined #nixos
<tenten8401>
I figured it might be
<infinisil>
tenten8401: "${./some/path}" will copy ./some/path into the nix store and return its path
<ixxie>
what a weird construct
Yaniel has quit [Max SendQ exceeded]
<infinisil>
tenten8401: Often you can even just use ./some/path, since it gets interpolated into a string at some point (which is what makes it import it into the store)
<infinisil>
ixxie: Indeed..
Yaniel has joined #nixos
<ixxie>
infinisil: very confusing considering let ... in
<tenten8401>
where would this be in a nix build file? in the installPhase? what stdenv should I use?
Yaniel has quit [Max SendQ exceeded]
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/vhoOi
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #41810 → Fix aliases.nix using the wrong self refs. → https://git.io/vhac6
<infinisil>
tenten8401: It's just that!
<infinisil>
"${./some/path}" is already in the nix store
<tenten8401>
how would I reference it in another configuration file then?
Yaniel has quit [Max SendQ exceeded]
jensens_ has joined #nixos
<infinisil>
tenten8401: Configuration file? What configuration?
<tenten8401>
I'm so confused, sorry, let me try and explain it a little bit better
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<infinisil>
tenten8401: In regards to that PR: You'll be able to set `initialHomeContents = ./some/path` and new home directories will contain the contents of ./some/path (evaluated at nix build time)
<infinisil>
Oh but you mean you want to change some files in it?
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<tenten8401>
I'm wanting to be able to keep all my dotfiles in one place and have them copied to the nix store for referencing in initialHomeContents
<tenten8401>
and have them actually count as a system package that I can modify version numbers and update
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<tenten8401>
and be able to reference the path they're stored in from my initialHomeContents
Yaniel has joined #nixos
<tenten8401>
poor Yaniel seems to be having some issues
Yaniel has quit [Max SendQ exceeded]
<infinisil>
Hmm
<tenten8401>
I'd be willing to seperate them in any way as long as I don't have to define every single file in one
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<infinisil>
You can put files in /etc/nixos/packges/Dotfiles, and reference that dir like i showed before. When you rebuild the system it will read that directory and 'freeze' the contents into a /nix/store path, which will be used to crate home directories when you create a new user with that system
<infinisil>
Not sure what you expect from making versions and such, it's just a simple directory after all
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<tenten8401>
the versions were mainly just so the system can re-copy the files when they've changed
<infinisil>
Updating would be just changing files in the directory and do a rebuild
<infinisil>
Oh
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<infinisil>
You want this also for after the user gets created?
<tenten8401>
no
<tenten8401>
I meant re-copy to the nix store
<tenten8401>
can it detect when a project changes?
<infinisil>
Yup
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<infinisil>
Nix checks every path it imports for changes
mmlb has quit [Ping timeout: 240 seconds]
ryantrinkle has joined #nixos
<tenten8401>
so wait, I can litterally just throw everything my /etc/nixos/dotfiles, and just set initialHomeContents to ${/etc/nixos/dotfiles}
<tenten8401>
and have it copy to the nix store and reference it automatically?
Yaniel has joined #nixos
<ryantrinkle>
is there an existing issue for "nix should not deal so poorly with caches being down"?
Yaniel has quit [Max SendQ exceeded]
<infinisil>
tenten8401: Yup
<ryantrinkle>
the fact that a down cache and/or down internet connection dramatically affects functionality seems quite silly
<tenten8401>
oh well that's a lot easier than I thought it would be
<tenten8401>
going to try it now
m0rphism has joined #nixos
<elvishjerricco>
ryantrinkle: What does it do currently?
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<infinisil>
tenten8401: As an example, my nixbot' nixpkgs directory i can import:
<infinisil>
> "${<nixpkgs>}"
<ryantrinkle>
elvishjerricco: waits for timeout, which seems to be very long
<ryantrinkle>
elvishjerricco: i would rather it treat it as a cache miss, quite quickly
<infinisil>
tenten8401: And a different hash appears :O
Yaniel has quit [Max SendQ exceeded]
<tenten8401>
getting an unexpected DOLLAR_CURLY when I set initialHomeContents to ${/etc/nixos/dotfiles}
<elvishjerricco>
ryantrinkle: Personally, I would not. I strongly prefer getting builds from caches. If my network is down or the cache is down, I'd rather be asked before it started building manually
<infinisil>
tenten8401: Just initialHomeContents = /etc/nixos/dotfiles;
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<ryantrinkle>
elvishjerricco: that would also be fine, especially if it told people wtf to do
<tenten8401>
and it actually just copies it to the nix store?
<ryantrinkle>
right now it just hangs indefinitely
<infinisil>
tenten8401: Yup, assuming the module uses it in a string, which is most likely the case
<ryantrinkle>
and, you can't nixos-rebuild switch to change the set of caches it tries to use
<elvishjerricco>
ryantrinkle: I think it times out and errors eventually. Just takes quite some time
<ryantrinkle>
unless you know which options to set
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<ryantrinkle>
elvishjerricco: yeah, it's just *far* longer than anyone would want to wait
<tenten8401>
seems to have worked and copied my things to the new user sucessfully
<ryantrinkle>
and i don't think the error message tells people what to do
<elvishjerricco>
ryantrinkle: I wonder if that's configurable
<tenten8401>
however how do I know it's not just pulling from /etc/nixos
fendor has quit [Quit: Leaving]
<ryantrinkle>
the net result is that if someone accidentally sets up a cache wrong (e.g. fat-fingers the port)
<tenten8401>
and instead pulling from the nix store?
<elvishjerricco>
Yea a better error message and a shorter default time out sound like good ideas
<ryantrinkle>
they become unable to know what to do to fix it
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<infinisil>
tenten8401: That's not hard to test, just move the directory and do it again
<elvishjerricco>
ryantrinkle: I just wish we had a way to test if a cache is configured properly...
matthewbauer has quit [Read error: Connection reset by peer]
<tenten8401>
well, that did fix the issue, but I still can't actually verify it's pulling it from the nix store
Yaniel has joined #nixos
lopsided98 has quit [Quit: Disconnected]
Yaniel has quit [Max SendQ exceeded]
<infinisil>
Start a nix repl
<infinisil>
And type "${/etc/nixos/dotfiles}" in it
<infinisil>
And compare that to /etc/nixos/dotfiles
Yaniel has joined #nixos
<infinisil>
The language expression "${/etc/nixos/dotfiles}" doesn't even know that it came from /etc/nixos/dotfiles anymore
Yaniel has quit [Max SendQ exceeded]
<Baughn>
I've got what's (probably) a very basic Disnix problem, if anyone wants to help.
roblabla has joined #nixos
<Baughn>
...this is probably not the best channel for that, but it's the one that's listed.
matthewbauer has joined #nixos
lopsided98 has joined #nixos
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<tenten8401>
ahh okay I see
<Baughn>
Well, in short, deployment of https://brage.info/disnix/ fails with "attribute 'outPath' missing". And a long stack trace pointing solely inside Disnix.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tenten8401>
thanks for explaining it, it's pretty much exactly what I was looking for
<tenten8401>
:)
Yaniel has joined #nixos
<infinisil>
tenten8401: :)
Yaniel has quit [Max SendQ exceeded]
<tenten8401>
now I can remove that oversized theme.nix I had
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
jtojnar has joined #nixos
matthewbauer has quit [Remote host closed the connection]
<charleshd>
So far everything seems OK. But somewhere in the tool I want to build, there is a dependency on lualib header with the form `#include<lua5.2/lua.h>`
johanot has quit [Quit: Leaving.]
<Sonarpulse>
manveru: infinisil: know a solution for the "order builds" part?
tzemanovic has joined #nixos
<charleshd>
the tricky part is that "lua5.2/", stdenv.mkDerivation does not link lua5_2 under a lua5.2 directory
<infinisil>
Sonarpulse: Nope, the { .. } isn't propagated in any way, you can't retrieve it from the once evaluated callPackage
<Sonarpulse>
infinisil: err not the { .. }, but the file/function
<Sonarpulse>
I was thinking like
<Sonarpulse>
foo.override { __func__ = ... }
jophish has quit [Quit: WeeChat 2.0]
TANK__ has quit [Quit: WeeChat 2.0]
<infinisil>
Sonarpulse: Well you could just callPackage on a different file?
<infinisil>
I meant that in order to call the new file with callPackage on the same arguments as the old one, you'd need to know the { .. }, which you can't get from the evaluated callPackage
thetet has quit [Read error: No route to host]
<infinisil>
callPackage is usually just called with {} as the second argument anyways
<infinisil>
A bit of context might help
roblabla has joined #nixos
<wchresta>
I broke my user profile. Doing nix-env -qa gives "error: cannot import '...-source', since path '...-source.drv' is not valid at...; the referenced drv does not exist. Any ideas?
<clever>
wchresta: and if you add --show-trace ?
hamishmack has joined #nixos
<wchresta>
clever: Ah, that told me where my mistake was :). Was a syntax error in my config.nix. Thanks :)!
tertle||eltret has joined #nixos
<{^_^}>
[nixpkgs] @orivej opened pull request #41902 → SDL2: do not propagate private dependencies → https://git.io/vhoCP
<grp>
how can I list stuff like rxvt_unicode.terminfo ? how could I normally find out there's such package?
<clever>
grp: i tend to use tab-completion inside `nix repl '<nixpkgs>'`
<grp>
nice
szicari has quit [Quit: Leaving.]
<infinisil>
clever: It is still a bit broken though..
<infinisil>
E.g. it assumes that your screen is X chars wide, and when it's not, the output looks shitty
<infinisil>
Wait
tzemanovic has joined #nixos
tzemanovic has quit [Client Quit]
<infinisil>
Ah yes
<infinisil>
nix-repl handles that better
seku has joined #nixos
<matthewbauer>
anyone know how close we are to being able to merge staging into master? the cross-compile breakage is really annoying...
thetet has joined #nixos
simukis has quit [Ping timeout: 245 seconds]
roblabla has quit [Ping timeout: 265 seconds]
<dgonyeo>
when I add `systemd.services.serial-getty@ttyUSB0.enable = true;` to my nixos configuration it can't compile anymore
<dgonyeo>
I resume because of the `@`
<dgonyeo>
anyone know a way around that?
<dgonyeo>
`error: syntax error, unexpected '@', expecting '.' or '='`
justbeingglad has joined #nixos
matthewbauer has quit [Remote host closed the connection]
Slabity has joined #nixos
grp has quit [Quit: box shutting down...]
<gchristensen>
."serial-getty@...".enable
Yaniel has quit [Max SendQ exceeded]
<LnL>
is there some way to retrieve the url from builtins.fetchGit?
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
<clever>
LnL: .url ?
<LnL>
no the result is { outPath = ...; rev = ...; }
<{^_^}>
[nixpkgs] @srhb merged pull request #33217 → haskell docs: add info about hoogle's --local flag to section 9.5.2.3 → https://git.io/vbAZd
<LnL>
the revision is useful I also need that, but I want to get to the url somehow from nix
<clever>
wrap it with a new function that will fetch, then // { inherit url; } ?
astrofog has joined #nixos
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
<LnL>
since it's a builtin it's not passed in like other stuff so I can't just override it
<LnL>
but wasn't there a way to shadow builtins?
Yaniel has quit [Max SendQ exceeded]
<LnL>
weird this is that there's no __fetchGit tho
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<infinisil>
> let builtins = builtins // { foo = "foo"; }; in builtins.foo
<{^_^}>
infinite recursion encountered, at (string):43:16
Yaniel has joined #nixos
<infinisil>
> let builtins = builtins.builtins // { foo = "foo"; }; in builtins.foo
<{^_^}>
infinite recursion encountered, at (string):43:16
Yaniel has quit [Max SendQ exceeded]
knupfer has quit [Ping timeout: 265 seconds]
wchresta has quit [Quit: wchresta]
<infinisil>
Well it seems to work at least, builtins doesn't seem to be a reserved identified
justbeingglad has quit [Ping timeout: 256 seconds]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<LnL>
no, I was thinking of scopedImport
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
thetet has quit [Ping timeout: 256 seconds]
Yaniel has joined #nixos
matthewbauer has joined #nixos
hiratara has quit [Ping timeout: 260 seconds]
Yaniel has quit [Max SendQ exceeded]
roblabla has joined #nixos
Yaniel has joined #nixos
<rihards>
hi, i'm experiencing something weird within a nix environment in a haskell project. i have ` import Streamly.Prelude ((|:))` in my code. nix-build` works fine; `nix-shell -A env` and then doing import from within ghci works fine; but `nix-shell -A env` and then `cabal build` gives an error: "Module ‘Streamly.Prelude’ does not export ‘(|:)’"
<rihards>
has anyone experienced anything like this before?
<Lev50>
I am using a new version though, much newer than commit that supposedly fixed this
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
jperras has quit [Ping timeout: 264 seconds]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<rihards>
i suspect that cabal from within my nix environment is somehow seing an older version of the package which doesn't export the (|:) operator yet. but how would I debug where it's comming from?
Yaniel has joined #nixos
astrofog has quit [Quit: Quite]
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
bbarker has joined #nixos
Yaniel has joined #nixos
roblabla has quit [Ping timeout: 245 seconds]
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
thetet has joined #nixos
justbeingglad has left #nixos [#nixos]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<LnL>
clever: got it working, I really should do this in some other way tho :p
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Slabity has quit [Ping timeout: 245 seconds]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
rihardsk[m] has joined #nixos
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<{^_^}>
[nixpkgs] @shlevy opened pull request #41903 → Backport rust 1.26 from master. → https://git.io/vhoBt
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<seku>
btw, just curious, are there any plans to make nixos work on power9?
asdfjkl has joined #nixos
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
roblabla has joined #nixos
Yaniel has quit [Max SendQ exceeded]
xy2_ has quit [Ping timeout: 264 seconds]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
rihards has quit [Quit: rihards]
Yaniel has joined #nixos
logzet has quit [Remote host closed the connection]
<Baughn>
Not that I know of. Most of this is "If someone shows up to do the work", but they wouldn't want to add an architecture without knowing they'd stick around to maintain it, either.
hiratara has joined #nixos
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<seku>
understandable :)
Yaniel has joined #nixos
rihards has joined #nixos
Yaniel has quit [Max SendQ exceeded]
matthewbauer has quit [Ping timeout: 245 seconds]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
jperras has quit [Ping timeout: 260 seconds]
<rihards>
to answer my own question - gotta run `cabal clean` after upgrading dependencies in nix expressions, duh
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
rihards has quit [Client Quit]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
ariutta has joined #nixos
Sonarpulse has quit [Ping timeout: 264 seconds]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
tzemanovic has joined #nixos
rnhmjoj[m] has joined #nixos
Yaniel has joined #nixos
<rnhmjoj[m]>
asymmetric: look in <nixpkgs>/pkgs/build-support/trivial-builders.nix. there's a writeShellScriptBin
Yaniel has quit [Max SendQ exceeded]
Yaniel has joined #nixos
Yaniel has quit [Max SendQ exceeded]
<ariutta>
How should oh-my-zsh and Bash-it fit into the Nix ecosystem? If I'm using Nixpkgs on macOS, are they orthogonal? oh-my-zsh is available as a Nix package. https://github.com/Bash-it/bash-it