MagneticDuck has quit [(Ping timeout: 240 seconds)]
MagneticDuck has joined #nixos
mithsv has quit [(Ping timeout: 250 seconds)]
timokau has joined #nixos
markus1199 has quit [(Ping timeout: 250 seconds)]
Wizek_ has quit [(Read error: Connection reset by peer)]
Wizek_ has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
jsgrant has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
jsgrant has joined #nixos
Guest96593 has quit [(Ping timeout: 250 seconds)]
fragamus has joined #nixos
python476 has quit [(Ping timeout: 250 seconds)]
asuryawanshi has quit [(Ping timeout: 268 seconds)]
jb55 has quit [(Ping timeout: 248 seconds)]
bts- has joined #nixos
tanonym has quit [(Quit: Leaving)]
ylwghst has joined #nixos
bts- has quit [(Ping timeout: 248 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
ylwghst has joined #nixos
matthewbauer has quit [(Ping timeout: 250 seconds)]
mahalel_ has quit [(Quit: Leaving.)]
jgertm has quit [(Ping timeout: 250 seconds)]
nslqqq has quit [(Ping timeout: 240 seconds)]
ChongLi_ has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
ChongLi has quit [(Read error: Connection reset by peer)]
ylwghst has joined #nixos
Wizek_ has quit [(Ping timeout: 268 seconds)]
universalpackage has joined #nixos
nslqqq has joined #nixos
python476 has joined #nixos
voice_ftp has quit [(Quit: Leaving)]
bts- has joined #nixos
bts- has quit [(Ping timeout: 250 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
ylwghst has joined #nixos
sigmundv has quit [(Ping timeout: 240 seconds)]
jsgrant_ has joined #nixos
matthewbauer has joined #nixos
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
ChongLi has joined #nixos
universalpackage has quit [(Read error: Connection reset by peer)]
universalpackage has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ChongLi_ has quit [(Read error: Connection reset by peer)]
<matthewbauer>
anyone know if we are getting an 'install' command in Nix 1.12?
sconybeare has joined #nixos
ylwghst has quit [(Ping timeout: 268 seconds)]
<sconybeare>
question: I spun up an EC2 instance using one of the AMIs on nixos.org/nixos/download.html, and I can't use nix-env commands as a non-root user. Specifically, when I try running a the command "nix-env -i vim", I get the error "error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied". Can anyone help?
bts- has joined #nixos
<clever>
sconybeare: is nix-daemon running as root and NIX_REMOTE set to daemon?
anton__ has quit [(Ping timeout: 240 seconds)]
mahalel_ has joined #nixos
<sconybeare>
clever: The daemon isn't running as far as I can tell, and environment variable isn't set. How can I change this?
bts- has quit [(Ping timeout: 268 seconds)]
anton__ has joined #nixos
sigmundv has joined #nixos
acarrico has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
<clever>
sconybeare: "sudo systemctl status nix-daemon"
dejanr has quit [(Ping timeout: 250 seconds)]
Supersonic112 has quit [(Disconnected by services)]
dejanr has joined #nixos
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<sconybeare>
clever: Thanks, that worked. Any idea why I didn't need to do any of that on my laptop?
universalpackage has quit [(Read error: Connection reset by peer)]
universalpackage has joined #nixos
lambdamu_ has joined #nixos
<dj_goku>
so I checked out nixpkgs and trying to update a dep and build/test it. What is the easiest way to build and test my changes?
lambdamu has quit [(Ping timeout: 248 seconds)]
<clever>
sconybeare: not sure, but those AMI's are mainly meant to be used with nixops
<clever>
dj_goku: nix-build -A hello, in the root of the nixpkgs checkout
FreakingOut1987 has joined #nixos
Isorkin_ has quit [(Read error: Connection reset by peer)]
Isorkin has joined #nixos
<dj_goku>
clever: hmm what if I want to pass an override?
Fare has quit [(Ping timeout: 258 seconds)]
<clever>
dj_goku: either edit it in the checked out copy, add it in the config.nix for your user, or make a config.nix in the current directory and nix-build -A hello --arg config 'import ./config.nix'
<dj_goku>
hmm
MP2E has quit [(Remote host closed the connection)]
<dj_goku>
clever: ahh sweet!
mbrgm has quit [(Ping timeout: 258 seconds)]
<dj_goku>
clever: thanks!
<sconybeare>
clever: I figured it out, the problem was that I was changing to the user without passing the --login command, which meant all the environment variables were wrong. This was also the cause of NIX_REMOTE not being set.
universalpackage has quit [(Read error: Connection reset by peer)]
thc202 has quit [(Ping timeout: 240 seconds)]
universalpackage has joined #nixos
<clever>
sconybeare: ahh, that would explain it
<clever>
sconybeare: i always use "sudo -u USER -i" to deal with that
fragamus has joined #nixos
mbrgm has joined #nixos
bts- has joined #nixos
matthewbauer has joined #nixos
pxc has joined #nixos
universalpackage has quit [(Ping timeout: 240 seconds)]
bts- has quit [(Ping timeout: 260 seconds)]
pxc has quit [(Ping timeout: 268 seconds)]
sconybeare has quit [(Remote host closed the connection)]
<hedning[m]>
wrapped means that the application is started from a bash wrapper script setting stuff like `$LD_LIBRARY_PATH` and `$PATH`, unwrapped then refers to the plain binaries
python476 has quit [(Ping timeout: 240 seconds)]
<hedning[m]>
so eg. `nixpkgs.firefox.unwrapped` is just a reference to the unwrapped firefox derivation I think.
<hedning[m]>
neonfuz: if that makes sense?
<vaibhavsagar>
I'm trying to do a nix-copy-closure and getting an error that something 'lacks a signature'
<vaibhavsagar>
can I work around this?
asuryawanshi has joined #nixos
alex404 has joined #nixos
<vaibhavsagar>
I even tried nix-copy-closure --sign and it made no difference
<hedning[m]>
vaibhavsagar: are you using nix1.12 on nixos, think that can cause some problems (at least if installed with nix-env)?
<vaibhavsagar>
hmm, I'm using it on my remote server that I'm copying from
<vaibhavsagar>
do you think that is the issue?
<hedning[m]>
might be, but not really sure, haven't used it much myself
<vaibhavsagar>
it's not installed with nix-env, I did 'pkgs.nixUnstable' in my configuration.nix
<hedning[m]>
so `nix.package`? (which I think should, work but haven't tested it myself)
<vaibhavsagar>
yep
<hedning[m]>
huh, dunno then
<vaibhavsagar>
I'm trying to troubleshoot why two derivations differ
bts- has joined #nixos
<vaibhavsagar>
which is why I'm asking all these questions
asuryawanshi has quit [(Ping timeout: 260 seconds)]
bts- has quit [(Ping timeout: 268 seconds)]
<hedning[m]>
vaibhavsagar: it might be worth checking if `nix-store --export $(nix-store -q --requisites <path>) > blob.nar`
<hedning[m]>
and then `nix-store --import < blob.nar` on the other machine
<FreakingOut1987>
does anyone know what nixos-rebuild boot -I nixpkgs=/path would do?
<FreakingOut1987>
i'm trying to find a man page for the -I flag
matthewbauer has quit [(Remote host closed the connection)]
<FreakingOut1987>
I think it specifies my own nixpkgs but my network is still going
<hedning[m]>
FreakingOut1987: it will build the whole system using the `/path` as a channel
matthewbauer has joined #nixos
<FreakingOut1987>
hedning[m], should it be slower than just using nixos.org as the channel?
<FreakingOut1987>
or the default channel*
<hedning[m]>
so if you want to make some changes to a module or package you can easily test out the resulting system
<FreakingOut1987>
ah nvm
<FreakingOut1987>
I think there was some caching going or something
<FreakingOut1987>
okay thanks
<hedning[m]>
FreakingOut1987: You shold probably checkout a channel branch in the nixpkgs repo before
FreakingOut1987 has quit [(Read error: Connection reset by peer)]
<vaibhavsagar>
hedning[m]: fails on a different file with the same error about lacking a signature
<hedning[m]>
vaibhavsagar: right, then I'm guessing getting matching keys on both machines are necessary (not sure how that's done)
pie_ has joined #nixos
<vaibhavsagar>
I just copied the key over
<vaibhavsagar>
so both machines are using the same key
<hedning[m]>
huh, that's really weird
<vaibhavsagar>
actually, my setup is a little strange
<vaibhavsagar>
okay, I copied the same key into /etc/nix/signing-key.sec on both machines
<vaibhavsagar>
I'm going to chalk this up to Nix 1.12 weirdness
<hedning[m]>
`nix copy` has a `--no-check-sigs` option, might work ^^
bgamari has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] djgoku opened pull request #31380: Bump erlang version to 20.1 for erlangR20. (master...bump-erlang-to-20.1) https://git.io/vFRhf
NixOS_GitHub has left #nixos []
bgamari has joined #nixos
bts- has joined #nixos
bts- has quit [(Ping timeout: 268 seconds)]
Wizek has quit [(Quit: Connection closed for inactivity)]
FreakingOut1987 has quit [(Remote host closed the connection)]
jsgrant has quit [(Quit: Leaving)]
bts- has joined #nixos
moet has joined #nixos
FreakingOut1987 has joined #nixos
<FreakingOut1987>
can anyone test out elementary-icon-theme to see if it's broken?
<FreakingOut1987>
I can install it and use it fine with nix-env but it does not work with the most recent Github i think
bts- has quit [(Ping timeout: 268 seconds)]
joehh has joined #nixos
<moet>
hey nixos, i can see redshift.service running if i do `systemctl status user@1000.service`, but i can't control the redshift.service (it just says Unit redshift.service could not be found.
<moet>
any idea how to control a service under user service?
<dj_goku>
is there a page that describes nixpkgs and the flow they take until released to a channel?
bts- has joined #nixos
<moet>
ok, i tracked it down on the archlinux forum.. you have to pass --user to systemctl
<dj_goku>
matthewbauer: hmm. so it could take a few days for new packages to hit stable? Not that I am in a rush. I mean the idea is we can build it for now and use that.
<gfixler>
I asked on Twitter, but I'll ask again here... What makes Nix a better option than containers?
<gfixler>
I'm very new to both, and only currently studying nix
asuryawanshi has quit [(Ping timeout: 250 seconds)]
<srhb>
gfixler: They aren't really opposed. NixOS containers are pretty awesome, for instace.
zzamboni has joined #nixos
<gfixler>
srhb: I've realized I don't grok the difference between shoving dependencies into a container and using that and spinning up a nix-env something-or-other
<srhb>
I'd much rather compare Nix expressions to eg. Dockerfiles (for producing containers.) Then the answer is that one is awesome and declarative, the other an utter mess. :-P
<gfixler>
srhb: haha
<gfixler>
that was something I presumed - that setting up the container in the first place is probably just as hard as getting anything to work on my pc
<srhb>
Not necessarily. But I think there's a huge difference in setting up eg. a nix shell environment (making the expression) and starting a container (consuming someone else's work)
<srhb>
And they are not really comparable.
<gfixler>
srhb: I meant making one's own containers and using those
<srhb>
Ah, OK. Yes, that's comparable.
<clever>
though if your docker file says "fetch app X and also apt-get install mysql-server"
<gfixler>
I also presume you can't really go as far, system-wise with containers. Is there anything akin to a dockerOS?
<srhb>
So, the overhead in transforming that gist into a Dockerfile is virtually nonexistent.
<clever>
you may get a diferent mysql server tomorrow, and then your app breaks
a6a3uh has quit [(Quit: Bye)]
<srhb>
But you get nowhere near the same guarantees
<gfixler>
clever: good point
<srhb>
And you can't easily go back once the packages are upgraded upstream
<clever>
nix specifies the exact version of mysql in the expressions, and wont upgrade things without warning
ma27 has quit [(Ping timeout: 240 seconds)]
<gfixler>
clever: same issue I'm having atm with some things not using either system
<srhb>
As long as you keep that exact image, you're good. Any change might change _everything_ eternally.
<srhb>
(Because other things changed upstream in the meantime)
<gfixler>
I also think the nix dag makes experimenting and getting things to work right would be easier
<srhb>
This issue is also related to composability.
<gfixler>
I don't know, but feel if a docker image gets messy, I have to blow it away and start over
<gfixler>
but with nix I just change the declaration and rebuild
<clever>
yeah
<clever>
docker is just a way to contain the imperative mess and nuke it easily to start over
<gfixler>
i.e. containers are just like small versions of my pc
<clever>
nix lacks the imperative mess
<gfixler>
yeah
<gfixler>
I don't really know what goes into making a container
<gfixler>
do you just manually do everything, then save it as an image?
<clever>
the container is basically just a second root fs image, and some code to trick the "guest" into thinking it has the entire system to itself
<srhb>
That's pretty apt, yeah :)
Itkovian has joined #nixos
<clever>
docker would typicaly just download a pre-made ubuntu image, where you then apt-get whatever, and can then convert back into an image (or a layer)
<gfixler>
clever: but aren't you running that ubuntu container on something, like another ubuntu?
<clever>
but, you can also just skip that initial ubuntu, and make an image that just has your app, and nothing else
<vaibhavsagar>
then try `nix-shell --pure -p ghc --run 'echo $PATH'`
<gfixler>
srhb: well, I'm starting pill 7, making a real derivation, so it'll be more convenient on my main box
<srhb>
gfixler: Yeah :)
<gfixler>
so how is path restored if I'm not using nix for a bit, or is that not an option?
<vaibhavsagar>
what do you mean
<gfixler>
I may mean nothing sensible yet :)
<gfixler>
nix modifies my env vars
<srhb>
gfixler: You shut down the nix shell, your env comes back
<gfixler>
srhb: like magic?
<vaibhavsagar>
save and restore
<srhb>
gfixler: Like it was never gone in the original shell
<srhb>
gfixler: BEcause it wasn't.
<vaibhavsagar>
oh, oops, srhb is right
<gfixler>
man, my old Windows brain is messing me up
<srhb>
gfixler: Think closures, that should help
<srhb>
gfixler: Once you exit the scope, you get back the old scope
<gfixler>
this is like living inside of a function where PATH is bound and shadowing the old one
<srhb>
It was just shadowed
<srhb>
Exactly like that.
<gfixler>
beautiful
bts- has quit [(Ping timeout: 250 seconds)]
<gfixler>
so used to decades of setting path in a gui on Windows
Mateon3 is now known as Mateon1
<srhb>
Windows is insane, in my professional opinion. :-P
<gfixler>
even though I've been on linux at home for 11 years, I still have wrong thinking sometimes
<gfixler>
windows brain damage
<gfixler>
alright, I use i3 on Ubuntu, and dmenu just finds things for me and I just alt+d and type what I want
<vaibhavsagar>
I believe even windows would let you do something similar
<gfixler>
I'm wondering what happens to dmenu
<gfixler>
vaibhavsagar: sure, but not easily at the gui level
<srhb>
gfixler: Depends what environment it's running in
<vaibhavsagar>
gfixler, this is the difference between using `--pure` and not using it
<srhb>
gfixler: Or in other words, not everything in /nix/store will be in its PATH. You may want to explicitly build a path for it, or have it user your user profile, or (...)
<gfixler>
srhb: I'm guessing that's more system level, like a boot through grub, and whatever I've specified exists, and dmenu finds it
<srhb>
gfixler: Something like that.
<vaibhavsagar>
if you don't use `--pure`, your old PATH is passed in
<srhb>
Right :)
<srhb>
My dmenu lives in the scope of my user profile, so to speakj
<srhb>
So it can find anything that is installed system-wide, and anything that is installed in my user profile (and nothing else)
<gfixler>
srhb: right - was thinking "What if I spool up a shell with other things in it?"
<gfixler>
but that doesn't make sense - dmenu is outside that
zraexy has quit [(Ping timeout: 248 seconds)]
<gfixler>
I don't use dmenu to launch anything in my shell, e.g.
<srhb>
gfixler: That makes just fine sense, and yes, dmenu will not see that.
<gfixler>
I'm in the industry, and didn't know about it until someone in the nix world mentioned it
bts- has joined #nixos
<vaibhavsagar>
my current line of argument when people go "why not use Docker" is that you *could* use Docker, but everything you would have to do to make Docker work reproducibly and repeatable would essentially turn it into a shitty NixOS clone with worse UX
<vaibhavsagar>
but everything Nix does is hashing, symlinks, and env variables
<gfixler>
that's a pretty good synopsis
damke_ has joined #nixos
<gfixler>
vaibhavsagar: warms my heart to hear "everything is 3 things"
<vaibhavsagar>
there's no magic here, just difficult engineering work and lots of Perl/C++
<vaibhavsagar>
yeah, it helped me make sense of it
<vaibhavsagar>
might be worth putting in a blog post at some stage
<gfixler>
git: everything is hashes, text files, and reusing patches
<vaibhavsagar>
what do you mean, reusing patches?
<vaibhavsagar>
git doesn't do that
<gfixler>
vaibhavsagar: yeah - I plan to proseletyze a bit, if I get any good (but not evangelize, if there's a differenec)
<vaibhavsagar>
git doesn't know about patches
<adisbladis>
vaibhavsagar: I keep telling people that docker is not a development tool
<gfixler>
vaibhavsagar: it generates them on the fly
damke has quit [(Ping timeout: 240 seconds)]
<gfixler>
vaibhavsagar: I'm using the term loosely
<vaibhavsagar>
I think I see what you mean
<gfixler>
vaibhavsagar: okay, not really patches - it does 3-way hash diffs, then standard merges where things are different
<gfixler>
but I just refer to that as creating patches and replaying them elsewhere
bts- has quit [(Ping timeout: 248 seconds)]
<vaibhavsagar>
sure, but that's orthogonal to the data model
<gfixler>
vaibhavsagar: yeah, my thinking was slipping into the use layer
<vaibhavsagar>
I think git could conceivably have a very different approach to merging without changing the data storage
<gfixler>
vaibhavsagar: it has many merge tactics, and you can insert your own
<vaibhavsagar>
yup, I have heard of those
<vaibhavsagar>
I'd say I'm pretty familiar with the storage layer but not so much the use layer
<gfixler>
vaibhavsagar: I'm planning to do more small videos of the use layer
<vaibhavsagar>
but nix's storage layer works very similarly
<vaibhavsagar>
sounds good!
<gfixler>
vaibhavsagar: right, I didn't really have to learn the storage layer - I've lived it
<gfixler>
vaibhavsagar: need to go through your git/haskell video at some point
<hyper_ch>
sphalerite: when I boot again the iso, I can zimport just fine
<lars__>
oh, but LC_ALL shows empty
<sphalerite>
lars__: I think that's normal. Have you set a locale using i18n.defaultLocale?
ixxie has joined #nixos
<sphalerite>
If not, try setting one, then rebuilding and rebooting (the reboot part isn't strictly necessary I think but it's simpler than working out what things to restart)
bennofs has quit [(Read error: Connection reset by peer)]
<sphalerite>
And see if it still complains
Fare has quit [(Ping timeout: 260 seconds)]
hotfuzz_ has joined #nixos
<hyper_ch>
sphalerite: it's weird... zfs is loaded otherwise it wouldn't be able to import the pool... but why can't it be imported... that's a bit strange
<sphalerite>
hyper_ch: hm, OK, what does lsmod | grep virtio say in the iso?
<lars__>
i have set defaultLocale to "en_US.UTF-8"
<hyper_ch>
sphalerite: let me boot to it
<lars__>
i want my computer's language to be english, but keyboard layout and all formatting to be my local finnish
rogue_koder has quit [(Quit: Konversation terminated!)]
<sphalerite>
What I'd really like, ergonomics-wise, is a laptop where I can look straight ahead rather than down while using it
<sphalerite>
Without lifting my arms up
kuznero has joined #nixos
<kuznero>
Hi All!
<adisbladis>
I still think trackball is better than a normal mouse though. And if I went with a split keyboard that would probably be coupled with a trackball.
<adisbladis>
sphalerite: I remember IBM/Lenovo making a prototype one a long time ago.
<lars__>
etu: oh, they ship those now?
bts- has joined #nixos
Arcaelyx has quit [(Ping timeout: 240 seconds)]
<etu>
lars__: I have my first one at home, I've ordered two (home and work use). So I'm still waiting for my second one. And I was part of the first 2000 backers I think.
<etu>
lars__: So, yeah, they have shipped things. But production is *slow*.
<sphalerite>
Aaaaaaaarrrrggghhhh. Was having WiFi difficulties all of yesterday and the day before. Tried fiddling with the kernel config, disabling Bluetooth, all manner of things... And just now I realised it's because I was running two copies of wpa_supplicant on the same interface.
asuryawanshi has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
<lars__>
etu: in what ways (besides the custom keycaps) is it better compared to the erdodox you've been using?
asuryawanshi has joined #nixos
bts- has quit [(Ping timeout: 248 seconds)]
<etu>
lars__: The keycaps are amazing at steering fingers to use the "right" finger for the right column. Which is something I'm terrible at. I also like how compact it is that you can put the parts on stands if you want. You can also put halves together and have a really short cable so my desk is less messy. Also the built in wrist rest feels amazing :)
<lars__>
i suppose i would be better off if i started with an ergodox?
<kuznero>
Is pinning nixpkgs described anywhere in the manuals?
<lars__>
since i have never had an ergonomic keyboard
<adisbladis>
kuznero: I don't think it is but it's easy enough to accomplish.
MP2E has joined #nixos
<etu>
lars__: They (ergodox) are cheaper and easier to get. But yeah, it's a hard question. I've been very happy with my doxes for the past year.
<etu>
lars__: But this topic doesn't belong too much in here even though I like the topic ;)
<kuznero>
adisbladis: ah, this way you fetch specific tarball and always use it. Got it! thanks!
<adisbladis>
kuznero: Yes :) Though I think the approach garbas chose is generally better :)
<kuznero>
adisbladis: is it explained anywhere? Why do you think it is better?
<adisbladis>
kuznero: Because you'll use the nix cache for the pinned nixpkgs tree
<lars__>
sphalerite: i dont seem to have finnsh language pack installed
<hyper_ch>
can't find shell on fail boot option... I've seen it before but now I can't find the proper name
<adisbladis>
kuznero: The fetchTarball approach will go and get a new one every 5 minutes or so
<kuznero>
adisbladis: do you have an example for how garbas is doing it?
<hyper_ch>
sphalerite: can't find shell on fail boot option... I've seen it before but now I can't find the proper name
<adisbladis>
kuznero: The link you sent :P
asuryawanshi has quit [(Read error: Connection reset by peer)]
asuryawa_ has joined #nixos
<kuznero>
ah :)
<kuznero>
adisbladis: thanks!
LangeOortjes has joined #nixos
civodul has joined #nixos
<hyper_ch>
sphalerite: ok, weird... I change the virt-manager settings from disk bus virti to sata and now it jus works perfectly
<hyper_ch>
I'll just go on with that for the moment until I figure out what's missing for virtio :)
hellrazo1 has quit [(Ping timeout: 240 seconds)]
hellrazo1 has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<tommyangelo[m]>
I'm trying to add staytus (https://github.com/adamcooke/staytus) to nixpkgs. Can anyone give me a good example of a similar ruby application in nixpkgs that I can have a look at to build the nix file?
supercynic is now known as ertes-w
fragamus has joined #nixos
bennofs has joined #nixos
Wizek has joined #nixos
Wizek_ has joined #nixos
bts- has joined #nixos
lars__ has quit [(Ping timeout: 260 seconds)]
hellrazo1 has quit [(Ping timeout: 268 seconds)]
hellrazo1 has joined #nixos
bts- has quit [(Ping timeout: 240 seconds)]
thc202 has joined #nixos
Tucky has joined #nixos
magnetophon has joined #nixos
woffs has quit [(Quit: Gateway shutdown)]
<magnetophon>
Is anyone using an ios device with nixos? It used to work, but now I get: "No device found, is it connected?"
<magnetophon>
when I try to mount it
a6a3uh has quit [(Quit: Bye)]
woffs has joined #nixos
<magnetophon>
dmesg does see the device
<sphalerite>
hyper_ch: alright. Also, you may not want to use zfs within the VM as well as around it. I'm not sure if it can actually cause any problems, but I think it might make more sense to have zvols which you pass through to the VM and just put ext4 filesystems on them
<sphalerite>
I'm not sure though.
<hyper_ch>
I'll ask in #zfsonline
<sphalerite>
hyper_ch: the option should be in the nixos manual, I think it's shell_on_fail
<sphalerite>
hyper_ch: it's not a nixos option, it's a parameter passed to the kernel and effected by the init script
<sphalerite>
Search the manual for it
c0bw3b has joined #nixos
<hyper_ch>
as said, changing from virtio to sata helped... so I need to get business up and running agian first
<hyper_ch>
spent like $3k yesterday on new server, screens, usb stick, external drives, switches... after the breakin
<sphalerite>
Ouch
<hyper_ch>
they even took toilet paper and Tempo tissues
<hyper_ch>
they left however the expensive Yealink T48Gs and expensive scanner
<sphalerite>
Wtf
<vaibhavsagar>
ouch, sorry to hear that hyper_ch
<hyper_ch>
spent half my day yesterday with the police
cheng has joined #nixos
<hyper_ch>
and calling courts and state attorneys to get extensions on my deadlines
<sphalerite>
I'm just picturing a thief standing there looking back and forth between a pack of toilet paper and a scanner, thinking "hmm... What do I take... Think I'll go for the tp"
<hyper_ch>
vaibhavsagar: the money isn't that bad
<hyper_ch>
vaibhavsagar: but until the system is all up and running again... that's annoying
bts- has quit [(Ping timeout: 268 seconds)]
<hyper_ch>
sphalerite: well, it's probably easier to sell toilet paper than a scanner....
<makefu>
is there a writeup on how to set up update scripts in nixpkgs? i have a couple of packages in nixpkgs which i would like to have updated automatically. However i cannot really find good examples or documentation on how to set this up and test it
<hyper_ch>
they even took my Alexa!!!
<adisbladis>
hyper_ch: Maybe they really needed toilet paper?
<hyper_ch>
well, the office didn't get TPed ;)
<vaibhavsagar>
makefu: can you create a systemd service that does `nix-env -u <pkg>`?
<adisbladis>
hyper_ch: At least that's something..
ssmike has joined #nixos
<hyper_ch>
they broke in between 1am and 1:30am
<makefu>
vaibhavsagar: actually i am looking for a script which updates the nixpkgs derivation with the upstream version and sha256sum
<hyper_ch>
but well, it's a good opportunity to get away from debian with proxmox and use root encrypted zfs nixos
<makefu>
adisbladis: this is what i saw, but how can i actually test them?
<sphalerite>
pmeunier: I think it's something that isn't usually done, because it makes the build logs all weird and stuff
<pmeunier>
sphalerite: not if one can test whether the output is a tty.
<sphalerite>
pmeunier: but I seem to recall explicitly passing -fdiagnostics=color or something like that to GCC to get it to colour the output
ma27 has joined #nixos
<sphalerite>
pmeunier: the output is never a tty
<pmeunier>
good idea, that makes it part of the derivation.
<pmeunier>
sure, because of build logs, right?
<sphalerite>
It always goes to nix, which sticks a log of it in /nix/var/log/... and additionally forwards it to the process that requested the build if it wants
<sphalerite>
Yep
<makefu>
vaibhavsagar: this does not look to bad, however i would love to have it integrated in nixpkgs to avoid any manual work :) i thought this already happens for some derivation (not on a global scale) and i wanted to check what is the "right" way to do it
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vF0ca
<NixOS_GitHub>
nixpkgs/master 18aada9 Vladimír Čunát: virtualbox: fixup build with glibc-2.26...
NixOS_GitHub has left #nixos []
<sphalerite>
Of course that's not a very generic solution
<sphalerite>
pmeunier: if you need colours though maybe what you actually want is to use nix-shell
<pmeunier>
vaibhavsagar: sure, I'll update the manual
<vaibhavsagar>
oops, brain fart
<kuznero>
adisbladis: do I understand correctly that it should also be possible to pin nixpkgs in configuration.nix ?
<vaibhavsagar>
that is indeed an interesting project
mk-fg has joined #nixos
mk-fg has quit [(Changing host)]
mk-fg has joined #nixos
<makefu>
vaibhavsagar: with manual work i mean creating a PR for each package
<vaibhavsagar>
ah, no automated alternative exists AFAIK
<makefu>
that is too bad :(
<vaibhavsagar>
it would be useful to me at $WORK too
<pmeunier>
I use it to deploy a project with NixOps. So far it's been an extremely profitable time investment, I've saved more than 10 times the coding time in compile time (I don't know how clear this was)
bts- has quit [(Ping timeout: 260 seconds)]
<pmeunier>
Since Cargo is so nice to use with its colourful output, I'd like the UX to be at least that, but it's not very easy.
<vaibhavsagar>
is there a nixos derivation for spinnaker anywhere?
<sphalerite>
pmeunier: right, I'm guessing cargo has a flag for colours too but I don't know its name, and I think you usually wouldn't want to use it in a nix build
<pmeunier>
sphalerite: just found the name ;-) --color always
<pmeunier>
also, my tool is not using cargo.
<sphalerite>
I guess since cargo doesn't really do the whole incremental thing very well, it makes sense to always use nix to build the stuff though
<sphalerite>
Oh right
<sphalerite>
Wait so you sort-of reimplemented cargo but with nix?
<pmeunier>
Part of cargo, yes. I still need cargo to produce the lock files
<sphalerite>
Nice!
<pmeunier>
but then I have a tool that converts lock files to nix files
<vaibhavsagar>
sphalerite: nix-build doesn't do incremental builds either AFAIK
<pmeunier>
I've tested it on some of the most widely used crates on crates.io, they build fine now.
<pmeunier>
about incremental: right, there is no way for nix-rust to do it, but that's not really expected
<pmeunier>
my tool is mostly useful as a deployment tool.
<vaibhavsagar>
also, isn't nix-rust the name of a completely unrelated project?
lunaris has joined #nixos
<pmeunier>
that's right.
ssmike has quit [(Ping timeout: 240 seconds)]
<lunaris>
Hi all -- if I want to use stringAfter to run an activationScript after packages have been installed (e.g. to use git), what's the target? [ "users" ] doesn't seem to be doing it for me.
<pmeunier>
I'm probably going to change the name to something like carnix (if you have better naming ideas you're welcome to suggest)
<lunaris>
(If this is even possible)
<sphalerite>
vaibhavsagar: it does, just not in a very granular way. But my point was that that means that cargo doesn't even have an advantage over nix for this :D
<vaibhavsagar>
fair enough, I don't know anything about how cargo works
<pmeunier>
sphalerite: I believe vaibhavsagar is talking about CARGO_INCREMENTAL=1
<pmeunier>
which I don't see how Nix could provide
a6a3uh has joined #nixos
bts- has joined #nixos
<pmeunier>
that option is really helpful, the projects I work on routinely take 5 minutes to compile in debug mode, less than 1 minute with CARGO_INCREMENTAL=1
<adisbladis>
kuznero: I guess that works. I have a local git checkout of nixpkgs instead.
<sphalerite>
Idk I was working on rocket a while back and cargo_incremental didn't really help :/
<sphalerite>
And still, a one-minute build is looooong if you're trying to iterate fast
<kuznero>
adisbladis: and I don't need to `inherit pkgs` anywhere where I have `with pkgs` ?
<pmeunier>
might be because rocket is doing tons of code generation, and rustc cannot really make assumptions on that.
<adisbladis>
kuznero: Hmmm.. Actually I have a feeling that would not actually work as intended..
pxc has joined #nixos
<pmeunier>
yes, 1 minute is long. Still much better than 5 though.
<manveru>
i'd go insane with 1 minute iterations :P
<pmeunier>
manveru: me too. Every iteration of the Rust compiler makes me happy, because they usually come with a 10% speed increase.
<adisbladis>
kuznero: And my nixpkgs checkout is in /etc/nixos/nixpkgs
jtojnar has joined #nixos
bts- has quit [(Ping timeout: 258 seconds)]
<kuznero>
adisbladis: I see. Thanks!
Wizek_ has quit [(Ping timeout: 248 seconds)]
<adisbladis>
kuznero: And /etc/nixos is a git repo that has nixpkgs as a submodule :)
<kuznero>
adisbladis: it starts getting more complex :)
elasticdog has quit [(Ping timeout: 248 seconds)]
<kuznero>
I am wondering if I should wait for nix 1.12 instead :D
pxc has quit [(Ping timeout: 240 seconds)]
snikkers has joined #nixos
michaelpj has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vF0lG
<NixOS_GitHub>
nixpkgs/master c2b9ab5 Vladimír Čunát: nfs-utils: fixup includes with glibc-2.26
NixOS_GitHub has left #nixos []
jushur has joined #nixos
lunaris has quit [(Quit: Page closed)]
leat has quit [(Quit: WeeChat 1.9.1)]
ThatDocsLady_ has quit [(Ping timeout: 240 seconds)]
mk-fg has quit [(Ping timeout: 240 seconds)]
bts- has joined #nixos
<magnetophon>
fpletz: When I do "ideviceinfo -d" I get "ERROR: Could not connect to lockdownd, error code -5" which seems to be connected to the patch you added to libimobiledevice. Do you have an idea how to fix that?
<kuznero>
When I start nixos without X in VirtualBox I get a pretty small screen resolution. I can tweak i18n.consoleFont to something like sun12x22, that solved part of the issue, but how can I make it bigger?
<kuznero>
in X it is xrandr for changing resolution, but in raw tty what should I do?
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
orivej_ has quit [(Ping timeout: 268 seconds)]
<pierron>
sphalerite: super.callPackage captures "self" and use that to provide inputs to packages.
<pierron>
sphalerite: so the rule stands, callPackage is a function, so it must be coming out of "super".
tgunb has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
<sphalerite>
pierron: ooooh, I see. Thanks!
Cheng has quit [(Quit: Leaving)]
zzamboni has joined #nixos
cmacrae has joined #nixos
<kuznero>
How can I set `GRUB_GFXPAYLOAD_LINUX=keep` in grun in nix configuration?
<kuznero>
s/grun/grub/
<sphalerite>
kuznero: you don't need to wait, you can start using 1.12pre now!
LysergicDreams has joined #nixos
<kuznero>
sphalerite: I will start experimenting with that soon I feel
<cmacrae>
Yo LnL o/ Having some trouble with nix-darwin on a completely new system. I bootstrap Nix, that's all working fine. Then I try to bootstrap nix-darwin with my config. It builds all the paths, but then finally fails with 'Error: attempt to write a readonly database'. When I look, I can see none of the paths have been linked to /run/current-system - so all of my config and programs are missing. Any ideas?
<sphalerite>
kuznero: I think extraPerEntryConfig
zzamboni has quit [(Ping timeout: 260 seconds)]
<LnL>
cmacrae: :(
roberth has joined #nixos
<cmacrae>
Yeah :(
<LnL>
cmacrae: ah wait, do you have the accessibility stuff enabled?
<kuznero>
sphalerite: thanks, will try to see how I can get it there
<cmacrae>
LnL: Yeah, for khd/kwm to work
zzamboni has joined #nixos
<LnL>
that's causing the problem
<LnL>
I have not figured out yet why
ylwghst has quit [(Ping timeout: 250 seconds)]
<LnL>
it works on one of my machines but not on the other
<cmacrae>
Ah, weird! Alright, I'll comment all that out and try again :)
ssmike has quit [(Remote host closed the connection)]
<cmacrae>
Yaaay
<cmacrae>
It works!
<cmacrae>
Thanks LnL
<sphalerite>
kuznero: actually looking at install-grub.pl, it looks like it already has "set gfxpayload=keep"
<cmacrae>
I can live without that suff for now :)
<LnL>
yeah it's annoying
ssmike has joined #nixos
<kuznero>
sphalerite: :( then correcting GRUB_GFXMODE with boot.loader.grub.gfxmodeBios ? Not sure if that will help though...
cmacrae has quit [(Remote host closed the connection)]
zzamboni has quit [(Remote host closed the connection)]
<kuznero>
sphalerite: nope, that only affect the grub screen itself and then when switching to tty it falls back to old resolution
Cheng has joined #nixos
<kuznero>
sphalerite: in dmesg I can see "Console: switching to colour frame buffer device 100x37" I guess that 100x37 frame buffer needs to be changed...
ertes-w has quit [(Read error: Connection reset by peer)]
teej has quit [(Quit: Connection closed for inactivity)]
ertes-w has joined #nixos
<Cheng>
How can I get firefox-nightly-bin working with sway? I am getting "cannot open display: :1". I checked the sway logs, and Xwayland was started successfully.
simukis has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ertes-w has quit [(Client Quit)]
ssmike has joined #nixos
<kuznero>
sphalerite: ok, what helped in the end is this: `boot.kernelParams = [ "nomodeset" "vga=0x317" ]; :D
<sphalerite>
kuznero: good to know!
periklis has joined #nixos
Ivanych has quit [(Quit: Leaving.)]
bennofs has joined #nixos
zzamboni has joined #nixos
asuryawanshi has joined #nixos
asuryawa_ has quit [(Read error: Connection reset by peer)]
rsynnest has quit [(Quit: Connection closed for inactivity)]
LangeOortjes has quit [(Quit: Konversation terminated!)]
ixxie has joined #nixos
<sphalerite>
fearlessKim: a value which has not been evaluated is stored as a so-called thunk
Cheng has joined #nixos
<FRidh>
Is there any reason we do not use `git-archive --remote` for `fetchgit` ?
<sphalerite>
fearlessKim: when it starts trying to evaluate it, it marks the thunk as being evaluated. If at any stage during its evaluation it reaches one that still needs to be evaluated, that's infinite recursion
Cheng has quit [(Remote host closed the connection)]
Cheng has joined #nixos
<sphalerite>
Err that has been marked as being in the process of evaluation*
Cheng has quit [(Remote host closed the connection)]
Cheng has joined #nixos
<fearlessKim[m]>
very clear thanks
Cheng has quit [(Remote host closed the connection)]
<sphalerite>
Really? My explanation doesn't strike me as very clear :p but glad I could help
Cheng has joined #nixos
proteus-guy has quit [(Ping timeout: 246 seconds)]
<Cheng>
It turns out that I need to do "env -u GDK_BACKEND firefox" for firefox-nightly-bin to work with sway. GDK_BACKEND was set to "wayland".
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
<Profpatsch>
Phew, nix-pills seem to like nix-env a lot.
<Profpatsch>
Not sure if adding yet-another-blog-tutorial would help the situation and be up-to-date in a year or two.
<Profpatsch>
The nix pills are a great start, I think.
c0bw3b has joined #nixos
proteus-guy has joined #nixos
strobelight has joined #nixos
patrl has joined #nixos
<sphalerite>
+1 to improving and maintaining the nix pills rather than writing another tutorial
asuryawa_ has joined #nixos
acarrico has quit [(Ping timeout: 246 seconds)]
<c0bw3b>
The 'cheatsheet' page of the wiki is quite useful too IMHO and doesn't have the same purpose as the pills
patrl has quit [(Client Quit)]
asuryawanshi has quit [(Ping timeout: 268 seconds)]
asuryawa_ has quit [(Ping timeout: 268 seconds)]
<infinisil>
Here is a nix puzzle, because I don't know the solution
<ixxie>
sphalerite, Profpatsch - the way I see it bringing Nix Pills up to date would be a lot of work, and its a Classic, and Classics normally shouldn't be touched imo. I had in mind that on the NixOS wiki we would have a standard matrix of tutorials
bennofs has quit [(Ping timeout: 240 seconds)]
<infinisil>
How do you put the literal string '${X}' (that is, a bash variable surrounded by single quotes), into a doubly quoted nix string?
acarrico has joined #nixos
<infinisil>
'' X='${X}' '' does not work because it thinks X is a nix value
<c0bw3b>
you escape everything?
<infinisil>
'' X='''${X}' '' does not work because ''' is the escape sequence for ''
<c0bw3b>
or use triple quotes maybe
<infinisil>
'' X='''''${X}' '' does not work, it evaluates to "X=''${X}' "
<ixxie>
sphalerite, Profpatsch - something like { 'Getting Started With', 'Daily Use of', 'Configuration of', 'Understanding'} x { 'Nix', 'NixOS', 'NixOps', 'Hydra', 'Nixpkgs'
<ixxie>
}
<c0bw3b>
''' X='${X}' ''' ?
<c0bw3b>
or ''' X="${X}" '''
<infinisil>
triple quote strings aren't a thing
<c0bw3b>
kk
LysergicDreams has quit [(Ping timeout: 240 seconds)]
<Profpatsch>
c0bw3b: There is an escape: '' X=''${X} ''
<Profpatsch>
Just read that in the nix pills. :P
<c0bw3b>
I shall read those entirely too then :p
<Profpatsch>
nixexpr escaping is a bit idiosyncratic escaping, yes.
<infinisil>
The best i can come up with is '' X='' + "'" + ''''${X}' ''
<infinisil>
Which is kinda cheaty
<Profpatsch>
c0bw3b: Well, for nix expression questions it’s good to directly refer to the manual.
<Profpatsch>
Since ${ and '' have special meaning in indented strings, you need a way to quote them. ${ can be escaped by prefixing it with '' (that is, two single quotes), i.e., ''${. '' can be escaped by prefixing it with ', i.e., '''. Finally, linefeed, carriage-return and tab characters can be written as ''\n, ''\r, ''\t.
LysergicDreams has joined #nixos
<Profpatsch>
Or, in very special cases, refer to the lexer file. But that is kind of extreme
bennofs has joined #nixos
<vaibhavsagar>
friends, is there Spinnaker for NixOS?
<vaibhavsagar>
or is it something we'd have to build on top of NixOps + Disnix?
<Cheng>
Profpatsch: The problem now is how do you escape '${ ?
<infinisil>
^^
<makefu>
${"'${"} ?
<c0bw3b>
Profpatsch yes I remember reading that paragraph at least once before
<infinisil>
makefu: Oh nice! But it needs to be '' ${"'\${"} ''
<Cheng>
makefu: seems to be correct
<infinisil>
okay that's a better solution
fendor has joined #nixos
<Cheng>
Seems to me that the escaping rule is flawed. You can't escape '
<infinisil>
you don't need to
<infinisil>
' in '' strings is valid
<Cheng>
c0bw3b's question is one of the cases in which you need to
dywedir has quit [(Remote host closed the connection)]
LysergicDreams has quit [(Quit: leaving)]
reinzelmann has quit [(Quit: Leaving)]
katyucha has quit [(Quit: leaving)]
<Cheng>
Sorry, I meant infinisil's question
<infinisil>
Yeah, it's '${ that can't be escaped properly apparently
<Cheng>
If ' is escapable, we'll have a trivial solution
<infinisil>
Ah I get what you mean now
<infinisil>
Oh btw, '' X=${"'"}''${X}' '' works too
ma27 has joined #nixos
<infinisil>
so, ${"'"} is the poor mans ' escaping when you need it :)
<jophish>
Hi all
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vF0F7
<NixOS_GitHub>
nixpkgs/master 8bc70c8 Yegor Timoshenko: COPYING: there are no more bootstrap binaries in Nixpkgs tree
NixOS_GitHub has left #nixos []
<Cheng>
infinisil: Nice :)
<jophish>
I need to get a new laptop, does anyone have a system they can recommend?
<infinisil>
jophish: Why you asking #nixos for that?
<jophish>
infinisil: well, nixos has to run well on it :)
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
<sphalerite>
jophish: I'm pretty happy with the Dell XPS 15 I have, and I think a number of others here (gchristensen at the very least) have the same one. Don't know if a high-end 15in laptop is what you're looking for though
<sphalerite>
Unrelated, can anyone recommend a console-based browser with JavaScript support? I've been using w3m but I need js occasionally :(
<ixxie>
I have the XPS 13, I am super happy
<jophish>
sphalerite: Links perhaps?
<fearlessKim[m]>
I got a XPS13 9365, had to send it back after 2 days,black screen, lost bios access. Dell support was kinda good though they fetched the laptop and replaced the motherboard because they don't knowthe problem (which is kinda annoying sinceI am afraid of triggering the pb again)
<goibhniu>
jophish: tuxedo do pretty nice clevo laptops (tested on linux etc.)
<goibhniu>
customer support isn't the best though IME
zzamboni has quit [(Ping timeout: 248 seconds)]
<fearlessKim[m]>
Linus arf found the error,I had a { X }: rec { X = {} // X } , I removed the "rec" and it's fine
<jophish>
yeah, I used to have an xps, I found it got very hot at times though. I've never found a machine where the hardware is as nice as Apple's
<jophish>
quite tempted just to bit the bullet and move to OSX
<jophish>
goibhniu: I'll take a look, thanks!
<goibhniu>
FWIW, someone said at NixCon that you can't run linux on newer apple laptops
<goibhniu>
(in case you decided to not run OSX after a while)
<jophish>
goibhniu: yeah, the FS on high seirra I think
<vaibhavsagar>
jophish, has someone already recommended thinkpads to you?
<vaibhavsagar>
I put NixOS on a secondhand x250 and everything has worked perfectly
<jophish>
vaibhavsagar: A coworker got one recently, I've yet to talk to him about it though
<vaibhavsagar>
I hear the x1 carbon is the most Mac-like model
<vaibhavsagar>
but what I like about the x250 is that they're cheap enough that I could just replace mine if something bad happens to it
<vaibhavsagar>
and they're excellent laptops IMHO
ma27 has joined #nixos
<vaibhavsagar>
full hd screen, 16gb ram, small, light, etc
<sphalerite>
jophish: my XPS doesn't get very hot FWIW
<sphalerite>
I had a macbook pro before, but I never want to go back to Apple
rigelk has joined #nixos
rigelk has quit [(Changing host)]
rigelk has joined #nixos
<ixxie>
neither does mine
<sphalerite>
(Also the macbook pro got pretty hot. But it was a 2011 model so that's probably out of date)
ryantrinkle has quit [(Ping timeout: 250 seconds)]
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
<jophish>
Thanks for all the input!
ilyaigpetrov has joined #nixos
bts- has joined #nixos
jb55 has joined #nixos
leat has joined #nixos
FRidh has quit [(Remote host closed the connection)]
ssmike has quit [(Ping timeout: 264 seconds)]
jb55 has quit [(Ping timeout: 250 seconds)]
zraexy has quit [(Ping timeout: 250 seconds)]
jb55 has joined #nixos
zraexy has joined #nixos
FRidh has joined #nixos
<FRidh>
Do we have a function for setting mtimes inside a tarball? I have dynamically created tarballs, and am looking at the postFetch hook of fetchurl to normalize the mtimes
a6a3uh has quit [(Quit: Bye)]
<Dezgeg>
maybe unpack them (i.e. what fetchzip does)?
a6a3uh has joined #nixos
<FRidh>
that's also a good one to look at. I was now looking texlive
<kuznero>
Is that a good practice to pin nixpkgs in release.nix that suppose to be used in Hydra?
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
stph has joined #nixos
m0rphism has joined #nixos
<stph>
Hi. Any idea why launching Dolphin doesnt succeed, inside the Live CD Nixos 17.09 ? It's a pity for a live CD...
__monty__ has joined #nixos
<vincent_vdk>
is it me or are there KDE packages missing in the default NixOS install?
<__monty__>
Specifying the option extra-binary-caches 'works' (my local cache fails but at least it's tried). The binary-caches config option in nix.conf seems to be ignored.
joncfoo_ has joined #nixos
chessai has joined #nixos
cement has joined #nixos
michiel_l_ has quit [(Ping timeout: 246 seconds)]
michiel_l has joined #nixos
jb55 has quit [(Ping timeout: 258 seconds)]
Cheng has quit [(Quit: Leaving)]
<stph>
I'm running the NixOs live CD. I need to install git. Where is located the current nix configuration used by the live CD ? so as I can edit it, then nixos rebuild switch (I suppose). I need this because I'm noob and I will need several version for my configuration.nix file. I want to annotate my commits with the reasons I do change things.
<tilpner>
Did you check /etc/nixos/configuration.nix?
<makefu>
stph: if you just need nix, try "nix-shell -p git"
<tilpner>
(But it will be reset on next boot, so don't bother storing a repo there)
<michaelpj>
stph: I also recommend just getting the minimal thing where the install works, and then using the installed system, rather than messing with the live CD too much
<makefu>
what michaelpj says :)
<stph>
okay, having the least functionally working system, and building on the top of that.
kyren has quit [(Quit: Page closed)]
<stph>
in few word what does "nix-shell -p git" does ?
<stph>
it installs in a sandbox ?
<michaelpj>
stph: launches a shell in which you have the git package available
bts- has quit [(Read error: Connection reset by peer)]
michiel_l has quit [(Read error: Connection reset by peer)]
bts-_ has joined #nixos
a6a3uh has joined #nixos
Guest0 has joined #nixos
Guest0 is now known as pinnokio
zzamboni has joined #nixos
pinnokio has quit [(Client Quit)]
JosW has joined #nixos
zzamboni has quit [(Client Quit)]
ryantrinkle has joined #nixos
ssmike has quit [(Remote host closed the connection)]
civodul has quit [(Ping timeout: 264 seconds)]
ssmike has joined #nixos
<infinisil>
Does anybody happen to know how to use YouCompleteMe with vim_configurable?
<infinisil>
It has an install.py file you're supposed to run, not sure how nix does that
timokau has joined #nixos
zzamboni has joined #nixos
p4cman has joined #nixos
simendsjo has joined #nixos
<symphorien>
infinisl: I have stopped using vim_configurable.customize because it yields vim but not gvim and so on. Instead I have http://xelpaste.net/j560oR
<LnL>
infinisil: use vimPlugins.youcompleteme
todder_ has joined #nixos
<__monty__>
rycee: You here? Having some trouble with the cache cache.
todder is now known as Guest12097
Guest12097 has quit [(Killed (moon.freenode.net (Nickname regained by services)))]
todder_ is now known as todder
todder_ has joined #nixos
<infinisil>
LnL: This calls the install.py?
Itkovian has quit [(Ping timeout: 268 seconds)]
<infinisil>
because it doesn't look like it, and I'd like to have autocompletion for more than just the things in the current file
pxc has joined #nixos
<LnL>
yes, adding "youcompleteme" to vam.pluginDictionaries works fine
<clever>
LnL: the auto-completion bug i have, is that i start typing a word starting with a, and it gives completion results starting with f, for example
<clever>
it only happens in certain files
<LnL>
weird
<clever>
LnL: i suspect its the ^L characters
<infinisil>
symphorien: Not really looking for hacks, but thanks anyways :P
tazjin has joined #nixos
<infinisil>
I started getting into emacs a few days ago, maybe I'll just try to get it working there
mithsv has joined #nixos
<infinisil>
From my very limited experience, I feel like emacs integrates much better into nix
<__monty__>
Does nix-env actually read nix.conf if you have a single user setup?
<LnL>
yes
stph has quit [(Quit: Page closed)]
radvendii has joined #nixos
civodul has joined #nixos
<__monty__>
I'm asking since it seemingly ignores build-max-jobs and binary-caches.
<fuzzy_id>
nixos-install throws a “error: writing to file: No space left on device" at me
joncfoo_ has quit [(Ping timeout: 246 seconds)]
<fuzzy_id>
although i just freshly formatted
<clever>
fuzzy_id: thats a bug, it tries to do the entire install to the tmpfs on the "host" first, then copy it over
<makefu>
fuzzy_id: somewhere in the last months the installer changed and now all packages you want installed are ...
<makefu>
clever was faster
<clever>
fuzzy_id: you may need swap and to resize the /nix/store/.rw-store mount point (df should show its path)
a6a3uh has quit [(Quit: Bye)]
Itkovian has quit [(Ping timeout: 268 seconds)]
<fuzzy_id>
yeah, i just saw that
<makefu>
my workaround was to first install a minimal image and after reboot install the rest
<fuzzy_id>
damn it, installing nixos went so smooth all the time
<fuzzy_id>
is it safe to remove everything in /nix/store/.rw-store ?
<clever>
fuzzy_id: not really
<clever>
fuzzy_id: nix-collect-garbage should be used
<makefu>
just do a nix-collect-garbage
<makefu>
!
<makefu>
again
<fuzzy_id>
:)
<kuznero>
nix-prefetch-git was producing json at some point. Was that changed?
<fuzzy_id>
this should definitely be noticed somewhere in the installation section of the manual!
paste_ has joined #nixos
ma27 has quit [(Ping timeout: 240 seconds)]
alex404 has joined #nixos
<rycee>
__monty__: What's up?
<__monty__>
rycee: All I'm getting is 500 internal server errors. Testing with curl host/nix-cache-info
rigelk has quit [(Quit: leaving)]
<rycee>
__monty__: What does the nginx log say?
fuzzy_id has quit [(Ping timeout: 264 seconds)]
ssmike has quit [(Ping timeout: 264 seconds)]
<__monty__>
There's only an access.log no error.log
Itkovian has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
<rycee>
Hmm, if it gives a 500 then there should be some error message somewhere. Maybe in the journal?
<rycee>
__monty__: Did you create the cache directory?
<__monty__>
Yes and http:http is the owner.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] xvapx opened pull request #31399: pythonPackages.alot: move to python-modules (master...alot) https://git.io/vFEC9
NixOS_GitHub has left #nixos []
todder has quit [(Quit: WeeChat 1.9.1)]
alex404 has quit [(Remote host closed the connection)]
snikkers has quit [(Ping timeout: 240 seconds)]
<__monty__>
rycee: Hmm, I think it might be related to my local resolver. Too bad nginx can't just use systemd-resolve.
bennofs has joined #nixos
<rycee>
__monty__: I recall that I also had to create an empty directory as the root. I used /srv/www/nix-cache-cache.
<__monty__>
rycee: Yes, I wanted to ask about that. Can't you just use the cache directory there instead?
Itkovian has quit [(Read error: Connection reset by peer)]
<rycee>
Hmm, I'm not sure. Seems like it would risk exposing the cache files.
Itkovian has joined #nixos
<kuznero>
What's the process for making ghc821 a default compiler instead of 802 in haskell?
erasmas has joined #nixos
<kuznero>
I mean globally, I should account for that in my per-project setup of course. But still
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
bennofs has joined #nixos
digitus has joined #nixos
paste_ has quit [(Ping timeout: 260 seconds)]
Itkovian has quit [(Read error: Connection reset by peer)]
pxc has quit [(Ping timeout: 268 seconds)]
<__monty__>
rycee: Isn't exposing the cache files the point? Or do you mean to changes?
asuryawanshi has joined #nixos
<clever>
__monty__: nix-cache-info is a file, not a directory
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<__monty__>
clever: Not sure what your point is? I know it's a file, never said it's a directory.
<clever>
rycee's comment implied making it as a directory
<rycee>
__monty__: I believe the serving from cache is done by `proxy_cache`. The cache dir is having some special format that is internal to nginx, it doesn't reflect the directory structure of the served files.
zzamboni has joined #nixos
<__monty__>
clever: No, we were talking about the document root for nginx at that point.
<clever>
ah
<rycee>
__monty__: I think you have to find the nginx error log. I would be very surprised if it doesn't contain something relevant.
<__monty__>
rycee: I think it's just because of my local resolver. I have a container setup with bridged networking and pdnsd doesn't want to accept requests from anything but localhost.
<rycee>
__monty__: Ok, I know next to nothing about that so I suspect I can't help much with that problem :-(
zzamboni has quit [(Ping timeout: 250 seconds)]
<rycee>
In my config I have "127.0.0.1 ipv6=off" as resolver. I run a dnsmasq on the same host.
<__monty__>
Yeah but that'd be the containers localhost while I need the host's localhost.
<joehh>
vaibhavsagar: just watch the powerManagement.scsiLinkPolicy setting on the x250
<joehh>
just been bitten by the filesystem corruption issue if scsiLinkPolicy is not set to max_performance
romildo has joined #nixos
<joehh>
currently restoring from backups :( (at least I have backups)
leat has quit [(Quit: WeeChat 1.9.1)]
c0bw3b has left #nixos []
damke_ has joined #nixos
damke has quit [(Ping timeout: 240 seconds)]
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
mithsv has quit [(Client Quit)]
mithsv has joined #nixos
roberth has quit [(Ping timeout: 260 seconds)]
endformationage has joined #nixos
jgertm has joined #nixos
<srhb>
Oh, fun.. virsh wil
pxc has joined #nixos
<srhb>
l fail to start a qemu machine if zfs is using too much memory.
johnw_ has joined #nixos
johnw has quit [(Ping timeout: 258 seconds)]
fendor has quit [(Ping timeout: 268 seconds)]
thanegill has joined #nixos
thanegill has quit [(Client Quit)]
srdqty has joined #nixos
johnw_ is now known as johnw
johnw has quit [(Changing host)]
johnw has joined #nixos
orivej has quit [(Ping timeout: 268 seconds)]
erictapen has quit [(Ping timeout: 264 seconds)]
damke_ has quit [(Read error: Connection reset by peer)]
<romildo>
The pygmentex package on the master branch is not building anymore. It fails with the error:
<srhb>
For instance, is there a tool that will read a placeholder name, a file and the _name_ of an environment variable, and do such a substitution without worrying about delimiters etc?
<clever>
romildo: the group has +w on it, which isnt pure
<romildo>
clever, this error "suspicious source archive" has not appeared before. The file is the same. Something changed internally in nix, I think.
<sphalerite>
srhb: oooh I think there's actually something called envsubst
<clever>
romildo: ah, there has recently been some security changes within nix, to present exploits based on that
<srhb>
sphalerite: Hm, yes, I recall that vaguely.
mithsv has quit [(Quit: mithsv)]
<srhb>
sphalerite: It's in gettext apparently.
mithsv has joined #nixos
<romildo>
clever, the source is being downloaded from a CTAN mirror. Any clues on how to fix this issue?
<clever>
romildo: you may need to ensure the right flags are passed to unzip, so it doesnt set the permissions so open
ssmike has joined #nixos
<srhb>
sphalerite: That might actually work out quite nicely. I'll give it a go. Thanks for the hint!
bts-_ has quit [(Ping timeout: 250 seconds)]
radvendii has quit [(Ping timeout: 250 seconds)]
tgunb has joined #nixos
romildo has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vFE2B
<NixOS_GitHub>
nixpkgs/master f4562ba Marti Serra: pythonPakages.meliae fix version
<betaboon>
can someone point me in the right direction on how to deploy a clojure package ?
darlan has joined #nixos
darlan has quit [(Client Quit)]
ssmike has quit [(Ping timeout: 240 seconds)]
timokau has joined #nixos
Ivanych has joined #nixos
<srhb>
betaboon: I imagine it's quite similar as deploying any other package?
<srhb>
betaboon: What does it do specifically?
Ivanych has quit [(Client Quit)]
<srhb>
betaboon: Usually I end up wrapping a small systemd job around whatever I deploy.
Ivanych has joined #nixos
<betaboon>
i don't have a clue about clojure, just have to deploy a package as a service. and I'm somewhat lost as to where to start. i read about leiningen. still not much of a clue
<betaboon>
srhb: do you have something that you can share ?
<sphalerite>
clever: it's kind of horrible when you want to do that in a loop/function/anything else that's typically indented though :(
<sphalerite>
What we really need is nix-style '' strings in bash!
<srhb>
Agreed.
<sphalerite>
Um…
<clever>
sphalerite: :D
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
cybrian has joined #nixos
<srhb>
sphalerite: Uh, you are @lheckemann right?
<sphalerite>
yep :)
<srhb>
Ah, good.
<sphalerite>
an annoying inconsistency…
bts- has quit [(Ping timeout: 248 seconds)]
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
<hyper_ch>
so, server at the office almost runs perfectly again.... I used now NixOS with native root encrypted ZFS in mirror mode (3 disks) - for the VMs I use qemu/kvm with virt-manager.... bridging still is an issue as the VMs can't talk to each other and they can't talk to the host and host can't talk to them....
<sphalerite>
I use 2 names online on a regular basis, my real name and sphalerite. A while back I created a reddit account with the name "linuxhackerman" because it's amusingly similar to my actual name
todder_ is now known as todder
<srhb>
Hah, yes.
mithsv has quit [(Client Quit)]
mithsv has joined #nixos
takle has joined #nixos
<hyper_ch>
sphalerite: so sphalerite isn't your real name? oO
<sphalerite>
hyper_ch: it isn't, believe it or not!
<hyper_ch>
so you were misleading us the whole time?
<hyper_ch>
shame on you!
a6a3uh has quit [(Quit: Hi)]
jgertm has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
radvendii has quit [(Ping timeout: 250 seconds)]
<sphalerite>
hyper_ch: not really. Never claimed it was :)
romildo has joined #nixos
<hyper_ch>
you never said otherwise either
<hyper_ch>
so, nixos unstable small is broken again
<sphalerite>
Anyway, about your VM network issues — I think what you need is to create a bridge interface and connect your VMs to that
<hyper_ch>
I used bridging as provided by virt-manager but they even have a warning there
<sphalerite>
or maybe you can use macvtap and bridge them straight into the network through the same network port as their host, so it looks like they're just regular hosts on the networki
<hyper_ch>
that's what it uses
<hyper_ch>
they look like regular hosts on the netwrok
<sphalerite>
Right, what was the warning?
<hyper_ch>
but host and vms can't talke to one another
<hyper_ch>
I'll check in a minute
bts- has joined #nixos
<sphalerite>
according to some docs there are 3 modes for macvlan, VEPA, Bridge, and Private
<sphalerite>
I think Bridge is what you want. But I don't really know what I'm talking about
<NixOS_GitHub>
[nixpkgs] jtojnar closed pull request #31228: [wip] meson: append new items to the original rpath (master...meson-append-rpath) https://git.io/vFCJB
NixOS_GitHub has left #nixos []
orivej has joined #nixos
bts- has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar reopened pull request #31228: [wip] meson: append new items to the original rpath (master...meson-append-rpath) https://git.io/vFCJB
NixOS_GitHub has left #nixos []
taaperotassu has quit [(Ping timeout: 240 seconds)]
ssmike has quit [(Remote host closed the connection)]
<nliadm>
for context, I have a piece of software that's segfaulted, I want create a nix expression that has my exact nixpkgs version to submit a bug upstream
ssmike has joined #nixos
<woffs>
then just without that -I, probably
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever>
nliadm: replace <nixpkgs> with builtins.fetchurl pointing to github
<manveru>
my desktop has no wifi, so i'm kinda forced to test this with passthrough on my notebook, but that won't work on travis-ci
euniarte has joined #nixos
<manveru>
and it'd just be one hardware setup out of millions... not good coverage
hamishmack has joined #nixos
<clever>
yeah
acarrico has quit [(Ping timeout: 240 seconds)]
<euniarte>
Hi, I want to work on a project requiring qt. Is there a nice way to create a develop environment with all the packages I need installed to a directory inside the project?
<euniarte>
Or is installing the required libraries via nix-env / configuration.nix the preferred way?
<manveru>
euniarte: have you heard about our lord and saviour nix-shell yet?
<jophish>
euniarte: good question, if you find a solution it might make a good addition to the nix cookbook
<clever>
QT also needs the preConfigure hook to be ran before qmake is usable
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vFEb5
<euniarte>
manveru: I have even used it, but I am struggling to find the best way to specify the Qt packages. qt56.qtbase looks strange. And I don't know how to combine multiple packages into one derivation...
<manveru>
well, i know how to write tests
<clever>
manveru: line 26 defines an ssh server, and 38 a second server with different config, 50 is a client
<clever>
ah
<manveru>
but not sure about this kernel module ;)
<clever>
euniarte: -p will combine them for you
Franciman has joined #nixos
<clever>
manveru: first you want to see if modprobe can even load it on normal nixos
<manveru>
it does
<manveru>
trying to figure out hostapd atm
<Franciman>
Hi. How can I install xmobar and xmonad-contrib?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #30127: nixos/network-interfaces: assertion for too long interface names (master...limit_interface_name_length) https://git.io/vdBFs
NixOS_GitHub has left #nixos []
mizu_no__ has quit [(Client Quit)]
<clever>
manveru: at a glance on the link you gave, it creates a pair of virtual radios, that share the "airspace", so you just run an AP on one and a client on the other
<manveru>
you know what bss stands for?
<clever>
manveru: yeah
<clever>
manveru: on sec
JosW has quit [(Quit: Konversation terminated!)]
<euniarte>
clever: Ahh. Is there a way to specify multiple packages in an expression, too?
<clever>
manveru: bss is just the mac for the access point
erictapen has quit [(Ping timeout: 240 seconds)]
<manveru>
euniarte: shell.nix
acarrico has joined #nixos
<clever>
euniarte: just give a list under the buildInputs in shell.nix
<infinisil>
Franciman: look at the services.xserver.windowManager.xmonad.* options
fragamus has joined #nixos
ertes has joined #nixos
<Franciman>
infinisil, thank you infinisil
anton__ has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
<euniarte>
Okay, I got that working.
<euniarte>
Is there a way to create an environment similar to the result of nix-build that contains the required libraries?
<euniarte>
I want to use qtcreator as an IDE and it wants an installed qt. And pointing it to /nix/store looks like a hack
<clever>
euniarte: the only way i found to get qtcreator to work, was to point it to the qmake binary in /run/user that was made by the preConfigure hook
<clever>
which systemd will helpfully delete upon logout
<clever>
so it has to be repaired every time you login
simendsjo has quit [(Ping timeout: 260 seconds)]
Ross has quit [(Ping timeout: 240 seconds)]
<euniarte>
That sounds even worse than using the qmake in /nix/store
Ross has joined #nixos
ylwghst-nix has quit [(Remote host closed the connection)]
vcunat has joined #nixos
erictapen has quit [(Ping timeout: 252 seconds)]
pie_ has quit [(Ping timeout: 240 seconds)]
goibhniu has joined #nixos
<Franciman>
I'm sorry infinisil how can I check these options?
<clever>
euniarte: part of the problem, is that the qmake in /nix/store doesnt know about everything your putting in buildInputs
<bigvalen>
Hmm. for some reason, I can't run nixos-rebuild anymore. Any idea what might be up with that ? https://pastebin.com/4Y0F1V0h - I'm using plain 17.09
<clever>
euniarte: the preConfigure hook makes a special patched version in a tmpdir, that can see all the qt modules
<clever>
bigvalen: can you gist your configuration.nix file?
<bigvalen>
Will do
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<euniarte>
Ahh, okay. That explains an error I am getting.
<euniarte>
I guess I'll make a wrapper script for qtcreator :/
<clever>
bigvalen: oh, another thing thats handy with nix, put the dns zone files into /etc/nixos/ and use file = ./db.192.168.0;, it has to be unquoted
<bigvalen>
Nice. Though, for a change, I don't need to look after netbooting servers anymore :)
<clever>
bigvalen: then if you nixos-rebuild, nix will detect that the zone files have changed, and restart bind for you
<clever>
bigvalen: nix will also keep snapshots of the zone files, and rollback can undo changes to the service
<bigvalen>
One thing I'd like to do is work out how to get my /etc/nixos into github.
<bigvalen>
snapshot the zone files ? Oh, of course it would.
<clever>
bigvalen: also, the netboot the above module sets up, will run nixos from a ramdisk, and includes my justdoit script, which automates the entire nixos install
ma27 has quit [(Ping timeout: 258 seconds)]
<bigvalen>
The bane of my life in work is the over-reliance on crazy amazon-machine-images based on Centos. Which are crazy to build up. I don't suppose anyone does AMI-generation with Nix ?
<clever>
bigvalen: so you could infect the entire LAN with nixos, by just walking to each machine, f12, netboot, justdoit
<manveru>
there's code for AMI generation in nixpkgs
<bigvalen>
I really should get better at the Nix language, and understanding it. I just did this because some nutbar coworker convinced me to install it on my home NAS. Now I'm thinking it's a far neater way to deploy code, as containers, than the current insane '1.1GB Centos AMI + tarball of code'
<obadz>
manveru: hmmm what about wifi in the installer and network manager?
<clever>
obadz: automated testing with qemu
<obadz>
clever: doesn't work with nm?
<bigvalen>
clever: Nice. I miss the days when I had low-urgency ops jobs, and could spend days pricking around with something like that, to get it working
<clever>
manveru: and with the right gui, he will already know nix!
<manveru>
but turns out he'd rather imitate what i'm doing and writing code...
<clever>
:D
<manveru>
but yeah, i would love a nix editor
hiratara has joined #nixos
hellrazor has joined #nixos
<manveru>
i've been thinking about that for weeks now :P
<MP2E>
I've thought about this too. The drag and drop block nature of visual editors makes me wonder how well it'd work with something like Haskell, or basically any purely functional language with strong static types
<manveru>
and it's basically what i'm building, just in a roundabout way
<MP2E>
it 'sounds' good but of course, things that sound good on paper dont always turn out so well so i dunno
<sphalerite>
I think we generally need editors where you work with syntax trees rather than text
<MP2E>
it's interesting anyway
<MP2E>
yeah i agree
hellrazo1 has quit [(Ping timeout: 258 seconds)]
<bigvalen>
Hmm. Seems I'm not specifying my DHCP options properly. How does nix start things like dhcpd ? Where do the daemon's command line options live ?
<sphalerite>
There's always so much fuss about formatting, even though it's not even relevant really
<manveru>
i use autoformatting for all my languages...
<manveru>
just so i don't have to think about it
<sphalerite>
Yeah
<clever>
bigvalen: did you also set enable for the dhcp server?
<manveru>
ever since i got hooked on gofmt
<bigvalen>
Yeah, but it's bitching that I'm not setting a subnet for my interface. So I've messed something up
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
<clever>
bigvalen: start by looking at the dhcp .service file in /etc/systemd/system/
<clever>
bigvalen: that should have the path to the dhcp config file
<clever>
bigvalen: you also need to configure the interface with a static ip, seperately from dhcpd
<manveru>
anyway, my first step is to let people visually build their first configuration.nix while seeing how it's built up... so they see that it's not magic
seanparsons has quit [(Ping timeout: 240 seconds)]
<manveru>
a full nixos-option editor is nice, but provides zero guidance of what to do, so it's not really for beginners
<bigvalen>
lol. I was calling the network interface 'ino0' instead of 'eno0'. Sigh.
<bigvalen>
But, good to know that's where systemd stuff lives.
<bigvalen>
Right. DNS server time
<clever>
manveru: i was thinking of having templates and GUI's that tie into that editor
<manveru>
on the plus side, it gives you a single interface to configure virtually your whole system, that's better than anyone else can do
<clever>
manveru: and the templates should also control how the partitioning is done
<clever>
manveru: for example, if you are using legacy on gpt, you need a 2mb bios boot partition
<clever>
but if you are using legacy on mbr, you dont
<clever>
and if your using efi on gpt, you need a fat32 efi system
<clever>
you can also safely mix legacy + efi on gpt, but you obviously cant mix mbr and gpt on the same drive
<manveru>
my current partitioning strategy is "select a disk to wipe, and we'll try to put a bootloader and OS on it"
bts- has quit [(Ping timeout: 260 seconds)]
<clever>
yeah, justdoit does that right now
<manveru>
this stuff is not my strong suit
<clever>
but in future, users may want to dual-boot with an existing OS
<manveru>
yeah
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
seanparsons has joined #nixos
jsgrant has joined #nixos
ryantrinkle has joined #nixos
<manveru>
well, if i can borrow from your stuff, i'll focus on the UX for now
<manveru>
once i'm satistified with the configuration.nix generation, i can focus on the actual installation part, which should be easy with your script
<Lisanna>
In order to use proxies with a non-NixOS install of Nix, what are the minimum requirements? My situation is that nix-channel --update works, but nix-env -i hello does not. It gets stuck at download-from-binary-cache.pl waiting for the nixos.org cache
<clever>
mekeor: the QT program builds the json at runtime, so the effects of nix-channel --update effect the docs in the GUI
<manveru>
nix-instantiate --eval -E '(import <nixpkgs/nixos> {}).config.services.xserver.enable' (or options, for the docs etc)
<manveru>
yeah
<manveru>
that part i got too, pretty handy
bennofs has quit [(Ping timeout: 246 seconds)]
<clever>
manveru: there is also a nixos-option command
<manveru>
but now i don't have to rely on nixos-option output
* mekeor
is confused
<clever>
ah
<manveru>
the --xml flag is pretty fragile, tried hacking a --json one but failed
<clever>
mekeor: a few too many m names active at once
<manveru>
:)
<mekeor>
:)
* mekeor
likes m
<clever>
:)
<manveru>
!m clever
<[0__0]>
You're doing good work, clever!
<ylwghst-nix>
Hi
* mekeor
ms clever
<mekeor>
hi ylwghst-nix :)
<ylwghst-nix>
i'm i triyng to allow users of group pmutils to execute pm-suspend with sudo without asking passwd.
euniarte has quit [(Remote host closed the connection)]
<rycee>
Lisanna: "Nix now works behind an HTTP proxy server; just set the standard environment variables http_proxy, https_proxy, ftp_proxy or all_proxy appropriately. Functions such as fetchurl in Nixpkgs also respect these variables."
<rycee>
Lisanna: So maybe you are missing some variable like that?
<manveru>
clever: the good part about nix-instantiate is that it doesn't fill up my store with useless json
<bgamari>
is nix-env supposed to ensure that my profile's lib/ directory is in PYTHONPATH?
<rycee>
I've never used Nix with a proxy myself though so I don't know how well it works in practice.
ylwghst-nix has quit [(Remote host closed the connection)]
romildo has joined #nixos
bts- has joined #nixos
dhess has joined #nixos
<dhess>
Hi. Call me naïve, but I would expect that there is some tool that I can point to a PyPi package and it generates a default.nix. However, I can't find one that works that way.. at least, not one that is maintained. (python2nix in Nixpkgs is broken.)
bts- has quit [(Ping timeout: 268 seconds)]
<dhess>
How do Python people go about packaging an arbitrary PyPi package?
python476 has quit [(Ping timeout: 248 seconds)]
srdqty has quit [(Quit: WeeChat 1.9.1)]
<dhess>
I guess I'm spoiled by nix-generate-from-cpan and cabal2nix because those are trivial.
<manveru>
dhess: there's pypi2nix
<dhess>
manveru: yeah, but as far as I can tell, it doesn't work that way at all. I have to download the package, point it to the requirements.txt file, tell it about any C libraries that the package needs, and in the end it produces a requirements.nix file that is only part of the solution.
<dhess>
manveru: so like... it's not quite up to snuff :)
<dhess>
I appreciate that part of the problem here is that requirements.txt isn't really sufficient, but is it really this much work to package something up?
ylwghst has joined #nixos
<__monty__>
Isn't all of pypi packaged, like haskellPackages?