<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @ivan to master « bcc: 0.9.0 -> 0.10.0 »: https://git.io/fjg87
o1lo01ol1o has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
<Gopal[m]>
Is it possible to install Home Manager and specify which users should be able to use it while I am installing NIxOS itself?
Copenhagen_Bram has quit [Read error: Connection reset by peer]
<clever>
m1cr0man: can you update the target branch on your PR?
oborot has joined #nixos
<Gopal[m]>
The current approach is installing NixOS first and then booting up to the user to install Home Manager. I'm wondering if the steps could be merged?
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @marsam to master « postgresqlPackages.timescaledb: 1.3.0 -> 1.3.1 »: https://git.io/fjg8A
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @dtzWill to master « z3: 4.8.4 -> 4.8.5 »: https://git.io/fjg8j
veske has joined #nixos
psy3497 has joined #nixos
silver has quit [Read error: Connection reset by peer]
ym555 has quit [Quit: leaving...]
veske has quit [Quit: This computer has gone to sleep]
ym555 has joined #nixos
kvda has joined #nixos
<fabianhjr[m]>
Hi, is there an easy way to know why a package / file was installed?
<fabianhjr[m]>
Eg, if I enable the GNOME DE, via the nixos option `services.xserver.desktopManager.gnome3.enabled = true;` it will include some pkgs such as gnome-terminal.
<fabianhjr[m]>
However, if there is something in my path or a library I want to know from which pkg it came from. Is there an easy way to de a reverse dependency search?
drakonis_ has joined #nixos
xcthulhu has joined #nixos
xcthulhu has quit [Killed (freenode-connect (The application you are using is no longer permitted to connect to the freenode network. For questions, contact kline@freenode.net))]
clacke_movim has left #nixos [#nixos]
arahael3 has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjg4X
<ashkitten>
i'm trying to think of a way to do this
o1lo01ol1o has joined #nixos
<aleph->
Hmm, always hate how x11 with my nvidia card sometimes blows the resolution up for no reason.
<ashkitten>
clever: maybe once i have my server setup again i'll just have nginx host a file for binary-cache-url and proxy the file from github for nixexprs.tar.gz
<aleph->
Which is odd since the resolution isn't blown up right now just 1080x1920...
<ashkitten>
clever: would that work?
<aleph->
Grrrh
<clever>
ashkitten: it might also work to just give nix-channel a path to a .tar.gz directly
<pie__>
you could try printing the result strictly in the repl and see what happens?
alex`` has joined #nixos
<li_matrix>
ahh yes I should use the repl more
stepcut has quit [Remote host closed the connection]
drakonis has quit [Quit: WeeChat 2.5]
<pie__>
im just trying to simplify this file in my head, im thinking so far that for the sake of this question, most of outputToAttrListElement is just noise
stepcut has joined #nixos
<pie__>
and it only gets run on the first output, because of builtins.head
<pie__>
so i can just think about substituting a single value
stepcut has quit [Read error: Connection reset by peer]
<gchristensen>
also this is probabl ynot a reasonable place to start, li_matrix
<gchristensen>
it is like wanting to use GCC and then reading the deepest darkest corners of its code first
stepcut has joined #nixos
<pie__>
its called derivation.nix in corepkgs :V
vk3wtf has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
clacke_movim has joined #nixos
<li_matrix>
are there any examples of what im trying to do ?
<gchristensen>
what are you trying to do/
<li_matrix>
pass nix as input to a builder
<pie__>
ah crap right, there's recursion though so you can only simplify away the first step
drakonis_ has quit [Ping timeout: 248 seconds]
<gchristensen>
just... add nix as an input
<li_matrix>
I see lots of `toJson` but I just want the nix code itself
<gchristensen>
mysrc = ./foo.nix
<pie__>
li_matrix, do you mean youre trying to run nix in the sandbox?
<pie__>
just checking, because theres problems with "recursive nix"
<li_matrix>
no I want to pass in-scope nix attributes as input for the builder
<li_matrix>
literally
<gchristensen>
why?
<li_matrix>
lol
<pie__>
if you want to generate/manipulate nix files, "import from derivation" might be helpful to look into
<pie__>
</sidenote>
<li_matrix>
why not
<gchristensen>
because you can't
<clever>
li_matrix: nix-build and most parts of nix-instantiate cant function inside a nix sandbox
<li_matrix>
ai dont want to run nix
<gchristensen>
your questions don't make much sense, so my hope is getting to the "why" will help your uqestions make sense
stepcut has quit [Ping timeout: 248 seconds]
<li_matrix>
to avoid the overhead of json conversion
<gchristensen>
why are you converting to json
<pie__>
"for the lulz" is a valid reason to do things, but if thats not the reason _what is the end goal_
<clever>
li_matrix: there is no way to convert a nix value back into a nix expression, with current nix
<li_matrix>
no thats what im trying to avoid
<ashkitten>
reading direnv source: i don't understand how any of this works, and there's a piece of code that seems important but just straight up is never referenced from anywhere as far as i can tell
<li_matrix>
I could use toJson but Im trying not to
o1lo01ol1o has quit [Remote host closed the connection]
clacke_movim has left #nixos [#nixos]
clacke_movim has joined #nixos
<li_matrix>
Id embed the mycelium builder in nix code, and parse nix directly for buider inputs
drakonis_ has joined #nixos
<li_matrix>
either that or I implement nix2mycelium directly from nix
<li_matrix>
going through json is just wasting cycles
mexisme has quit [Ping timeout: 244 seconds]
<clever>
li_matrix: does it need to be a rich format? could it just be a dumb space seperated string?
<li_matrix>
well, nix is nix. I want to just pass the code as-is. mycelium is binary so if I convert using a nix function itll just be a vector of bytes
<pie__>
(whats mycelium)
<gchristensen>
how much data are we talking?
<li_matrix>
gchristensen: not much in all likelihood, maybe 1 to 5 kb, but potentially a lot more if the use cases widen
<li_matrix>
pie__: my pre-prototype language project
<pie__>
oh it sounded familiar for some reason. i guess i havent seen it then
<li_matrix>
there would be embedding both ways. I can see how to call nix from mycelium, using nix cli, but now Im trying to embed mycelium in nix
arahael4 has joined #nixos
<li_matrix>
ill just start with toJson if I cant find another way
<li_matrix>
im guessing laziness is to blame here also
o1lo01ol1o has joined #nixos
arahael3 has quit [Ping timeout: 246 seconds]
<li_matrix>
so a better solution is to write `toMycelium` function
delroth has joined #nixos
<li_matrix>
thanks for hearing me, the solution is more clear now
<li_matrix>
maybe nix gets better rust support through mycelium, if I work fast enough :P
Arahael has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arahael4 has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<iqubic>
So I just installed Raspian on my Raspberry Pi.
<iqubic>
Is it possible to SSH into this machine from Nixos?
<pie__>
iqubic, please think before you ask
<iqubic>
Because I'm thinking I might just use this as an external storage system/server.
<iqubic>
pie__: I know. That was a dumb question.
<gchristensen>
and more importantly, try
<gchristensen>
(equally importantly I guess)
<iqubic>
gchristensen: I have no idea how SSH works.
<iqubic>
So I'd need to read up on that.
<pie__>
iqubic, ok thats a better question
<pie__>
(wasnt strictly a question, but now youre thinking)
<iqubic>
Can someone point me in the direction of an SSH tutorial?
<pie__>
iqubic, do you have a vague idea of how clients / servers work?
<iqubic>
Yes.
<iqubic>
Also, can I uninstall the Graphical Display Manager from this machine?
<pie__>
for basic ssh functionality you just need to know how to set up keys and to specify the host you want to connect to
domogled has joined #nixos
<iqubic>
That makes sense.
<pie__>
but do you want to expose the machine to the internet?
<pie__>
because in that case you probably want to do a bit of hardening, forwarding ports, etc
<iqubic>
No.
<iqubic>
This is just going to be a local machine.
<iqubic>
Erm.. Local network set-up.
<pie__>
ok, then look into ssh-keygen, (though really its sufficient for starters to know how to generate an ed25519 key, which will by default get put in a location of your home directory, but it tells you about that), and authorized_keys
<iqubic>
I will.
<pie__>
running an ssh server is usually as simple as installing it because there will be a default configuration, but you might need to look up some information on specifics of your distribution
xkapastel has quit [Quit: Connection closed for inactivity]
Arahael has quit [Ping timeout: 248 seconds]
<pie__>
so since its raspian, you probably want to look at, but not necessarily follow by the letter, a guideon setting up ssh on raspbian
<pie__>
and practice a bit
<pie__>
maybe do it twice
<pie__>
:P
<pie__>
iqubic, good luck, report back on your success
<iqubic>
I'm going to have a Raspian Server and a NixOS Client.
<iqubic>
Is there anything I need to do on the NixOS side of things?
<pie__>
ssh clients work more or less the same on all systems (well, ssh servers too but the setup may vary a bit, on nixos you wouldnt set up the configuration file for example, youd use configuration.nix)
<iqubic>
I'm not sure how though.
<pie__>
iqubic, at some point you might also want to experiment with configuring an ssh server on nixos
<pie__>
the man page is never a horrible idea (though man pages can be not great sometimes), but it might be a bit much to start off
<pie__>
just look up a decent tutorial on how to ssh to a machine
<pie__>
btw there are multiple implementations of ssh i think, usually you want openssh from the openbsd project
<pie__>
iqubic, do something for me, write yourself a todo list for this task based on what ive said above
<pie__>
iqubic, the arch wiki and gentoo wiki are usually a decent place for getting input on things
<pie__>
iqubic, you got all that?
<pie__>
iqubic, i forgot to say, i subscribe to a "there are no dumb questions if they are honest" policy, just ill thought out ones :p
<iqubic>
I will write myself a todo list.
<iqubic>
First, I want to make sure that the timezone on this machine is correct.
<iqubic>
Which it isn't.
<iqubic>
Is there a way to set the timezone from the command line?
<pie__>
i think you can figure that out
<pie__>
iqubic, how would you figure it out
<iqubic>
I'm googling it right now.
<pie__>
ok. the arch wiki might be a better starting resource though
<pie__>
and by starting, i mean more targeted
<pie__>
iqubic, hint hint theres a search box at the top right
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<iqubic>
Turns out I was mis-understanding the GUI settings prompt.
<pie__>
iqubic, so, how did you find out the solution
<pie__>
explain to me
<pie__>
what the problem was and what you learned
<iqubic>
When it gives lists for Areas, that's like the top level of the timezones directory. Selecting Pacific as the Area, populates a the location dropdown with a bunch of islands in the Pacific Ocean.
<iqubic>
So, what I did was: I ran the "date" command to see what timezone the machine thought I had set it to and found it thought I had chosen HST. I then looked at all the options in the GUI under "Area" to see if a better option existed than "Pacific" I then selected "US"
ddellacosta has quit [Ping timeout: 248 seconds]
<iqubic>
That populated the "Location" dropdown with things like "Alaska" and "Los_Angeles" and "Louisville" and things.
<iqubic>
I then selected "Los_Angeles" from there.
Glider_IRC_ has joined #nixos
<iqubic>
pie__: Sorry for the wall of text there.
<pie__>
that wasnt so bad.
<pie__>
it wasnt an exact answer to my question in that its missing the problem statement
<iqubic>
Because the "Area" drop down menu is exactly what you'd get if you ran "ls /usr/share/zoneinfo"
cantstanya has quit [Remote host closed the connection]
<pie__>
how did you find out you should run the date command to check the timezone
<pie__>
or did you know already
<iqubic>
I already the date command was likely to be helpful.
<pie__>
(im assuming that is in fact a way to do it, since i never needed to mess with that stuff)
<pie__>
ok cool.
<pie__>
iqubic, just to illustrate, if you start typing timezone in the search field of the arch wiki
Glider_IRC__ has quit [Ping timeout: 248 seconds]
<pie__>
it even gives you page suggestions, and check out the first result it drops you at! perfect hit, pretty great no?
<pie__>
might not always be so helpful, but its nice when things work :D
kvda has joined #nixos
<iqubic>
That is actually a fairly good result.
<pie__>
thats what im sayin
<iqubic>
It tells me how to check the current timezone, and how to set the new timezone.
<pie__>
beats all the copy pasted garbage sparse-content blog posts that are probably spamming google
<iqubic>
I agree.
<pie__>
there are also good ones but its hard to sift through :I
<iqubic>
Now, time to learn something that isn't going to be on the Arch wiki.
<pie__>
yeah?
<pie__>
what would that be
<iqubic>
How do I remove software from a Debian Based System?
<pie__>
whatever happened to the ssh project :c
<iqubic>
I'm going to be doing that too.
<pie__>
pretty easy to solve problem, just think of some decent keywords and google it
<iqubic>
I'm just wanting to remove a ton of the more space intensive pre-installed programs from this Raspberry Pi that I won't be using.
<iqubic>
I don't need the entire libre-office suite on this Pi.
<pie__>
ok, i think you can solve it! now, this is kind of off topic for here, but i think you'll be able to solve these problems. just keep in mind that before you ask a question, other people's time is also valuable, and consider whether youve done due diligence, before you press enter
<pie__>
i completely understand that things are hard and confusing in the beginning, and there's a lot of material
<pie__>
which is why its so important for you to learn the methods
kyren has joined #nixos
<pie__>
i needed a lot of hand holding myself, but at some point you end up getting bootstrapped, and can figure a lot of things out yourself
<iqubic>
Thank you.
<pie__>
just keep thinking "why am i stuck? what do i know? what am i missing? what do i need to do to get to the next step?
<pie__>
iqubic, ok?
<iqubic>
I understand.
<pie__>
"why do i think my assumptions correct? why might they be wrong? how can I CONFIRM my assumptions? how can i FALSIFY my assumptions? how can i decrease the search space?"
<pie__>
there's reasons science works.
<iqubic>
Are there any downsides to having a single user who has root privalage on this Pi?
<pie__>
iqubic, i want you to save this backlog and review it later
<pie__>
see, open ended questions like that are probably fine
wfranzini has quit [Remote host closed the connection]
<iqubic>
I save all backlogs.
<iqubic>
I'll just copy this over to a different file for now.
<pie__>
yeah but some things are worth reviewing :p
<pie__>
questions like Is X Y? can probably be answered by just checking, answers like "How do I X?" can probably be looked up (perhaps looking up individual steps and gluing them together", thing start getting interesting at "what if" "why", etc
<pie__>
but this is getting very meta and things wont always be that clear cut, so ill leave it at that
<iqubic>
I basically just asked a "What if" question.
<pie__>
iqubic, yeah.
<pie__>
i dont have an answer, and maybe thats a better fit for the debian channel
<pie__>
iqubic, alternatively the question might be more specific than it needs to be
<pie__>
"are there any downsides to having a single root user?"
swerlk has quit [Ping timeout: 245 seconds]
<maurer>
pie__: Yes, see also every paper on capability based systems
<pie__>
iqubic, im telling people to tell you to go back and review what i said next time you ask a really simple to look up question ;P ok?
<iqubic>
Sure.
<pie__>
iqubic, just to be clear, im not trying to discourage you, just do your due diligence. i look forward to seeing your growth.
<pie__>
iqubic, by the way, if your machines can take it, i highly encourage learning to use some sort of virtualization (virtualbox is probably not a bad start), it will make experimentin g alot less nervewracking
<iqubic>
My machines can take it.
<pie__>
also start taking notes if you dont already
<iqubic>
I've been taking notes.
<pie__>
its helpful for both you and for other people when you start reporting issues "oh i had a pain point there, maybe we can do something about this"
<pie__>
ok good :)
<iqubic>
I just asked ERC to start putting these logs into a separate place from all the other logs I have.
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/fjgR2
<pie__>
iqubic, so, if you ever get around to it, as your first exercise, i suggest installing somthing (maybe even nixos) in a virtualbox VM and setting up an ssh server so you can ssh into it from the outside machine., figure out snapshots, but if you install nixos in the inner machine rollbacks will also take oyu a long way
<pie__>
ok i really need to stop giving you more homework, you have plenty for now
<iqubic>
I'm going figure out SSH on actual hardware.
<iqubic>
I'm not too concerned about screwing up this machine, as I can always just reinstall the OS if needed.
<pie__>
sure, VMs can be pretty concenient anyway though
<pie__>
convenient
<pie__>
but if you do what i said afterwards, that will be the first step towards additional experimentation
<iqubic>
I understand.
<iqubic>
But I generally like to do that on actual hardware.
swerlk has joined #nixos
<pie__>
its just my opinion man :p
Glider_IRC_ has left #nixos ["Leaving"]
<pie__>
i found things strangely more tangible if i had hardwre to look at, even though that didnt really influence anything. this week was the first time i started using VMs seriously while migrating my system to ZFS through an external disk. i was booting the raw external disk in virtualbox, which is kind of cool i think.
<iqubic>
Nice.
<iqubic>
I'm planning on buying an external hard-drive to attach to this Pi as a permanant thing.
<pie__>
having a second machine to irc on is good in case you get stuck with a broken bootloader ;D
<iqubic>
I totally understand. I know have a second machine.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjgRK
<pie__>
still broke one thing even though i got almost everything set up properly through the VM.
Arahael has quit [Ping timeout: 268 seconds]
domogled has quit [Ping timeout: 268 seconds]
Arahael has joined #nixos
ilya-fedin has quit [Quit: Connection closed for inactivity]
<pie__>
iqubic, i had to figure a lot of this meta stuff out by myself because i didnt have anyone to help me most of the time. and i still get lazy sometimes. youll find a lot of really great people here, so you need to force yourself to start relying on your own problem solving ingenuity
<pie__>
and developing it
<pie__>
iqubic, you have to think about the methodology of solving problems as much as the actual problem solving itself
<pie__>
"ok, i was stuck, X told me the solution, now that I know the solution, is there anything i could have changed in my problem solving strategy, with the things i knew at the time, to solve the problem myself?"
<pie__>
and the point that question becoes useful is useful, is when youre stuck next time, emd up being able apply that "diff" to a new problem you run into
<pie__>
*and the point the answer to that questoin becomes useful,
<pie__>
is when youre stuck next time and can apply the "diff" to your new problem
<pie__>
you also have to develop your body of knowledge in parallel with that of courses, which is the more tedious thing
<pie__>
not much use to thinking though, if you have nothing to think about ;P
<pie__>
(which is why i think people with good memory are cheating! :( /me glares at clever in a friendly way :P)
<clever>
lol
sb0 has quit [Quit: Leaving]
pie__ has quit [Ping timeout: 258 seconds]
Arahael has quit [Ping timeout: 248 seconds]
Ariakenom has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Arahael has joined #nixos
toppler has quit [Ping timeout: 252 seconds]
toppler has joined #nixos
kvda has joined #nixos
Copenhagen_Bram has quit [Quit: So long, and thanks for all the fish! 2.4 Weechat is best Weechat]
palo1 has joined #nixos
adamantium has joined #nixos
palo has quit [Ping timeout: 272 seconds]
palo1 is now known as palo
<ashkitten>
can't figure out why firefox is failing to build.... what's a good pastebin to dump the output on for someone to look at?
<clever>
ashkitten: it may also be down to which version of nix is being used to build it, there was a recent change to introduce pty's into the sandbox to fix stdout
<ashkitten>
hm
<ashkitten>
well i'm on nixos-unstable, just with the alsa revert since pulseaudio broke
<dminuoso>
Perhaps someone here can give me a hint. I have a thinkpad t480s, and whenever I plug it into my thinkpad docking station my ethernet link does not come up. Resetting it with `ip set link ... down` followed by `ip set link ... up` brings the interface up just normally.
m0rphism has joined #nixos
dansho has quit [Remote host closed the connection]
arahael2 has joined #nixos
ThatDocsLady has joined #nixos
dansho has joined #nixos
arahael1 has quit [Ping timeout: 272 seconds]
<__monty__>
dminuoso: Maybe it's a network manager setting? I use connmand and it doesn't switch to ethernet if there's any active traffic.
clacke_movim has left #nixos [#nixos]
cjpbirkbeck has quit [Quit: Leaving]
<dminuoso>
__monty__: Same hardware?
<dminuoso>
__monty__: It's an interesting thought though because I always have a wifi connection.
Jetien_ has joined #nixos
<__monty__>
No, much older thinkpad.
sigmundv has joined #nixos
<__monty__>
I do think connmand does this on purpose though. So as not to interrupt ongoing traffic.
Tucky has joined #nixos
Makaveli7 has joined #nixos
<dminuoso>
__monty__: Okay that helped me. So it seems as long as the internal ethernet adapter is set to up this issue persists.
<dminuoso>
Thank you, perhaps I can figure out why that is. :)_
arahael3 has joined #nixos
arahael2 has quit [Ping timeout: 252 seconds]
kvda has joined #nixos
<{^_^}>
[nixpkgs] @flokli opened pull request #62975 → nixos/documentation: nixos-help: use w3m(1) by default → https://git.io/fjguu
fendor has joined #nixos
veske has joined #nixos
fschulze has joined #nixos
Soo_Slow has joined #nixos
arahael4 has joined #nixos
<{^_^}>
[nixpkgs] @flokli closed pull request #62975 → nixos/documentation: nixos-help: use w3m(1) by default → https://git.io/fjguu
<fschulze>
hi! I'm pretty new to nixos. I have trouble enabling Xfwm. All I get is an undecorated xterm window after the GUI login. I have services.xserver.enable = true; services.xserver.desktopManager.xfce.enable = true; services.xserver.desktopManager.xfce.enableXfwm = true; services.xserver.desktopManager.default = "xfce";
<fschulze>
I've also tried others like twm and it's always the same.
<jasongrossman>
fschulze: Can you paste your whole configuration into a pastebin please?
<fschulze>
jasongrossman: question is how, I guess easiest is first installing sshd. I have firefox on that machine, but don't know how to copy and paste the config there
<jasongrossman>
fschulze: OK ... if the rest of it (apart from the lines you've already quoted) are the same as the default then maybe you don't need to bother.
<fschulze>
jasongrossman: I followed some guide a while ago with a zfs setup, but besides that there isn't much there yet. I had i3 running for a while and then upgraded to 19.03. I'm not sure anymore whether the 19.03 upgrade broke it or not. I think I was on 18.03 before
<jasongrossman>
fschulze: About pastebins, there are command line tools like pastebinit, which NixOS has available.
<fschulze>
I just noticed stateVersion at the end is still 18.03
<jasongrossman>
fschulze: Thats' good. That setting is a misnomer. Ignore it.
<jasongrossman>
fschulze: Aha. You haven't got anything set for services.xserver.windowManager.default
<jasongrossman>
fschulze: I'm not sure that that's the problem, but it's worth trying.
is_null_ has quit [Ping timeout: 268 seconds]
Anton-Latukha has joined #nixos
<fschulze>
I tried that with Xfwm now and it says it can't find it and doesn't list any
<jasongrossman>
Try "none"!
cfricke has quit [Quit: WeeChat 2.5]
<fschulze>
jasongrossman: same
<jasongrossman>
I'll try your settings here. I'll have to reboot. ...
toppler has quit [Ping timeout: 246 seconds]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
<sphalerite>
Is there a way to "reset" a USB device in software, like unplugging it and plugging it back in?
<sphalerite>
(can't do it physically because it's internal)
is_null has joined #nixos
<pie__>
sphalerite, sounds annoying :C
<pie__>
sphalerite, first thing that comes to mind is reloading the kernel module :I
<pie__>
theres gotta be a better way
<sphalerite>
well I've gone and "remove"d it via sysfs
<sphalerite>
not sure I can get it back though :D
jasongrossman has joined #nixos
<jasongrossman>
I have bad news. When I use those Xfce options it works perfectly here. Including xfwm.
clacke_movim has joined #nixos
<sphalerite>
I think #nixos is probably the channel where I've seen things working perfectly considered bad news the most often :p
<jasongrossman>
:p
<fschulze>
jasongrossman: in the meantime I tried enabling i3 again and it doesn't work either. I also booted into the old setups and the last one working is 18.03 with i3. can I see what config was used when I booted into an old one? I want to check whether I switched away from i3 together with the 19.03 upgrade or whether I upgraded before
<jasongrossman>
Huh.
<jasongrossman>
As for old configs, you have to make our own backups of them. The configuration is not part of the system (perhaps counter-intuitively).
<fschulze>
then I don't have those anymore
<fschulze>
but it looks like 19.03 broke stuff for me
<jasongrossman>
I'm logging out now in order to reboot into a window manager I know how to use!
jasongrossman has quit [Client Quit]
toppler has joined #nixos
hmpffff_ has joined #nixos
hmpffff has quit [Read error: Connection reset by peer]
dansho has quit [Quit: Leaving]
<jasongrossman[m]>
I'm back ... although I'm stuck. I guess you've hit a bug in 19.03.
<fschulze>
jasongrossman[m]: are there logs I could look into to see what is going on?
jasongrossman has joined #nixos
<fschulze>
jasongrossman: are there logs I could look into to see what is going on?
<fschulze>
jasongrossman: or can I downgrade to 18.03?
<fschulze>
by switching the channel maybe?
<jasongrossman[m]>
fschulze: There must be. Out of my expertise though.
<jasongrossman[m]>
But hang on.
<jasongrossman[m]>
Not many people use Xfce (I think) but surely lots of people use i3.
<jasongrossman>
fschulze: You can easily downgrade, yes.
<{^_^}>
[nixpkgs] @teto pushed commit from @Izorkin to master « haskellPackages.insert-ordered-containers: fix build »: https://git.io/fjgzO
logzet has joined #nixos
<fschulze>
jasongrossman: which windowmanager do you use?
<jasongrossman>
fschulze: I actually tested your config options using the unstable channel, so you could try that. Although I think it's unlikely to work.
<{^_^}>
[nixpkgs] @teto pushed commit from @jonringer to master « vimPlugins: update plugins »: https://git.io/fjgzG
schjetne has joined #nixos
<jasongrossman>
fschulze: I really am stumped. Your computer's behaving as though some other setting in your configuration is breaking your window manager ... but I can't see anything wrong with your config. And it's hardly a long file! I hope I'm being dumb and someone else will notice something. I suggest you show it here again, maybe at a different time of day when someone smarter than me is looking.
ilmu has joined #nixos
mexisme has quit [Ping timeout: 268 seconds]
<fschulze>
jasongrossman: thanks anyway!
* fschulze
is trying with 18.09
is_null has quit [Ping timeout: 248 seconds]
kvda has joined #nixos
arahael4 has joined #nixos
mexisme has joined #nixos
ilmu has quit [Ping timeout: 252 seconds]
Synthetica has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
averell has quit [Ping timeout: 272 seconds]
mexisme has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 merged pull request #62101 → throttled: fix for Intel CPU throttling issues → https://git.io/fjRZc
<m1cr0man>
Hey. If I have a list-type config option like firewall.allowedTCPPorts is there a way for me to append to that list implicitly? My use case is that I have an importable nix config for apache, and I only want to open that port when I import that config.
acarrico has joined #nixos
<m1cr0man>
I was thinking this might work: `networking.firewall.allowedTCPPorts = builtins.concatLists [networking.firewall.allowedTCPPorts [80]]` (I haven't tried it yet)
<marek>
immae: htm, I'm using fetchSubmodules = true; but it is not fetched
<marek>
I'm fetching by tag tho
<immae>
m1cr0man: just do `networking.firewall.allowedTCPPorts = [80];`, it will be appended
<immae>
marek: is it declared in your .submodules file?
<m1cr0man>
oh sweet!
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aveltras>
__monty__: thx for the info, i think i'll do that then
<immae>
marek: ah, during the grep I grasped a « For some reason, `fetchSubmodules` doesn't work when using `rev = "v${version}";`, » :/
Arahael has quit [Ping timeout: 258 seconds]
<marek>
immae: ah interesting!
<marek>
I will open an issue too
<{^_^}>
[nixpkgs] @sbourdeauducq opened pull request #62978 → amp: init at 2019.06.11 → https://git.io/fjg2Q
<__monty__>
aveltras: Note that this is specifically because I have many nginx instances on the box. If that container's the only one there's probably a simpler/more robust solution.
stepcut has joined #nixos
<marek>
immae: hm, not even if I put a hash in rev
<aveltras>
__monty__: my intended use case is to have a unique nixos server and serve several small apps on it by using nixops to deploy those apps as containers, so i think nginx would fit here
<immae>
It’s because when you have a rev you fetch a tarball
drakonis has joined #nixos
<__monty__>
Specifically the nginx on the host proxies to the containers by way of their multicast (avahi) domain.
<marek>
immae: I see hrmm
<marek>
immae: any way to fetchsubmodes but still tight to a verion?
<aveltras>
__monty__: do you have a simple example of the nginx proxying on the host ? proxying to containers by looking at the host address of the requests
<immae>
marek: you can try to consider your repo as a git one instead, in which case it won’t try to be smart and download a tarball
clacke_movim has left #nixos [#nixos]
<immae>
fetchgit (builtins) instead of fetchFromGitHub
<immae>
builtins.fetchGit sorry (caps)
drakonis_ has quit [Ping timeout: 268 seconds]
<immae>
marek: sorry, the builtins doesn’t fetch submodules. But lib.fetchgit does and doesn’t attempt tarballs
Arahael has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<__monty__>
aveltras: nginx.conf extract, I don't use nixos for this, http://ix.io/1Lv7
drakonis_ has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
Seraxis has joined #nixos
drakonis has joined #nixos
<aveltras>
__monty__: nice, i'll try to do something similar, thanks for the help !
is_null has quit [Ping timeout: 272 seconds]
<__monty__>
np
<Seraxis>
Hey there! NixOS noob with a question. Why use 'nix-env'? If I interpret the manual and wiki right using 'nix-env' loses the atomic safety and backup potential that an environment level package affords you, am I understanding that correctly? tyia
<__monty__>
Seraxis: Mostly on non-nixos or for one-off installs (though nix-shell may be more suitable).
<Seraxis>
ah I see, I could see the usefulness in it as a transient non system state package installer, I got confused by it's presentation as an option without discussion of it's tradeoffs
clacke_movim has joined #nixos
<Seraxis>
it seems like how application installs in docker containers arent strictly stateful? i know that's a weird comparison but is that understanding good?
Arahael has quit [Ping timeout: 245 seconds]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
<__monty__>
Not very familiar with docker. Nix-env's definitely a stateful approach to package management. Comparable to traditional package managers.
<__monty__>
Note that this is not necessarily true though, for example, I use a declarative config on non-nixos so I use nix-env to install/update that.
<Seraxis>
I'm not sure what you mean by non-nixos, can you clarify? just other linux distributions with nix?
<Seraxis>
ohhhh wait now I get it, I remember reading that individual users environment configs get created and updated when installing packages under some directory
<Seraxis>
the configs are updated and kept under some directory, that is
kvda has joined #nixos
<jboy>
When I write a derivation for a c++ program, do I have to define a buildInput for the C++ standard library?
<gchristensen>
no
stepcut has quit [Ping timeout: 268 seconds]
<yorick>
" Please downgrade your bazel installation to version 0.21.0 or lower to build TensorFlow!" argh
Arahael has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
is_null has joined #nixos
acarrico has quit [Ping timeout: 272 seconds]
<pie__>
yorick, christ
<pie__>
yorick, yay nix? :P
polman has quit [Ping timeout: 244 seconds]
<pie__>
andi-, the sponsors should probably not be at the bottom of the page
<gchristensen>
samueldr: w.r.t. that PR ^ was there big lifts left t odo?
alex`` has joined #nixos
kvaster_ has joined #nixos
<marek>
hrm, anyone with rust packaging experience? getting error: the lock file /build/jormungandr/Cargo.lock needs to be updated but --frozen was passed to prevent this
<marek>
I guess the upstream cargo.lock is broken?
<aanderse>
manveru: i updated to bundix 2.4.2 and now gemset.nix is adding groups = ["default"]; to everything. quick look over readme etc... doesn't show any mention of that. how do i get the gemset to respect the groups = [ "ldap" "openid" ] i set in my default.nix?
hmpffff_ has quit [Quit: nchrrrr…]
polman has quit [Ping timeout: 244 seconds]
halogenandtoast has joined #nixos
<manveru>
aanderse: the "default" group is set when it has no group, the gemset.nix always includes all groups because it doesn't know what your bundlerEnv is
bahamas has quit [Ping timeout: 272 seconds]
<halogenandtoast>
I am trying to figure out the right way to update a pinned nix packages version, I ran nix-prefetch-url --unpack https://github.com/NixOS/nix/archive/0baf7dc25e0a5fcd25dcd9d9cb737c682d01e4e7.tar.gz which is the commit sha for the 2.2 release (I think this is the right thing to do). And then pinned rev with that sha and set the sha256 to the output of the prefetch command, but I get:
<halogenandtoast>
error: opening file '/nix/store/x4753dhjyqkcxxa6hhi0qypc12k3hqza-source/default.nix': No such file or directory
<halogenandtoast>
when I try to run nix-build
<manveru>
halogenandtoast: it's NixOS/nixpkgs
<halogenandtoast>
manveru: yeah I just realized that :[
<manveru>
:)
<halogenandtoast>
round 2, thanks
polman has joined #nixos
v88m has quit [Read error: Connection reset by peer]
v88m has joined #nixos
o1lo01ol1o has joined #nixos
toppler has quit [Ping timeout: 248 seconds]
<aanderse>
manveru: that makes sense. some of the generated groups include "test", which is causing me some problems. how can i force bundix to not include "test" in the groups?
<manveru>
there's no option for that... sorry
<manveru>
how does it cause problems?
fendor_ has quit [Quit: Leaving]
silver has joined #nixos
Arahael has joined #nixos
<aanderse>
test only dependencies are included and that caused a problem
<manveru>
if you specify the groups in the bundlerEnv, it shouldn't build or activate those gems
<{^_^}>
[nixpkgs] @FRidh pushed commit from @markuskowa to master « hwloc: 2.0.3 -> 2.0.4 »: https://git.io/fjgrd
Makaveli7 has quit [Quit: WeeChat 2.4]
<gchristensen>
is there a library function for extracting dapx7w6y96pyqvv0j26zq9v7p50863a1 from /nix/store/dapx7w6y96pyqvv0j26zq9v7p50863a1-squashfs.img
m1sosoup has joined #nixos
<alex``>
do you know a tool to record screencast?
<goibhniu1>
alex``: I haven't used it in a few years, but I found SimpleScreenRecorder works great. OBS is excellent, but might be overkill.
<immae>
alex``: would you be happy with a script combining ffcast (to define a region), ffmpeg (to record) and convert (to possibly convert to gif)?
<alex``>
ffcast is from ffmpeg team?
<immae>
(a very small hand made script that does the job)
<immae>
it may be able to but you have to check with ffmpeg docto add the necessary parameters
<alex``>
ffmpeg flags are complicated lol
<alex``>
you could get rid of imagemagick dep no?
<alex``>
using ffmpeg directly
<immae>
well, convert is only used at the last line
<{^_^}>
[nixpkgs] @vcunat pushed 2 commits to release-19.03: https://git.io/fjgos
<alex``>
afaik it can output images
<alex``>
and gif
<ToxicFrog>
gchristensen: what do you mean by "extracting"? You have the path as a string and you want just the hash?
<gchristensen>
yeah
<immae>
alex``: I think it didn’t work well but it’s old, so ’m not sure
<immae>
but feel free to improve it :)
<immae>
(if I remember correctly, I had very poor quality with the images from ffmpeg)
justanotheruser has quit [Quit: WeeChat 2.4]
drakonis_ has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
is_null has joined #nixos
newspecies has joined #nixos
<newspecies>
I am running nix-shell and I installed stack using the command "nix-shell -p stack". Is it possible to generate the default.nix of this shell?
is_null has quit [Remote host closed the connection]
init_6 has quit [Ping timeout: 272 seconds]
o1lo01ol1o has joined #nixos
<infinisil>
newspecies: You mean a shell.nix that you can `nix-shell` to get an equivalent of `nix-shell -p stack`?
<jD91mZM2>
Strange issue: `fusermount -u ...` works. `nix-shell -p fusermount --run 'fusermount -u ...'` complains about "Permission denied". I guess it's because fusermount needs a setsuid wrapper
<infinisil>
jD91mZM2: Yeah, `which fusermount` will tell you it's in /run/wrappers
<infinisil>
Outside the nix-shell
<infinisil>
And it'll be a store path in the nix-shell
<jD91mZM2>
Problem is I need to use fuse as a library, and one can only use libraries inside of nix-shell
orivej has quit [Ping timeout: 248 seconds]
<newspecies>
i want to generate these nix file and share it with other @infinisil
<infinisil>
jD91mZM2: You could do `shellHook = "export PATH=/run/wrappers/bin:$PATH"`
<jD91mZM2>
infinisil: I guess... BTW can I search where fuse comes from somehow?
is_null has joined #nixos
<infinisil>
newspecies: Well a shell.nix file that makes stack available would be something like this: `with import <nixpkgs> {}; mkShell { buildInputs = [ stack ]; }`
<joepie91[m]>
but I can't quite isolate what causes it
<joepie91[m]>
other than that the common factor seems to be the use of the `--store` flag
<joepie91[m]>
in `nix build`
alp has quit [Ping timeout: 245 seconds]
is_null has joined #nixos
rprije has quit [Remote host closed the connection]
erasmas has joined #nixos
rprije has joined #nixos
o1lo01ol1o has joined #nixos
pmiddend has joined #nixos
<pmiddend>
I've got a makefile that puts the target binaries in "bin/linux", not "bin". Is there a way to tell Nix about that, other than manually specifying an installPhasE?
domogled has quit [Quit: domogled]
arahael2 has quit [Ping timeout: 246 seconds]
fusion809 has quit [Remote host closed the connection]
shibboleth has quit [Quit: shibboleth]
sigmundv has quit [Ping timeout: 245 seconds]
arahael2 has joined #nixos
is_null has quit [Ping timeout: 245 seconds]
is_null has joined #nixos
kvaster_ has quit [Ping timeout: 272 seconds]
<dminuoso>
Cache population of autoPatchelf is painstakingsly slow. It takes upwards 10 minutes to build the cache, which makes fast rebuilding very annoying. What can I do to improve the performance?
<gchristensen>
you could manually use patchelf
veske has joined #nixos
leotaku has quit [Ping timeout: 258 seconds]
Henson has joined #nixos
nschoe has quit [Quit: Program. Terminated.]
arahael3 has joined #nixos
cjpbirkbeck has joined #nixos
<dminuoso>
gchristensen: Mmm. This is going to be annoying, but I guess I cant get around it. :)
arahael2 has quit [Ping timeout: 245 seconds]
wfranzini has quit [Remote host closed the connection]
<blackriversoftwa>
Hello, I'm doing a cross-compiled build of glibc for armv7l. The main derivation output doesn't have libgcc_s.so. Is this shared object disabled somewhere for cross-compilation?
jonaswouters has quit [Quit: Connection closed for inactivity]
is_null has joined #nixos
toppler has joined #nixos
ilmu has quit [Ping timeout: 246 seconds]
drakonis has joined #nixos
<blackriversoftwa>
matthewbauer: ok thanks
<o1lo01ol1o>
I have a stupid expression problem; in the following gist, I'm trying to build a derivation from a codebase for a hydra job and I can't figure out how to get some of the derivations available in my default.nix to the build commonad. Can anyone tell me what I'm doing wrong? https://gist.github.com/o1lo01ol1o/b0322132bf2d34cbc5f43f379b797aaa
asheshambasta_m has quit [Quit: Leaving.]
ilmu has joined #nixos
<eacameron>
Has anyone had success installing vmware player on Nixos? I'm trying to run the `.bundle` file that they give you for installing on linux but it errors out almost immediately
drakonis_ has quit [Ping timeout: 252 seconds]
veske has quit [Quit: This computer has gone to sleep]
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
ym555 has quit [Quit: leaving...]
Jetien_ has quit [Ping timeout: 245 seconds]
<blackriversoftwa>
mattewbauer: but that shared object is for the build platform, not the host platform
<marek>
ok, so if I understand it correctly, imports can't depend on the config
<blackriversoftwa>
matthewbauer: if I just look at the glibc derivation for x86_64, then libgcc_s.so is indeed under /lib
<marek>
any other idea how to include it with a value from config?
<blackriversoftwa>
but on the cross-compiled armv7l gcc it is not
<blackriversoftwa>
and it doesn't seem to be in any of the outputs for gcc or buildPackages.gcc either
<infinisil>
marek: Indeed they can't
Arahael has quit [Ping timeout: 245 seconds]
InFlames has joined #nixos
<infinisil>
marek: You can include all hosts files, but in each file control whether you apply the config with a `mkIf (config.networking.hostName == "foo") { ... }`
<mdash>
this nixos host seems to have forgotten how to fetch things from cache.nixos.org when doing nixos-rebuild. If I do 'nix build /nix/store/alqz1kbb88q04zclgrvkjad727y2p5i1-perl-5.28.1' it fetches from cache just fine
<mdash>
what should I be checking on?
takeda has joined #nixos
takeda has quit [Read error: Connection reset by peer]
takeda has quit [Read error: Connection reset by peer]
takeda has joined #nixos
takeda has quit [Read error: Connection reset by peer]
pmiddend has quit [Quit: WeeChat 2.5]
clacke_movim has left #nixos [#nixos]
clacke_movim has joined #nixos
takeda2 has joined #nixos
<ivan>
mdash: you can also try rm -rf ~/.cache/nix
<ivan>
or maybe you messed up your /etc/nix/nix.conf bad?
takeda has joined #nixos
takeda has quit [Read error: Connection reset by peer]
<takeda2>
After looking on the web I'm unable to find a solution to this, I'm wondering if there is a correct way to use buildGoModule with package that uses a private repo. In buildGoPackage I was able to replace fetchgit with fetchgitPrivate and that worked, but it doesn't look like this can be done with buildGoModule
<mdash>
ivan: mmm, i'd forgotten those were command line args too, let's see how that does
<mdash>
i did have cachix configured
<mdash>
seems like that did the trick
work_ has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @saschagrunert to master « conmon: 0.0.1pre52_6905a4d -> 0.2.0 »: https://git.io/fjgXC
<srhb>
eacameron: I think the right term is something like qemu frontend. I think qemu comes with tooling to convert most vm formats to something that'll run on qemu (preferably with kvm?)
<srhb>
eacameron: Might even be directly compatible.
arahael1 has quit [Ping timeout: 248 seconds]
ris has joined #nixos
<eacameron>
hi srhb! Hm that sounds interesting. I only thought to use vmware player because it is much faster than virtualbox and it seems to work on Ubuntu? Could qemu have the "performance" improvements that vmware supposedly offers over VB?
<srhb>
eacameron: hi :) I'm not aware of any real performance benefits of any of them iff they use proper virtualization, like kvm.
<gchristensen>
virtualbox is definitely known to be tricky
<srhb>
But qemu-kvm is certainly not slow. I find that the GUI integration is a bit hit and miss at times though..
arahael1 has joined #nixos
<ar>
eacameron: it's not that vmware is much faster than virtualbox. it's more of a virtualbox being slower than everything else
<eacameron>
ar haha
<eacameron>
In that case I may try this qemu-kvm idea
<srhb>
At least I know that works ootb on NixOS.
<eacameron>
Are there docs for it? I've never used it.
pie__ has joined #nixos
rprije has quit [Remote host closed the connection]
<srhb>
eacameron: Yes, but I find that on eg. a laptop, the easiest way to get going is with virt-manager which provides a gui for vm creation etc. `man qemu` is a bit long :-)
rprije has joined #nixos
<eacameron>
srhb: Excellent I'll try that! Thank you
Soo_Slow has quit [Remote host closed the connection]
<romildo>
Is it possible to add a commit to someone's else pull request? I would like to add a fix for https://github.com/NixOS/nixpkgs/pull/62494 (from r-ryantm), and give a chance for others to review the fix before merging the PR.
<ris>
so it _could_ be argued that those failing tests should be skipped as they're due to expecting overly-specific results from a third party package...
work_ has quit [Client Quit]
<domenkozar[m]>
mdash: how did that happen with cachix?
<domenkozar[m]>
maybe very old cachix?
arahael2 has joined #nixos
hoijui has quit [Quit: Leaving]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
domogled has quit [Read error: Connection reset by peer]
<aanderse>
Izorkin: you removed a few valgrindPcreSupport options. i'm not sure why
<aanderse>
i don't know what they do
<aanderse>
oh...
<aanderse>
nevermind
<aanderse>
i see
<aanderse>
sorry
Seraxis has quit [Read error: Connection reset by peer]
Seraxis has joined #nixos
lem0n4de has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
arahael2 has quit [Ping timeout: 258 seconds]
xelxebar has quit [Remote host closed the connection]
arahael2 has joined #nixos
xelxebar has joined #nixos
<Athas>
I have a problem with building unstable, where I get the error
<Athas>
builder for '/nix/store/75sxcn605fsqr3jgbf70chn8550rvk4j-compiler-rt-7.1.0.drv' failed to produce output path '/nix/store/qx4w4841grng03q819hmaj315j7a9w6r-compiler-rt-7.1.0'
<Athas>
A few lines above that, I see
<Athas>
Removing empty /nix/store/qx4w4841grng03q819hmaj315j7a9w6r-compiler-rt-7.1.0/ and (possibly) its parents
<Athas>
So... something is deleting the directory? But what is doing that?
lem0n4de has quit [Quit: Page closed]
arahael2 has quit [Ping timeout: 244 seconds]
<manveru>
well, if it's empty, it's probably not what you wanted anyway...
arahael2 has joined #nixos
shibboleth has quit [Quit: shibboleth]
<joepie91[m]>
hmmmm. when exporting an FHS user env from a package definition, there is no way to communicate the version of the software contained therein?
<clever>
joepie91[m]: point NIX_PATH to a real directory, not a tar URL
veske has joined #nixos
<joepie91[m]>
clever: I don't think it was pointing to a tar URL? either way I "fixed" the problem by installing a barebones configuration, then booting into it, and installing my actual config from within the booted system
<joepie91[m]>
but this definitely looks like a bug in Nix :/ my best guess is that it stores the fetched tarballs in a configuration in the nix store of the live system, and then tries to build into the nix store of the target system, and then loses its shit because the tarballs in question are not within the nix store of the target system
arahael2 has quit [Ping timeout: 244 seconds]
knupfer has joined #nixos
<joepie91[m]>
and it therefore concludes that they are "not in the Nix store", even though it's just in a *different* Nix store
drakonis_ has quit [Ping timeout: 258 seconds]
toppler has joined #nixos
wfranzini has joined #nixos
acarrico has joined #nixos
<clever>
joepie91[m]: the error implies that something was calling builtins.fetchTarball and that has bugs with --store
<joepie91[m]>
clever: right, fetchTarball is used in various places in my config
<joepie91[m]>
but that seems like a pretty serious bug
<joepie91[m]>
is there some sort of canonical issue for this? all I could find was desperate users :)
<joepie91[m]>
(and no explanation like this at all)
cjpbirkbeck has quit [Quit: Leaving]
ricekrispie has joined #nixos
<clever>
joepie91[m]: the work-around is to use nix-copy --to local?root=/mnt/ /nix/store/foo
<clever>
joepie91[m]: to copy each output from a fetchTarball
<c00w>
Isn't guix also gnu and only free software?
<hio>
ok, so....which one wins
<gchristensen>
hio: your favorite
<makefu>
RMS would always choose free software
<joepie91[m]>
clever: could you add your explanation and workaround to your issue thread?
<hio>
RMS is a bit too much on the commie side
<joepie91[m]>
hio: might I remind you that you are asking this in #NixOS :o)
<gchristensen>
hio: you're probably not going to get us to bite like you want
<hio>
gchristensen: he literally is though
* gchristensen
shrugs
<c00w>
He also likes parrots.
<gchristensen>
hio: you should try both and then decide
<hio>
so .. I tried both nix and guix
<gchristensen>
our opinion is not so relevant
<hio>
I dont really like either of them because they both kinda miss the point
<gchristensen>
okay, that is fine, sounds like neither is what you want
<hio>
I mean that nix should offer me something like nix install debian
<gchristensen>
eh
<makefu>
ehhhhh
<c00w>
hio: chromebooks have that now I think.
<clever>
joepie91[m]: just looked back at the original error i quoted, it makes no mention of what the storepath is, so the work-around is suddenly more complex
<c00w>
As does windows?
<gchristensen>
makefu, c00w don't bite :P
<o1lo01ol1o>
I have a derivation foo defined such that, if I drop into a nix-shell and run "ghc bar baz", the project builds. Is there a way to pass just the environment of food to the "buildInputs" of mkDerivation? I basically need to run "ghc bar baz" to build the project but if I add foo to the build inputs of a derivation, the derivation tries to build without the necessary flags
<c00w>
k
<makefu>
k
<gchristensen>
but yeah, chromebook and windows are pretty cool for their Linux integrations
<clever>
gchristensen: i was recently looking into the windows bootloader, and how to configure it to boot grub
<gchristensen>
oh wow :)
<clever>
gchristensen: and at least on efi systems, thats trivial, and grub can then boot something like my kexec images
<gchristensen>
:O
veske has quit [Quit: This computer has gone to sleep]
<joepie91[m]>
clever: even then, *some* information on workarounds is better than none :)
<manveru>
hio: what'd be the point of that? unless debian started building their stuff with nix it'd be the same as buildFHSUserEnv, no?
<clever>
gchristensen: there are also other examples ive found, that are like chainload in grub, you just shove a 512 byte copy of the MBR at the windows bootloader, and it runs it
<clever>
gchristensen: but that relies on having stage 1.5 in another partition
<hio>
manveru: because it's not supposed to be a sandbox. I mean that nix should allow me to reinstall everything from 0 to debian or from 0 to opensuse with one command as if each were a simple package
drakonis has joined #nixos
<clever>
gchristensen: i also stumbled upon something interesting, windows can now boot from a .vhdx image on an ntfs partition
<inquisitiv3>
I'm currently installing NixOS. If I've created a volume and mounted it at `/mnt`, will there be any problems with permissions or creations of directories if I would create the directory `/mnt/home/user/[files]`?
arahael2 has quit [Ping timeout: 245 seconds]
<inquisitiv3>
I've a *.nix file with all my system wide settings that's version controlled. The file will be imported in `/etc/nixos/configuration.nix`. Where should I place the file during installation?
<inquisitiv3>
Context for my question ^
<clever>
inquisitiv3: if you use relative paths in configuration.nix, it doesnt really matter
<clever>
inquisitiv3: i just have a git repo at /etc/nixos/nixcfg and then i do imports = [ ./nixcfg/amd-system.nix ];
<inquisitiv3>
clever: I'm trying to avoid having to use git with root priviligies.
<inquisitiv3>
So there isn't any problem creating the home directory before installation and creation of the user?
<clever>
inquisitiv3: youll want to chown -R the dir after you boot, to make sure you own it
<avn>
clever: I found it funny impot ./hosts/$hostname/default.nix ;) I have template configuration.nix.in in my git ;)
<clever>
thats about it
<clever>
avn: you can omit the default.nix part, since thats the default!
arahael2 has joined #nixos
<inquisitiv3>
clever: Thanks! That's what I looked for :)
mmlb has joined #nixos
averell has joined #nixos
<Thra11>
What's the difference between nixpkgs.pkgsCross.armv7l-hf-multiplatform.pkgsStatic.hello and nixpkgs.pkgsStatic.pkgsCross.armv7l-hf-multiplatform.hello ?
mthst has joined #nixos
<clever>
Thra11: one should be using dynamic linking, the other static
Synthetica has quit [Quit: Connection closed for inactivity]
<Profpatsch>
hio: Come back when you’ve actually understood what nix is and/or does :)
alan[m] has joined #nixos
<Profpatsch>
We can help you understand, but your statements show that you clearly haven’t grokked the idea yet.
<Thra11>
clever: So what does the pkgsStatic in the second one do? Does it not affect the output?
<Thra11>
clever: or the first... which is which?
<clever>
Thra11: oh, i didnt notice it in both
<clever>
Thra11: yeah, i'm not sure what it will do
<Thra11>
clever: ah ok.
arahael3 has joined #nixos
domogled has joined #nixos
<Thra11>
nix seems to accept either, but I don't think they produce the same result.
<Thra11>
I guess I'll wait and see what it builds...
arahael2 has quit [Ping timeout: 244 seconds]
<clever>
Thra11: nix-instantiate both, and then nix-diff the 2 .drv files
Matthieu_ has joined #nixos
arahael3 has quit [Ping timeout: 245 seconds]
orivej has quit [Ping timeout: 245 seconds]
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
arahael4 has joined #nixos
<eraserhd>
Can I use the standard builder with a src that is just a link to a single source file? And is it a bad idea to do so?
wfranzini has quit [Remote host closed the connection]
<clever>
eraserhd: the default unpackPhase expects $src to be either a directory or a tarball/zip
<clever>
eraserhd: you would have to replace the unpackPhase = '' .... '';
zeta_0 has joined #nixos
<infinisil>
Um simple question: How do I generate a diff from git for use by `patches = [(writeText "foo.patch" "<patch contents here>")]`?
<eraserhd>
clever: that's doable enough, thanks
<infinisil>
git diff doesn't seem to output a usable format
<clever>
infinisil: i would just use patches = [ ./patch-file.patch ];
<clever>
infinisil: and create it with `git diff > patch-file.patch`
<infinisil>
Is there a problem with writeText then?
<zeta_0>
why is this nix haskell package broken? `haskell-overridez`
<clever>
infinisil: more likely with '' or you missing a trailing newline
<clever>
zeta_0: it looks like it might only need a doJailbreak to fix it
justanotheruser has joined #nixos
knupfer has quit [Quit: knupfer]
<zeta_0>
clever: it looks like a lot of broken things
knupfer has joined #nixos
<Athas>
I'm really confusednow. When I do 'sudo nixos-rebuild test -I nixpkgs=~/repos/nixpkgs/', it will fail to compile the package compiler-rt (actually llvmPackages.compiler-rt).
<Athas>
Yet, standing in that directory and doing 'nix-build . -A llvmPackages.compiler-rt' works fine. The hashes are different, however.
<clever>
Athas: run nix-diff on the .drv file for both builds
Fare has quit [Ping timeout: 245 seconds]
jb55 has quit [Quit: jb55]
halogenandtoast has quit [Quit: WeeChat 2.4]
jb55 has joined #nixos
ambro718 has quit [Ping timeout: 245 seconds]
<Athas>
clever: the 'nix-build'ed package does not seem to have a .drv file. Is there a simple way of regenerating it?
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjgyJ
<Athas>
clever: that produces the name of a file that does not exist.
<clever>
Athas: you can also `nix-instantiate /path/to/nixpkgs -A llvmPackages.compiler-rt
ddellacosta has joined #nixos
<Athas>
clever: thanks! It's a bit mysterious that the generated .drv file does not correspond in hash to the package. Guess I still have something to learn.
<Athas>
Anyway, I think I may have my answer: the nixos-rebuild version seems to be trying to build an i686 version, likely because of the 'hardware.opengl.driSupport32Bit = true' in my configuration.nix.
<Athas>
silver has quit [Ping timeout: 268 seconds]
silver has joined #nixos
<clever>
Athas: <hash>-<name>.drv is based on the hash of its contents
<clever>
Athas: and one entry in that contents, is the $out path, /nix/store/<hash>-<name>/ which is based on a hash of a subset of the drv contents
<clever>
Athas: ahh, you can do `nix-build -A llvmPackages.compiler-rt --argstr system i686-linux` to force nix-build to do 32bit also, for testing
<m1cr0man>
Will a regular C-based binary not run on nixos without recompiling? Trying to run a game server.
<clever>
m1cr0man: you either need to compile it with nix, or run patchelf over the binary
<m1cr0man>
ok I'll try the latter since I have no source
<Athas>
clever: right, that's definitely it. It doesn't build ("Removing empty /nix/store/qx4w4841grng03q819hmaj315j7a9w6r-compiler-rt-7.1.0/ and (possibly) its parents").
<Athas>
This is a fairly crucial package if you want to run Steam, so I wonder how it got broken. (It works in 19.03.)
<clever>
Athas: in the nixpkgs dir, while checked out to a broken rev, run `git bisect bad`
<clever>
Athas: then checkout a rev you know works (and confirm with nix-build), and run `git bisect good`
<clever>
repeat building, and telling git if its good or bad
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjgym
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #62894 → llvm_7: skip failing X86 test cases on armv7l → https://git.io/fjzAR
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjgyY
shibboleth has quit [Quit: shibboleth]
inquisitiv3 has quit [Remote host closed the connection]
<eyJhb>
Is there, or has there been any planing on channels supporting git ? e.g. having a channel pinned at commit X? Without having to manage your own git repo
lovesegfault has quit [Quit: WeeChat 2.5]
<ashkitten>
i forget, is git bisect scriptable?
<gchristensen>
yeah
<ashkitten>
like, could you write an automated test to run on every revision?
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
<LnL>
yes, you can pass it a command that returns 0 or 1 for good/bad respectively
<ashkitten>
oh rad
<clever>
but there can be other failures, that are caused by unrelated problems, which you want to skip
<clever>
and it can be tricky to write a script that can identify those automatically
<LnL>
yeah, I'm not sure there's an easy way to automate skip
<Athas>
Maybe another time; I'm already far too busy debugging messes of my own making.
<clever>
i think the script can return 2 for skip, check the man page
<Athas>
I don't need an i686 build of compiler-rt.
Fare has joined #nixos
<eyJhb>
Yup
rfold has quit [Quit: WeeChat 2.4]
<ashkitten>
ill be honest ive never had a use for git bisect, given i only really work on hobby projects where i make sure everything works before committing (and are small enough that this approach works)
Zer000 has joined #nixos
t184256 has joined #nixos
t184256 is now known as monk
dejanr has quit [Ping timeout: 245 seconds]
<o1lo01ol1o>
I must be doing something stupid here. The following builds a project: nix-shell -A shells.ghc "ghc -Foo -Bar". How can I write an expression using mkDerivation that does the same?
<eyJhb>
ashkitten I had never used bisect until this week. I actually quite enjoyed it
<ashkitten>
and on bigger projects i've pretty much always been able to identify the commit by name which caused it, or use git blame
<clever>
Athas: Bisecting: 4092 revisions left to test after this (roughly 12 steps)
<clever>
o1lo01ol1o: add a buildCommand or buildPhase to the derivation, and point nix-build at it
mthst has joined #nixos
<eyJhb>
It would be awesome though, if NixOS could make some build servers available, if you needed to pinpoint a single error, which has minimum cached builds
<Guest54840>
/nick t184256
Guest54840 is now known as t184256
<o1lo01ol1o>
clever: I have a builder.sh that is effectively "ghc -Foo -Bar", but I'm not sure how to provide the rest of the inputs it needs.
<clever>
o1lo01ol1o: builder.sh disables 90% of the tools you need to make anything work
<o1lo01ol1o>
ah.
<clever>
o1lo01ol1o: just use buildCommand = "ghc -Foo -Bar"; and dont use builder =
<o1lo01ol1o>
and how do I pass the inputs to the derviation?
<o1lo01ol1o>
ie, the shells.ghc attributtes
<clever>
o1lo01ol1o: copy those definitions over, it just needs normal buildInputs
<m1cr0man>
Damn, there's some crazy stuff done to get steamcmd to work on nix in the first place
<clever>
m1cr0man: yeah, its doing chroot's rather then patchelf
<clever>
m1cr0man: because of how the games self-update, and often tread any patching as either corruption or cheating
Fare has quit [Ping timeout: 246 seconds]
<m1cr0man>
I wouldn't mind re-patching later for now, or building a chroot, I was hoping to get going tonight. After patchelf I got `Accessing a corrupted shared library` from the binary so I assume there's more to it than the hacks im trying right now
xorax has joined #nixos
Fare has joined #nixos
<xorax>
hi, i'm trying to install node2nix, but when i run nix-env -q node2nix it doesn't find anything
<Athas>
Oh boy, Mesa switched away from autotools.
<ashkitten>
either way it makes my life easier to have steam-run which lets me run any foreign binary meant for other linuxes on my nixos machine
<Athas>
This will be fun to update.
knupfer has quit [Ping timeout: 250 seconds]
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
t184256 has left #nixos [#nixos]
<clever>
Athas: Bisecting: 122 revisions left to test after this (roughly 7 steps)
eeva has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 245 seconds]
eeva has joined #nixos
<Athas>
clever: so it also fails for you?
<clever>
Athas: on many revs
<Athas>
I guess maybe this reproducibility thing really does work!
<Athas>
My hunch is that it'll fail on the revision that switched from LLVM 5 to LLVM 7 as the default, which is unfortunately not terribly useful.
domogled has quit [Ping timeout: 272 seconds]
mthst has quit [Ping timeout: 245 seconds]
<clever>
Athas: Bisecting: 84 revisions left to test after this (roughly 6 steps)
hmpffff has quit [Quit: nchrrrr…]
mthst has joined #nixos
<m1cr0man>
\o/ i386 docker container got me going :) I think I'll stick to docker for this, as much as I hate it, given the complexity of setting up a 32-bit compatible nixos chroot
dejanr has joined #nixos
orivej has joined #nixos
Fare has quit [Ping timeout: 244 seconds]
drakonis has joined #nixos
gyroninja_ has joined #nixos
gyroninja has quit [Ping timeout: 268 seconds]
arahael4 has joined #nixos
srl295 has joined #nixos
veske has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @joepie91 opened pull request #63000 → sidequest: init at 0.3.1 → https://git.io/fjgy1
arahael4 has quit [Ping timeout: 264 seconds]
[Leary] has quit [Remote host closed the connection]
arahael4 has joined #nixos
Lears has joined #nixos
brandonhamilton has joined #nixos
acarrico has quit [Ping timeout: 272 seconds]
ks0ne has quit [Quit: Lost terminal]
Anton-Latukha has quit [Quit: Leaving.]
veske has joined #nixos
<clever>
Athas: getting down into the mass-rebuilds now, with 83 commits left to scan
brandonhamilton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
hodapp: you're not in Montreal are you?
<xorax>
Can someone please help me figure out how to install node2nix which is defined in nixpkgs/pkgs/development/node-packages/default-v8.nix? Or else direct me to a more suitable channel?
<xorax>
I'm new to nix and nixos and still learning the basics...
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjgSa
Matthieu_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #62992 → plan9port: build everything on Darwin → https://git.io/fjg1P
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjgSV
o1lo01ol1o has quit [Ping timeout: 248 seconds]
toppler has joined #nixos
kvda has joined #nixos
<tobiasBora>
Hello,
<tobiasBora>
I'd like to know, is it possible to specify two /nix/stores?
<simpson>
What's the goal?
<simpson>
I think the answer is "no".
<xorax>
clever: it can't find anything under nodePackages...
<clever>
xorax: what are you using to search?
endformationage has quit [Quit: WeeChat 2.4]
<tobiasBora>
Because I have a small ssd (24Go), and I'd love to move most of the /nix/store there (quicker boot), but as I don't want to restrict /nix/store to 24Gb, I'd like to allow it to continue one the hdd
<clever>
xorax: that only shows channels, not packages in a channel
<xorax>
i've tried using both nix-env and nox
<tobiasBora>
simpson: ^
<clever>
xorax: you want nix-env -iA nixos.nodePackages.node2nix
<xorax>
ok that worked. thanks!
<xorax>
I first ran nix-env -iA nixos.nodePackages and installed a bunch of other packages. any way to undo that?
<clever>
xorax: nix-env -q to list all of them, and nix-env -e to remove each one, or `nix-env --rollback` to just undo the last thing you did (you can repeat rollback a few times)
mbrgm has quit [Ping timeout: 252 seconds]
<xorax>
thanks
mexisme has quit [Ping timeout: 245 seconds]
<simpson>
tobiasBora: Interesting. There might be a way to connect them together, but I'm not sure if that can be done in an intelligent way so that your frequently-used packages live on the SSD.
mbrgm has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Shados>
tdeo: I've made some comments
<clever>
simpson: thats what the L2ARC in zfs does
hio has quit [Quit: Connection closed for inactivity]
<tobiasBora>
clever: problem of l2arc is that it's restarted at every reboot. So it can't help for faster boot.
<clever>
tobiasBora: the main restriction, is that the L2ARC doesnt persist between reboots
<clever>
yeah
<simpson>
clever: Interesting.
<clever>
my desktop fits entirely on nvme, so it boots damn fast
<clever>
simpson: basically, zfs has the ARC, which will cache both recently used things, and frequently used things
<clever>
simpson: and based on the hit% of both classes, it will adjust how much ram it allocates to both types
<tobiasBora>
clever: and also it means that my /nix will be present twice, on ssd and on hdd, while I'd like to save space (every few Gb saved is a good thing ^^)
<clever>
so it can cache things that are used a lot, but not very often (like an hourly cron job)
<xorax>
clever: if you don't mind answering one more question, how come when i run nix-env -qa nixos.nodePackages.node2nix it says "... matches no derivations"?
<clever>
xorax: you need a -A or -Q in there somewhere i think
<tobiasBora>
simpson: what would be your trick to connect them together?
<clever>
xorax: one searches by name, the other searches by attrpath
<Shados>
I ran with an L2ARC on my desktop for a long time, but honestly the observed hit rate was tiny. It wasn't worth the extra metadata (RAM space that could be used for L1ARC!)
<simpson>
tobiasBora: Oh, honestly I wouldn't bother; I'd choose one drive or the other, and make my peace with the disadvantages.
<clever>
Shados: ive been experimenting with grafana and zfs metrics lately to see what does what
<tobiasBora>
simpson: so it means forget about my SDD :(
<xorax>
ok hmm -qaA worked. I'll read the docs some more...
<xorax>
thanks for you help :)
<Shados>
clever: Let me know if you make any interesting observations
<clever>
Shados: the main thing i'm looking at right now is the rrqm/s in `iostat -x 30`
<clever>
Shados: if the kernel is merging several read requests together, then zfs isnt detecting the merges itself
<clever>
Shados: `zpool iostat -r 30` then shows how many reads, of what type, and size, every 30 seconds