roosemberth has joined #nixos
Wizek_ has joined #nixos
MP2E has joined #nixos
bts- has joined #nixos
pxc has quit [(Ping timeout: 260 seconds)]
digitus has quit [(Quit: digitus)]
bts- has quit [(Ping timeout: 240 seconds)]
ryanartecona has joined #nixos
dywedir has joined #nixos
dywedir has quit [(Remote host closed the connection)]
dywedir has joined #nixos
ryanartecona has quit [(Ping timeout: 248 seconds)]
dywedir has quit [(Remote host closed the connection)]
anton__ has quit [(Ping timeout: 258 seconds)]
srdqty has quit [(Quit: WeeChat 1.9.1)]
Orbstheorem has joined #nixos
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
srdqty has joined #nixos
srdqty has quit [(Client Quit)]
erasmas has quit [(Quit: leaving)]
anton__ has joined #nixos
mithsv has quit [(Quit: mithsv)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/57554d5ece (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
mithsv has joined #nixos
nix-gsc-io`bot has quit [(Client Quit)]
roosemberth has quit [(Quit: leaving)]
georgiy has quit [(Quit: Leaving)]
bts- has joined #nixos
kus_ubuntui686 has joined #nixos
kus_ubuntui686 has quit [(Max SendQ exceeded)]
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
bts- has quit [(Ping timeout: 260 seconds)]
mithsv has quit [(Client Quit)]
mithsv has joined #nixos
markus1189 has joined #nixos
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)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #31302: emacsPackages.font-lock-plus: init at 20170222.1755 (master...emacsPackages.font-lock-plus) https://git.io/vFlUU
NixOS_GitHub has left #nixos []
bgamari has quit [(Read error: Connection reset by peer)]
bgamari has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
<vaibhavsagar> what's the fastest way to get the .drv file corresponding to some store path?
matthewbauer has joined #nixos
<vaibhavsagar> I'm trying `find /nix/store -type f -name '*.drv' | grep <path>`
<vaibhavsagar> is there a quicker/easier way?
<FreakingOut1987> damn, no native shebangs
<FreakingOut1987> I dont know how I feel about that haha
<FreakingOut1987> I feel like i'm dissing william
dejanr has quit [(Ping timeout: 248 seconds)]
<hedning[m]> vaibhavsagar: nix-store -q --deriver <path>
<vaibhavsagar> amazing, thanks hedning[m]!
<neonfuz> what does "unwrapped" mean in nixpkgs?
dejanr has joined #nixos
<neonfuz> like as a suffix on a package
<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 joined #nixos
<FreakingOut1987> what encoding is that sha256 in?
<FreakingOut1987> nervermind it's nix-prefetch-url
<dj_goku> yeah or nix-prefetch-git
sigmundv has quit [(Ping timeout: 248 seconds)]
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
<matthewbauer> dj_goku: basically all of the tests need to pass: https://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents
bts- has quit [(Ping timeout: 248 seconds)]
<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.
moet has quit [(Quit: leaving)]
<matthewbauer> yeah, i follow http://howoldis.herokuapp.com for latest updates
<matthewbauer> it will give the last updated commit, if you're waiting for something
joncfoo_ has quit [(Ping timeout: 248 seconds)]
<dj_goku> alright cool.
FreakingOut1987 has quit [(Remote host closed the connection)]
<dj_goku> so I have built a dependency and want to get a nix-shell and test an already built thing. haha not sure how to describe it.
<dj_goku> I want to test an erlang build and run elixir with it my new build.
damke_ has joined #nixos
uptime has left #nixos []
bts- has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] djgoku closed pull request #31379: elixir: 1.5.1 -> 1.5.2 (master...bump-elixir-to-1.5.2) https://git.io/vFRpH
NixOS_GitHub has left #nixos []
schoppenhauer has quit [(Ping timeout: 248 seconds)]
bts- has quit [(Ping timeout: 268 seconds)]
schoppenhauer has joined #nixos
joehh has quit [(Ping timeout: 260 seconds)]
pxc has joined #nixos
pxc has quit [(Ping timeout: 268 seconds)]
bts- has joined #nixos
acarrico has quit [(Ping timeout: 260 seconds)]
alex404 has quit [(Ping timeout: 260 seconds)]
bts- has quit [(Ping timeout: 240 seconds)]
proteus-guy has quit [(Read error: Connection reset by peer)]
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
p4cman has joined #nixos
Fare has joined #nixos
matthewbauer has quit [(Ping timeout: 260 seconds)]
bts- has joined #nixos
Ivanych has joined #nixos
bts- has quit [(Ping timeout: 268 seconds)]
hellrazo1 has quit [(Ping timeout: 260 seconds)]
matthewbauer has joined #nixos
hellrazo1 has joined #nixos
ma27 has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
matthewbauer has quit [(Ping timeout: 268 seconds)]
acowley is now known as acowley_away
leothrix has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
nslqqq has quit [(Ping timeout: 250 seconds)]
nslqqq has joined #nixos
radvendii has quit [(Ping timeout: 250 seconds)]
a6a3uh has joined #nixos
leothrix has joined #nixos
mog has quit [(Ping timeout: 264 seconds)]
bgamari has quit [(Ping timeout: 240 seconds)]
bts- has joined #nixos
asuryawa_ has joined #nixos
asuryawa_ has quit [(Remote host closed the connection)]
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
mog has joined #nixos
bts- has quit [(Ping timeout: 258 seconds)]
MrCoffee has quit [(Quit: Lost terminal)]
bgamari has joined #nixos
timokau has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<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
<gfixler> this is the mess I ultimately need to grok translating to a nix expression: https://gist.github.com/gfixler/03818187eb31c5e1241c2e22f444aa75
<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
<clever> the host can be anything that supports docker (pretty much any linux distro)
bts- has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
<gfixler> clever: okay, so it sounds like if you want control all the way down, you run two oses
<clever> as an example of what the above nix expression can do
<gfixler> NixOS is just a Linux distro; a docker OS would be a docker container running on some other OS, maybe the same as the internal one
<clever> using the above hydra link, and the docker.md directions, you could run a copy of cardano on your machine, under docker
<clever> everything is built by nix, but nix is not required to run it
vcunat has joined #nixos
jacob has joined #nixos
<clever> so now we can benefit from both, its easy to maintain the image with nix, and the consumers get the simplicity of docker
MercurialAlchemi has joined #nixos
<clever> and hydra can rebuild the image whenever things change that have any impact: https://hydra.iohk.io/job/serokell/cardano-sl/dockerImage.x86_64-linux
bts- has quit [(Ping timeout: 240 seconds)]
Arcaelyx has quit [(Ping timeout: 250 seconds)]
* clever heads to bed
<gfixler> thanks, clever
Arcaelyx_ has joined #nixos
damke has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
damke_ has quit [(Ping timeout: 240 seconds)]
<vaibhavsagar> gfixler, you can also construct a docker image with Nix
<vaibhavsagar> best of both worlds!
<gfixler> vaibhavsagar: apparently I can construct my whole homespace these days with Nix!
dj_goku has quit [(Quit: Lost terminal)]
<vaibhavsagar> this is the Nix approach: support every conceivable use case
<gfixler> vaibhavsagar: I was going to say that it feels like there's a lot of magic behind the scenes
<gfixler> all of those names go somewhere, like tag = "latest";
<vaibhavsagar> if you squint it looks like a Dockerfile
<gfixler> not yet, as I don't know those
<srhb> It's worth knowing, just so you can steer clear :p
obadz has quit [(Ping timeout: 258 seconds)]
<gfixler> I find "support every conceivable use case" to be a lot less scalable than "good core with composable, single-use abilities"
reinzelmann has joined #nixos
<vaibhavsagar> we have both
<gfixler> especailly as the latter yields the former wherever I've seen it
obadz has joined #nixos
<srhb> The overhead is very low for "everything" when it just means "more functions"
<srhb> That are entirely optional.
<vaibhavsagar> Nix is all about three things: hashing, symlinks, and environment variable manipulation
<gfixler> srhb: yeah, that's how I like it
<vaibhavsagar> that's the core
<gfixler> vaibhavsagar: the environment variable thing is nebulous for me yet
<gfixler> is that env vars as on my machine, like PATH?
<vaibhavsagar> yup
<gfixler> these are contained, though, right?
<gfixler> like per env
bts- has joined #nixos
<gfixler> or are these the global ones?
<vaibhavsagar> this is how Nix achieves that containment
<gfixler> okay, that makes sense
<gfixler> by sticking nix stuff at the head of PATH and such?
<gfixler> (if not, then it doesn't make sense :))
<srhb> gfixler: Yes, you can try comparing your env with one produced by nix-shell --pure -p hello
<vaibhavsagar> or emptying PATH and setting it to only include what it needs
<gfixler> srhb: that reminds me - need to spool up nix on my main box, now that I'm not afraid of it anymore
<srhb> gfixler: Yesssss, give in to the dark side (etc.)
<vaibhavsagar> try `nix-shell --pure -p hello --run 'echo $PATH'`
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 has joined #nixos
<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.
<srhb> gfixler: Alternatively, nix-shell -p dmenu firefox hello barbazfoo --pure
<gfixler> so nix-shell is a way to make a new environment with all new stuff in it, based on a derivation (may have that lingo wrong yet)
<srhb> Now you control what dmenu sees.
<gfixler> so I could have 2 terms with nix-shells running entirely different, conflicting things?
<vaibhavsagar> yup
<vaibhavsagar> because hashing
<gfixler> right - I asked for this a year or two back
<gfixler> I realized that I specify things in my python package, but not which python to use
<gfixler> and I started to think that I should really be able to specify everything
<gfixler> I started telling people about that idea, and most thought it sounded nuts
<vaibhavsagar> we agree with you
<gfixler> and then one person in a forum said "You're talking about nixos"
<gfixler> I kept saying "Like git's dag, but for everything"
<vaibhavsagar> yup
<vaibhavsagar> so /nix/store is very similar to .git/objects
<gfixler> I wasn't thinking far enough, though. When nix people said "Yeah, even the compiler," I almost passed out
<gfixler> vaibhavsagar: yeah, it's how I want everything in my life to run
<vaibhavsagar> yeah, we draw the line at the kernel and systemd I think
<vaibhavsagar> but most other things are fair game
<gfixler> power button -> kernel -> system d -> nixos?
<vaibhavsagar> in the sense that you can construct an arbitrary environment with arbitrary executables
<gfixler> do you know about the effects world version of this?
<vaibhavsagar> things like network ports, running services, sockets, are not so easy to override
<vaibhavsagar> for that you might have to spin up a VM or a container
<gfixler> (effects world = vfx industry)
<vaibhavsagar> hahah this is great
<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
<vaibhavsagar> nah, don't watch the video
<vaibhavsagar> read the blog post instead
<gfixler> no?
<gfixler> okay
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #31382: plasma: 5.11.2 -> 5.11.3 (master...plasma-5_11_3) https://git.io/vF0LE
NixOS_GitHub has left #nixos []
<gfixler> vaibhavsagar: added to my tolearn list on August 8
<vaibhavsagar> :D
<gfixler> sorry, 12th - the day you tweeted it :)
zraexy has joined #nixos
fragamus has joined #nixos
<vaibhavsagar> cool, maybe there will be something in there to surprise you :)
<vaibhavsagar> or not, both outcomes are godo
<vaibhavsagar> *good
Arcaelyx has joined #nixos
Arcaelyx_ has quit [(Ping timeout: 240 seconds)]
universalpackage has joined #nixos
bts- has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
lars__ has joined #nixos
bts- has quit [(Ping timeout: 248 seconds)]
<hyper_ch> hmmm, weird issue... just create zfs pool in qemu but after rebooting it tells me it can't import the pool and hence booting fails
<lars__> has someone had this error when using nixos-rebuild? perl: warning: Setting locale failed.
<lars__> then all non-ascii glyphs are all messed up in urxvt
proteus-guy has joined #nixos
asuryawanshi has joined #nixos
<lars__> and i haven't managed to narrow down which package causes it
<lars__> i have tried removing packages from systemPackages
<vaibhavsagar> lars__: does --show-trace help here at all?
<sphalerite> Probably won't since it's not a nix error
<vaibhavsagar> would it narrow it down though?
<lars__> --show-trace doesn't show anything extra
<hyper_ch> hmmm, do I need virtio or something as module to be loaded in the guest?
<sphalerite> I highly doubt it. You can try but I believe the output will be exactly the same
<sphalerite> Yeah
<lars__> perl: warning: Please check that your locale settings:
<lars__> are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
<sphalerite> hyper_ch: it should get loaded automatically as necessary
<sphalerite> lars__: what does `locale`, in the same shell you ran nixos-rebuild, say?
<lars__> locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8
asuryawanshi has quit [(Ping timeout: 258 seconds)]
<lars__> and then a list of en_US
<lars__> even though my layout should be fi
<hyper_ch> sphalerite: I did install it in kvm/qemu just fine and after reboot I get: https://images.sjau.ch/img/553ed1ac.png tried it now 3 times
<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!)]
<hyper_ch> sphalerite: there's tons of it
hotfuzz has quit [(Ping timeout: 248 seconds)]
<hyper_ch> I guess I should load virtio also in the vm
<sphalerite> hyper_ch: virtio_blk will be the important one I'm guessing
<sphalerite> It's weird though, normally nixos-generate-config should have detected that it's needed
<sphalerite> Ah well
<hyper_ch> let me check
<sphalerite> If you set boot.initrd.availableKernelModules = ["virtio_blk"]; that should hopefully help
<hyper_ch> ata_piix, uhci_hcd, ehci_pci, virtio_pci sr_mod virtio_blk
<hyper_ch> hmmm
<hyper_ch> I put in now all the virtio stuff
Itkovian has joined #nixos
bts- has joined #nixos
<sphalerite> lars__: I don't know how that's usually done in nixos actually
a6a3uh has joined #nixos
<sphalerite> But I think what you need is LANG=en_US.UTF-8, and LC_ALL=fi_FI.UTF-8
<lars__> sphalerite: how do i set those?
<hyper_ch> sphalerite: didn't help either
jensens has joined #nixos
<sphalerite> lars__: that's the thing, I don't know :/ maybe adding them to environment.sessionVariables
<sphalerite> But maybe there's a more proper way to do it
<sphalerite> hyper_ch: could you boot into the installer again, then lsblk?
yegortimoshenko has joined #nixos
<lars__> do people with non-english keyboards normally just use their own locale's language?
bts- has quit [(Ping timeout: 240 seconds)]
<hyper_ch> I use english but my keyboard
<yegortimoshenko> are there still any binaries used for bootstrapping nixpkgs?
<yegortimoshenko> COPYING should be fixed, there is no pkgs/stdenv/linux/tools/bash
<hyper_ch> lars__: I use this in my configuration nix for swiss germany keyboard layout with english language https://paste.simplylinux.ch/view/raw/cf26f58f
<lars__> hyper_ch: ok, i have similar
FRidh has joined #nixos
<lars__> hyper_ch: grüzi
<adisbladis> lars__: I just stick with en_US.UTF-8
<adisbladis> Even though I'm having se dvorak keyboard
<etu> lars__: I'll stick to en_US.UTF-8 but don't use an US keyboard :)
<lars__> adisbladis: so your layout is like in english but all the glyphs in your keyboard are in wrong places?
<sphalerite> hyper_ch: ls -l /sys/class/block/vda/device/driver ?
<adisbladis> lars__: Huh? What do you mean? My physical layout?
<lars__> yea
a6a3uh has quit [(Quit: Bye)]
<adisbladis> lars__: Yeah the logical layout does not correspond to the physical glyphs :P
<lars__> so when you press "t" in your keyboard, you get an "h"
<lars__> no, "j"
<lars__> i think
<adisbladis> lars__: No I get an "y"
<etu> lars__: Just learn your layout :D
<lars__> :D
<adisbladis> My keyboard is black on black anyway :)
<lars__> the thing is, i need ö and ä quite frequently and those are next to impossible with an english layout
<sphalerite> lars__: the keyboard layout is a completely different setting though so you can do that completely independently of the locale
<etu> lars__: https://home.elis.nu/desk.jpg -- guess layout ;)
<hyper_ch> sphalerite: says using virtio https://images.sjau.ch/img/55d44b1a.png
<lars__> etu: what keyboard is that?
<etu> lars__: ErgoDox Infinity with Matias Quiet Clicks
<lars__> uuuuu i want to have one
<sphalerite> lars__: alt-gr+[ then u or o ;)
<sphalerite> Err a or o
<etu> lars__: I also hang out in #Mechboards here on freenode :p
<lars__> sphalerite: i know but it's so troublesome :(
<hyper_ch> sphalerite: brb
<sphalerite> But to change the layout use services.xserver.layout
<sphalerite> hyper_ch: then I'm almost out of ideas :(
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yegortimoshenko opened pull request #31386: COPYING: fix path to bootstrapping tools (master...patch-6) https://git.io/vF0YJ
NixOS_GitHub has left #nixos []
bts- has joined #nixos
<lars__> etu: i've been searching for a good ergonomic keyboard forever, but didn't ever come to think there was an irc channel for it
ertes has quit [(Ping timeout: 240 seconds)]
<adisbladis> Sadly there is not any good split keyboard with topre switches :(
<sphalerite> hyper_ch: try maybe setting the shell on fail boot option and see if you can find any info about the block devices in there
<etu> lars__: The channel is for the subreddit, there's huge communities for this :)
<adisbladis> And I'd have to give up my "mouse" if I went with a split one
<adisbladis> Once you go topre keyboard you never go back
* sphalerite uses laptop's built-in keyboard
<adisbladis> sphalerite: Infidel!
<adisbladis> etu: I think I'm starting to prefer this kind of mouse over a trackpoint even :O
<lars__> etu: thank you, haven't found those before
<sphalerite> With regular GB layout
periklis has joined #nixos
<lars__> adisbladis: what are topre switches?
freusque has joined #nixos
<adisbladis> lars__: A very special kind of mechanical keyboard switches. Capacitive switches
<sphalerite> Not going to make any practical claims about the advantages of my laptops' built-in keyboards though
yegortimoshenko has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
<sphalerite> Although I will say that I think the trackpad is an excellent pointing device
<adisbladis> lars__: Sadly there is only one manufacturer (from Japan)
<lars__> adisbladis: what do you need/use those for?
bts- has quit [(Ping timeout: 250 seconds)]
<adisbladis> lars__: It feels like heaven to type on
<sphalerite> The only thing better about trackpoints is their proximity to the keyboard and their small space cost.
vcunat has quit [(Ping timeout: 264 seconds)]
<lars__> etu: what is that mouse in your photo?
<adisbladis> The feedback is just right, and you dont have to have physical contact to trigger the switch.
<adisbladis> lars__: So they trigger just as you get over the tactile bump
<etu> lars__: It's the CST (Clearly Superior Trackball) from CST (Clearly Superior Technology) :p
<sphalerite> Trackpad for regular activities, cheap £15 mouse for first-person games :p
<lars__> etu: is trackball better than a mouse for office duties? i have seen those in stores but have never had the chance to try
<sphalerite> lars__: you may also want to set i18n.consoleUseXkbConfig to true
<adisbladis> lars__: I don't really like trackball all that much
<etu> lars__: Much personal preference there, for me. Yes. Because I don't have to move a big chunk around which makes less strain on wrists and such.
<adisbladis> I have one of these babies: https://i.imgur.com/lmaxdw5.jpg
a6a3uh has joined #nixos
<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.
<sphalerite> Morning kuznero!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #31385: gnuplot: 5.2.0 -> 5.2.1 (master...update/gnuplot-5.2.1) https://git.io/vF0mh
NixOS_GitHub has left #nixos []
periklis has quit [(Ping timeout: 250 seconds)]
<etu> lars__: I've got this package a week ago. Planning to migrate when I get my second set: https://www.reddit.com/r/MechanicalKeyboards/comments/79vv8u/photos_keyboardio_something_ive_waited_for_since/
<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: I found https://garbas.si/2016/updating-your-nix-sources.html there is `Pinning nixpkgs` section. Can you tell if it is accurate?
<adisbladis> kuznero: Looks quite accurate.
<kuznero> adisbladis: thanks!
<adisbladis> kuznero: You could just use fetchTarball but that does not support sha256 until nix 1.12
zzamboni has quit [(Quit: Leaving.)]
<kuznero> adisbladis: btw, when do we expect nix 1.12?
zzamboni has joined #nixos
<adisbladis> kuznero: So you would have to fetch it more often than pinning with a hash.
<adisbladis> kuznero: I dont know.
<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
<hyper_ch> sphalerite: I've seen it somewhere but just couldn't find it here https://nixos.org/nixos/options.html#shell
bts- has joined #nixos
<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
_rvl has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<pmeunier> Hi! What's the proper way to get terminal colours in a build script of a derivation?
_rvl has joined #nixos
<adisbladis> makefu: There are a bunch of them around in nixpkgs using different approaches.
<pmeunier> I understand the main problem is that TERM cannot be set transparently, is there another way?
<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
goibhniu has joined #nixos
hellrazo1 has quit [(Ping timeout: 258 seconds)]
mk-fg has quit [(Ping timeout: 255 seconds)]
damke has joined #nixos
<vaibhavsagar> makefu: what do you mean manual work? git clone https://github.com/expipiplus1/update-nix-fetchgit; cd update-nix-fetchgit; nix-build release.nix; result/bin/update-nix-fetchgit <args>
<pmeunier> sphalerite: I don't really know what I want, I'm trying to finish https://github.com/NixOS/nixpkgs/pull/31150
<vaibhavsagar> there's no automated solution in nixpkgs AFAIK
bts- has joined #nixos
<pmeunier> I want to start using Nix as a replacement for Cargo (Rust's build tool).
hellrazo1 has joined #nixos
damke_ has quit [(Ping timeout: 240 seconds)]
<sphalerite> Oooooh, a very interesting project!
<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.
<kuznero> adisbladis: it ended up looking like this: https://github.com/kuznero/dotfiles/blob/5ea317294d239602e6ca90a701e7c08331ea388d/phoenix/configuration.nix But I have a feeling that I am missing `inherit pkgs` somewhere...
<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
<pmeunier> and then nix-build builds them.
dywedir has joined #nixos
<sphalerite> Sweet
<kuznero> Can somebody please review the configuration.nix (pinning nixpkgs is important): https://github.com/kuznero/dotfiles/blob/5ea317294d239602e6ca90a701e7c08331ea388d/phoenix/configuration.nix ?
<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
jtojnar has quit [(Quit: jtojnar)]
michaelpj has quit [(Ping timeout: 252 seconds)]
<adisbladis> kuznero: This is my solution to the same problem: https://github.com/adisbladis/nixconfig/blob/master/profiles/common.nix#L13
<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?
obadz has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ma27 opened pull request #31390: treewide: s/buildPhases/phases (master...fix-buildphase-expressions) https://git.io/vF08I
NixOS_GitHub has left #nixos []
noam_ has joined #nixos
a6a3uh has quit [(Quit: Bye)]
bts- has quit [(Ping timeout: 268 seconds)]
obadz has joined #nixos
python476 has joined #nixos
Wizek_ has joined #nixos
elasticdog has joined #nixos
noam has quit [(Ping timeout: 248 seconds)]
cybrian has quit [(Ping timeout: 240 seconds)]
hellrazo1 has quit [(Ping timeout: 260 seconds)]
hellrazo1 has joined #nixos
ma27 has quit [(Ping timeout: 246 seconds)]
bts- has joined #nixos
magnap has quit [(Ping timeout: 240 seconds)]
timclassic has quit [(Ping timeout: 246 seconds)]
demyan[m] has quit [(Ping timeout: 246 seconds)]
Obscurity[m] has quit [(Ping timeout: 250 seconds)]
tommyangelo[m] has quit [(Ping timeout: 240 seconds)]
kevincox has quit [(Ping timeout: 240 seconds)]
myklam[m] has quit [(Ping timeout: 240 seconds)]
paperdigits[m] has quit [(Ping timeout: 240 seconds)]
jluttine[m] has quit [(Ping timeout: 240 seconds)]
indefini has quit [(Ping timeout: 240 seconds)]
M-berdario has quit [(Ping timeout: 240 seconds)]
NickHu has quit [(Ping timeout: 240 seconds)]
hl has quit [(Ping timeout: 240 seconds)]
Barnabas[m] has quit [(Ping timeout: 240 seconds)]
revoltmedia[m] has quit [(Ping timeout: 240 seconds)]
mtncoder[m] has quit [(Ping timeout: 240 seconds)]
stites[m] has quit [(Ping timeout: 240 seconds)]
EuAndreh[m] has quit [(Ping timeout: 240 seconds)]
AlanPearce[m] has quit [(Ping timeout: 240 seconds)]
sirius[m] has quit [(Ping timeout: 240 seconds)]
efx[m] has quit [(Ping timeout: 240 seconds)]
reactormonk[m] has quit [(Ping timeout: 240 seconds)]
teh[m] has quit [(Ping timeout: 240 seconds)]
taohansen has quit [(Ping timeout: 240 seconds)]
StuK[m] has quit [(Ping timeout: 255 seconds)]
sk23[m] has quit [(Ping timeout: 255 seconds)]
thematter[m] has quit [(Ping timeout: 255 seconds)]
Deleh[m] has quit [(Ping timeout: 246 seconds)]
AmineChikhaoui[m has quit [(Ping timeout: 246 seconds)]
wmertens[m] has quit [(Ping timeout: 246 seconds)]
FRidh[m] has quit [(Ping timeout: 246 seconds)]
chominist[m] has quit [(Ping timeout: 246 seconds)]
7IZAAJQSA has quit [(Ping timeout: 246 seconds)]
Li[m] has quit [(Ping timeout: 246 seconds)]
equalunique[m] has quit [(Ping timeout: 246 seconds)]
DIzFer[m] has quit [(Ping timeout: 255 seconds)]
nixo[m] has quit [(Ping timeout: 255 seconds)]
Kallegro[m] has quit [(Ping timeout: 255 seconds)]
codyopel has quit [(Ping timeout: 255 seconds)]
primeos[m] has quit [(Ping timeout: 255 seconds)]
AllanDaemon[m] has quit [(Ping timeout: 248 seconds)]
thomad[m] has quit [(Ping timeout: 248 seconds)]
aminech[m] has quit [(Ping timeout: 248 seconds)]
voobscout[m] has quit [(Ping timeout: 248 seconds)]
peterhoeg has quit [(Ping timeout: 248 seconds)]
M-fishy has quit [(Ping timeout: 250 seconds)]
icetan has quit [(Ping timeout: 250 seconds)]
zigschots20[m] has quit [(Ping timeout: 250 seconds)]
seif[m] has quit [(Ping timeout: 250 seconds)]
AdamSlack[m] has quit [(Ping timeout: 250 seconds)]
adisbladis[m] has quit [(Ping timeout: 250 seconds)]
yochai[m] has quit [(Ping timeout: 250 seconds)]
jsv[m] has quit [(Ping timeout: 250 seconds)]
AndersonTorres[m has quit [(Ping timeout: 250 seconds)]
octalsrc[m] has quit [(Ping timeout: 250 seconds)]
bhipple[m] has quit [(Ping timeout: 250 seconds)]
benkolera has quit [(Ping timeout: 248 seconds)]
dash has quit [(Ping timeout: 248 seconds)]
dylanjust[m] has quit [(Ping timeout: 250 seconds)]
peel[m] has quit [(Ping timeout: 250 seconds)]
spacekitteh[m] has quit [(Ping timeout: 248 seconds)]
dkellner[m] has quit [(Ping timeout: 248 seconds)]
necronian has quit [(Ping timeout: 248 seconds)]
ycy[m] has quit [(Ping timeout: 250 seconds)]
regnat[m] has quit [(Ping timeout: 250 seconds)]
Exee7uvo[m] has quit [(Ping timeout: 250 seconds)]
WinterFox[m] has quit [(Ping timeout: 250 seconds)]
ArdaXi[m] has quit [(Ping timeout: 250 seconds)]
nh2[m] has quit [(Ping timeout: 250 seconds)]
itorres has quit [(Ping timeout: 250 seconds)]
sudoreboot[m] has quit [(Ping timeout: 250 seconds)]
olejorgenb[m] has quit [(Ping timeout: 248 seconds)]
cornu[m] has quit [(Ping timeout: 248 seconds)]
corngood has quit [(Ping timeout: 241 seconds)]
Khorne[m] has quit [(Ping timeout: 241 seconds)]
Leo[m]2 has quit [(Ping timeout: 241 seconds)]
Singularity[m] has quit [(Ping timeout: 241 seconds)]
JameySharp[m] has quit [(Ping timeout: 241 seconds)]
krawiec[m] has quit [(Ping timeout: 241 seconds)]
apocolocyntos[m] has quit [(Ping timeout: 241 seconds)]
Elephant454[m] has quit [(Ping timeout: 241 seconds)]
hexkey[m] has quit [(Ping timeout: 241 seconds)]
pstn has quit [(Ping timeout: 241 seconds)]
baconicsynergy[m has quit [(Ping timeout: 241 seconds)]
etcinit[m] has quit [(Ping timeout: 264 seconds)]
mith[m] has quit [(Ping timeout: 264 seconds)]
moredread[m] has quit [(Ping timeout: 264 seconds)]
moredhel1 has quit [(Ping timeout: 264 seconds)]
bennofs[m] has quit [(Ping timeout: 264 seconds)]
Wysteriary[m] has quit [(Ping timeout: 264 seconds)]
retrry[m] has quit [(Ping timeout: 240 seconds)]
AsherGottlieb[m] has quit [(Ping timeout: 240 seconds)]
guest521[m] has quit [(Ping timeout: 240 seconds)]
akavel[m] has quit [(Ping timeout: 240 seconds)]
Dezgeg[m] has quit [(Ping timeout: 240 seconds)]
jack[m] has quit [(Ping timeout: 240 seconds)]
Nobabs27[m] has quit [(Ping timeout: 240 seconds)]
mankyKitty[m] has quit [(Ping timeout: 246 seconds)]
michiel_l_ has quit [(Ping timeout: 246 seconds)]
ninegua[m] has quit [(Ping timeout: 255 seconds)]
mrdaak[m] has quit [(Ping timeout: 255 seconds)]
qrilka[m] has quit [(Ping timeout: 255 seconds)]
a123123123[m] has quit [(Ping timeout: 255 seconds)]
hedning[m] has quit [(Ping timeout: 255 seconds)]
MawKKe[m] has quit [(Ping timeout: 255 seconds)]
dtz has quit [(Ping timeout: 255 seconds)]
aspiwack[m] has quit [(Ping timeout: 255 seconds)]
copumpkin has quit [(Ping timeout: 255 seconds)]
sziszi[m] has quit [(Ping timeout: 240 seconds)]
trikl[m] has quit [(Ping timeout: 240 seconds)]
dibblego[m] has quit [(Ping timeout: 240 seconds)]
florianjacob has quit [(Ping timeout: 240 seconds)]
noctuid has quit [(Ping timeout: 255 seconds)]
tokudan[m] has quit [(Ping timeout: 255 seconds)]
Oo[m] has quit [(Ping timeout: 255 seconds)]
viaken[m] has quit [(Ping timeout: 255 seconds)]
dpc has quit [(Ping timeout: 255 seconds)]
pierrebeaucamp[m has quit [(Ping timeout: 255 seconds)]
Ralith has quit [(Ping timeout: 255 seconds)]
bendlas has quit [(Ping timeout: 255 seconds)]
mhsjlw[m] has quit [(Ping timeout: 276 seconds)]
Johnny44[m] has quit [(Ping timeout: 276 seconds)]
Vincenzo[m] has quit [(Ping timeout: 240 seconds)]
admin[m]1 has quit [(Ping timeout: 240 seconds)]
ipj[m] has quit [(Ping timeout: 240 seconds)]
kitten[m] has quit [(Ping timeout: 276 seconds)]
abbafei[m] has quit [(Ping timeout: 276 seconds)]
onito[m] has quit [(Ping timeout: 276 seconds)]
pvn[m] has quit [(Ping timeout: 276 seconds)]
randomenduser[m] has quit [(Ping timeout: 276 seconds)]
matrixkrav has quit [(Ping timeout: 276 seconds)]
bdimcheff has quit [(Ping timeout: 276 seconds)]
scott1 has quit [(Ping timeout: 276 seconds)]
freeman42x has quit [(Ping timeout: 276 seconds)]
unlmtd has quit [(Ping timeout: 276 seconds)]
fgaz[m] has quit [(Ping timeout: 276 seconds)]
Phil[m]1 has quit [(Ping timeout: 250 seconds)]
nocent has quit [(Ping timeout: 250 seconds)]
Drakonis[m] has quit [(Ping timeout: 250 seconds)]
TimePath has quit [(Ping timeout: 250 seconds)]
maralorn[m] has quit [(Ping timeout: 248 seconds)]
aniketd[m] has quit [(Ping timeout: 248 seconds)]
berot3[m] has quit [(Ping timeout: 248 seconds)]
grahamc has quit [(Ping timeout: 248 seconds)]
jlle[m] has quit [(Ping timeout: 264 seconds)]
eqyiel[m] has quit [(Ping timeout: 264 seconds)]
EB[m] has quit [(Ping timeout: 264 seconds)]
danielrf has quit [(Ping timeout: 264 seconds)]
Geeky[m] has quit [(Ping timeout: 264 seconds)]
Pneumaticat has quit [(Ping timeout: 264 seconds)]
malteof[m] has quit [(Ping timeout: 264 seconds)]
the_m4ur1[m] has quit [(Ping timeout: 264 seconds)]
edef[m] has quit [(Ping timeout: 264 seconds)]
M-liberdiko has quit [(Ping timeout: 264 seconds)]
michiel_l has joined #nixos
Manish[m] has quit [(Ping timeout: 258 seconds)]
trevorriles[m] has quit [(Ping timeout: 258 seconds)]
rnhmjoj[m] has quit [(Ping timeout: 255 seconds)]
xurxo[m] has quit [(Ping timeout: 255 seconds)]
smbarte2[m] has quit [(Ping timeout: 255 seconds)]
nkpart[m] has quit [(Ping timeout: 255 seconds)]
bachp has quit [(Ping timeout: 255 seconds)]
Yaniel has quit [(Ping timeout: 255 seconds)]
kainospur[m] has quit [(Ping timeout: 276 seconds)]
zoya-kosova[m] has quit [(Ping timeout: 276 seconds)]
spawnthink[m] has quit [(Ping timeout: 276 seconds)]
dejanr has quit [(Ping timeout: 248 seconds)]
bts- has quit [(Ping timeout: 268 seconds)]
codedmart has quit [(Max SendQ exceeded)]
codedmart has joined #nixos
dejanr has joined #nixos
magnetophon has quit [(Remote host closed the connection)]
MP2E has quit [(Remote host closed the connection)]
bennofs has quit [(Ping timeout: 240 seconds)]
bts- has joined #nixos
michiel_l_ has joined #nixos
michiel_l has quit [(Ping timeout: 250 seconds)]
cheng has quit [(Quit: Leaving)]
ipj[m] has joined #nixos
bts- has quit [(Ping timeout: 240 seconds)]
FRidh has quit [(Ping timeout: 240 seconds)]
FRidh has joined #nixos
<neonfuz> so what channel does nixos use when it is updated?
Cheng has joined #nixos
<neonfuz> can that be separately from what channel you use to install software as a user?
07EAABWS0 has joined #nixos
<07EAABWS0> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vF0Eb
<07EAABWS0> nixpkgs/master 442e238 Jonathan C. Otsuka: erlang: 20.0 -> 20.1
<07EAABWS0> nixpkgs/master 06408bd Orivej Desh: Merge pull request #31380 from djgoku/bump-erlang-to-20.1...
07EAABWS0 has left #nixos []
94KAAH1I3 has joined #nixos
<94KAAH1I3> [nixpkgs] orivej closed pull request #31380: erlang: 20.0 -> 20.1 (master...bump-erlang-to-20.1) https://git.io/vFRhf
94KAAH1I3 has left #nixos []
Yaniel has joined #nixos
<Yaniel> it can
__Sander__ has joined #nixos
sigmundv has joined #nixos
mk-fg has joined #nixos
mk-fg has quit [(Changing host)]
mk-fg has joined #nixos
roberth has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] devhell opened pull request #31391: {lib-}mediainfo{-gui},libzen: 0.7.99 -> 17.10, 0.4.35 -> 0.4.37 (master...mediainfo) https://git.io/vF0ug
NixOS_GitHub has left #nixos []
bts- has joined #nixos
ssmike has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
bts- has quit [(Ping timeout: 252 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vF0zu
<NixOS_GitHub> nixpkgs/master 39015db Sander van der Burg: nixui: do not copy node-env.nix on regeneration
NixOS_GitHub has left #nixos []
ylwghst has joined #nixos
FRidh has quit [(Ping timeout: 240 seconds)]
cornu[m] has joined #nixos
unlmtd has joined #nixos
ArdaXi[m] has joined #nixos
jluttine[m] has joined #nixos
hexkey[m] has joined #nixos
nixo[m] has joined #nixos
MawKKe[m] has joined #nixos
Phyra[m] has joined #nixos
sirius[m] has joined #nixos
AlanPearce[m] has joined #nixos
abbafei[m] has joined #nixos
mankyKitty[m] has joined #nixos
berot3[m] has joined #nixos
primeos[m] has joined #nixos
grahamc has joined #nixos
efx[m] has joined #nixos
indefini has joined #nixos
hl has joined #nixos
moredhel1 has joined #nixos
codyopel has joined #nixos
WilliamHamilton has joined #nixos
aspiwack[m] has joined #nixos
peterhoeg has joined #nixos
bachp has joined #nixos
regnat[m] has joined #nixos
spacekitteh[m] has joined #nixos
davidar has joined #nixos
NickHu has joined #nixos
timclassic has joined #nixos
mith[m] has joined #nixos
nh2[m] has joined #nixos
TimePath has joined #nixos
fgaz[m] has joined #nixos
Nobabs27[m] has joined #nixos
3NAABT0O5 has joined #nixos
zoya-kosova[m] has joined #nixos
baconicsynergy[m has joined #nixos
jyp[m] has joined #nixos
Kallegro[m] has joined #nixos
wak-work has joined #nixos
M-liberdiko has joined #nixos
moredread[m] has joined #nixos
peel[m] has joined #nixos
demyan[m] has joined #nixos
sudoreboot[m] has joined #nixos
rycee has joined #nixos
octalsrc[m] has joined #nixos
teh[m] has joined #nixos
olejorgenb[m] has joined #nixos
Exee7uvo[m] has joined #nixos
matrixkrav has joined #nixos
itorres has joined #nixos
AndersonTorres[m has joined #nixos
apocolocyntos[m] has joined #nixos
Elephant454[m] has joined #nixos
trikl[m] has joined #nixos
Li[m] has joined #nixos
copumpkin has joined #nixos
kevincox has joined #nixos
Johnny44[m] has joined #nixos
randomenduser[m] has joined #nixos
reactormonk[m] has joined #nixos
Geeky[m] has joined #nixos
myklam[m] has joined #nixos
lecorpsnoir[m] has joined #nixos
herzmeister[m] has joined #nixos
a123123123[m] has joined #nixos
FRidh[m] has joined #nixos
viaken[m] has joined #nixos
Phil[m]1 has joined #nixos
wmertens[m] has joined #nixos
revoltmedia[m] has joined #nixos
thematter[m] has joined #nixos
florianjacob has joined #nixos
Wysteriary[m] has joined #nixos
sargon[m] has joined #nixos
necronian has joined #nixos
magnap has joined #nixos
dpc has joined #nixos
edef[m] has joined #nixos
tokudan[m] has joined #nixos
jsv[m] has joined #nixos
fearlessKim[m] has joined #nixos
qrilka[m] has joined #nixos
krawiec[m] has joined #nixos
the_m4ur1[m] has joined #nixos
spawnthink[m] has joined #nixos
benkolera has joined #nixos
offlinehacker[m] has joined #nixos
nocent has joined #nixos
aniketd[m] has joined #nixos
aminech[m] has joined #nixos
yochai[m] has joined #nixos
pstn has joined #nixos
bdimcheff has joined #nixos
freeman42x has joined #nixos
Obscurity[m] has joined #nixos
JameySharp[m] has joined #nixos
adisbladis[m] has joined #nixos
dtz has joined #nixos
bhipple[m] has joined #nixos
bennofs[m] has joined #nixos
Dezgeg[m] has joined #nixos
trevorriles[m] has joined #nixos
Oo[m] has joined #nixos
mpuppe[m] has joined #nixos
AdamSlack[m] has joined #nixos
admin[m]1 has joined #nixos
puffnfresh has joined #nixos
WinterFox[m] has joined #nixos
kitten[m] has joined #nixos
dkellner[m] has joined #nixos
seif[m] has joined #nixos
pvn[m] has joined #nixos
ison[m] has joined #nixos
chominist[m] has joined #nixos
Sovereign_Bleak has joined #nixos
sk23[m] has joined #nixos
equalunique[m] has joined #nixos
mrdaak[m] has joined #nixos
onito[m] has joined #nixos
pierrebeaucamp[m has joined #nixos
tommyangelo[m] has joined #nixos
paperdigits[m] has joined #nixos
Pneumaticat has joined #nixos
Leo[m]2 has joined #nixos
thomad[m] has joined #nixos
voobscout[m] has joined #nixos
stites[m] has joined #nixos
dash has joined #nixos
bendlas has joined #nixos
noctuid has joined #nixos
StuK[m] has joined #nixos
wizzup[m] has joined #nixos
Vincenzo[m] has joined #nixos
DIzFer[m] has joined #nixos
Drakonis[m] has joined #nixos
mtncoder[m] has joined #nixos
malteof[m] has joined #nixos
musicmatze[m] has joined #nixos
taohansen has joined #nixos
dibblego[m] has joined #nixos
scott1 has joined #nixos
M-berdario has joined #nixos
Ralith has joined #nixos
sphalerite has joined #nixos
rnhmjoj[m] has joined #nixos
zigschots20[m] has joined #nixos
EB[m] has joined #nixos
ycy[m] has joined #nixos
Barnabas[m] has joined #nixos
etcinit[m] has joined #nixos
Khorne[m] has joined #nixos
icetan has joined #nixos
eqyiel[m] has joined #nixos
xurxo[m] has joined #nixos
M-fishy has joined #nixos
corngood has joined #nixos
guest521[m] has joined #nixos
mhsjlw[m] has joined #nixos
sziszi[m] has joined #nixos
* tommyangelo[m] sent a long message: tommyangelo[m]_2017-11-08_10:28:55.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/hYtdQAsglRmiKxZHlvobKYiW>
AllanDaemon[m] has joined #nixos
ninegua[m] has joined #nixos
tobim[m] has joined #nixos
AsherGottlieb[m] has joined #nixos
jlle[m] has joined #nixos
akavel[m] has joined #nixos
retrry[m] has joined #nixos
gudea[m] has joined #nixos
Deleh[m] has joined #nixos
AmineChikhaoui[m has joined #nixos
hedning[m] has joined #nixos
EuAndreh[m] has joined #nixos
dalaing has joined #nixos
jack[m]1 has joined #nixos
r3mfKm[m] has joined #nixos
dylanjust[m] has joined #nixos
kainospur[m] has joined #nixos
smbarte2[m] has joined #nixos
Singularity[m] has joined #nixos
Manish[m] has joined #nixos
danielrf has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<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...
damke has quit [(Ping timeout: 240 seconds)]
<kuznero> sphalerite: Perhaps " boot.kernelParams = [ "nomodeset" "video=vesa:off" "vga=normal" ]; boot.vesa = false;"
damke has joined #nixos
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)]
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
ixxie has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
zzamboni has quit [(Ping timeout: 268 seconds)]
zzamboni has joined #nixos
FRidh has joined #nixos
Guest21796 has joined #nixos
sigmundv__ has joined #nixos
joehh has joined #nixos
<joehh> hello, how do I edit /etc/nix.conf (or the values in it)
<joehh> previously, it was just a file I could edit
sigmundv has quit [(Ping timeout: 264 seconds)]
ylwghst has joined #nixos
<joehh> but I've just done a reinstall of 17.09 and it seems to be a file linked into the nix store
m0rphism has quit [(Quit: WeeChat 1.9.1)]
asuryawa_ has joined #nixos
c0ffee152 has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
asuryawa_ has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
<LnL> on nixos?
ylwghst_ has joined #nixos
pxc has joined #nixos
<sphalerite> joehh: yeah you should set the options in it through configuration.nix
<LnL> look for the nix.* options in the configuration.nix manpage
<joehh> cool - thanks for that
orivej has joined #nixos
ylwghst_ has quit [(Client Quit)]
ylwghst has quit [(Quit: Lost terminal)]
bennofs has joined #nixos
hellrazo1 has quit [(Ping timeout: 240 seconds)]
pxc has quit [(Ping timeout: 268 seconds)]
hellrazo1 has joined #nixos
Cheng has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #31391: {lib-}mediainfo{-gui},libzen: 0.7.99 -> 17.10, 0.4.35 -> 0.4.37 (master...mediainfo) https://git.io/vF0ug
NixOS_GitHub has left #nixos []
ertes-w has joined #nixos
<fearlessKim[m]> I am curious as how nix identifies infinite recursion; Iam looking for a pattern in the trace https://gist.github.com/28af09c7107283dec82a7b35fdc9ecb7 but fails to do so
periklis has quit [(Ping timeout: 268 seconds)]
a6a3uh has joined #nixos
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.
acarrico has joined #nixos
Arcaelyx has joined #nixos
<garbas> kuznero: adisbladis: did you watch nixcon talks? there is a better way to "pin" nixpkgs ... if you use 1.12 then just use builtins.fetchTarball otherwise copy this over https://nixos.wiki/wiki/How_to_fetch_Nixpkgs_with_an_empty_NIX_PATH
tazjin has quit [()]
<Profpatsch> Imo nix-env should not even be used.
<Profpatsch> And it certainly doesn’t help to understand how nix works.
<kuznero> garbas: thanks!
<Profpatsch> 52 mentions of nix-env in the nix-pills, only 38 of nix-build
<Profpatsch> 32 of nix-store, 16 of nix-instantiate.
c0ffee152 has quit [(Quit: Lost terminal)]
<ixxie> Profpatsch: lets remember it was written years ago
zzamboni has quit [(Quit: Leaving.)]
pie_ has quit [(Ping timeout: 248 seconds)]
<Profpatsch> yeah.
zzamboni has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
nslqqq has quit [(Ping timeout: 240 seconds)]
<ixxie> Profpatsch: on Saturday the 25th of November will have an online hackathon on the wiki
<ixxie> Profpatsch: perhaps you could contribute an introductory tutorial for Nix :)
<Profpatsch> ixxie: Consolidation would probably help a lot.
damke has quit [(Ping timeout: 240 seconds)]
hellrazo1 has quit [(Ping timeout: 268 seconds)]
hamishmack has quit [(Ping timeout: 248 seconds)]
c0bw3b has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
hellrazo1 has joined #nixos
hamishmack has joined #nixos
damke has joined #nixos
a6a3uh has quit [(Quit: Bye)]
shymega has quit [(Quit: So long, and thanks for all the talking doors.)]
p4cman has quit [(Quit: Connection closed for inactivity)]
hamishmack_ has joined #nixos
shymega has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/5c06e9e385 (from 89 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
hamishmack has quit [(Ping timeout: 248 seconds)]
hamishmack_ is now known as hamishmack
a6a3uh has joined #nixos
<ixxie> Profpatsch: consolidation of?
shymega has quit [(Quit: Peace out.)]
<Profpatsch> ixxie: Different existing tutorials.
shymega has joined #nixos
nslqqq has joined #nixos
<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
ma27 has quit [(Ping timeout: 250 seconds)]
<c0bw3b> take a look at machines from https://puri.sm/products/ if you live in NA and https://slimbook.es/en/ if in Europe
<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
<Dezgeg> if unpack isn't an option, maybe https://packages.debian.org/sid/strip-nondeterminism does it
betaboon has joined #nixos
shymega has quit [(Quit: Peace out.)]
<FRidh> I now unpack it to $out. For setting the date I could use `find $out -exec -d <date>` . Maybe use ensureNewerSourcesHook?
<Dezgeg> well nix will normalize the timestamps anyway from $out
<FRidh> also with fixed-output drv?
<Dezgeg> yes
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aszlig pushed 1 new commit to master: https://git.io/vFEfY
<NixOS_GitHub> nixpkgs/master 845aae9 aszlig: clisp: Add patch to remove reference to cfree...
NixOS_GitHub has left #nixos []
shymega has joined #nixos
<FRidh> ok
<FRidh> would be convenient to have an unpack option for fetchurl then, just as is done for builtins.fetchTarball
<Dezgeg> that's called 'fetchzip'
<FRidh> :)
a6a3uh has quit [(Quit: Bye)]
ssmike has joined #nixos
ixxie has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
ma27 has quit [(Ping timeout: 252 seconds)]
ma27 has joined #nixos
<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
<stph> yeah, great
<michaelpj> useful for temporarily using things
ryanartecona has joined #nixos
bennofs has quit [(Ping timeout: 258 seconds)]
Tucky has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #31333: Unextracted all cabal hashes (master...unextracted-all-cabal-hashes) https://git.io/vF8hM
NixOS_GitHub has left #nixos []
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c4dbbbd890 (from 89 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to staging: https://git.io/vFEtZ
<NixOS_GitHub> nixpkgs/staging 109de2b Joerg Thalheim: iana-etc: 20170512 -> 20171106
NixOS_GitHub has left #nixos []
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
<LnL> not the greatest examples tho
Sonarpulse has joined #nixos
Sonarpulse has quit [(Remote host closed the connection)]
Sonarpulse has joined #nixos
Guest29637 has quit [(Changing host)]
Guest29637 has joined #nixos
Guest29637 is now known as Vorpal
<infinisil> Yeah I'm doing the vam thing
<Profpatsch> Is it possible to use chroot inside nix builds?
<infinisil> LnL: How do I verify it worked?
<clever> infinisil: this gets me completion for any open file (via :tabe), i havent figured out how to make it auto-inspect headers
<clever> infinisil: it just works after typing ~3 characters of a word you have used elsewhere
<LnL> I also have, let g:ycm_seed_identifiers_with_syntax = 1 so if you type a work a bunch of times in it'll autocomplete
<infinisil> yeah, that's what I want though, because I'll be working with C++ and opengl
<infinisil> autocompletion is working just fine for words in the opened files
<clever> LnL: ive run into an anoying problem where it is trying to complete things that are just plain wrong
<LnL> clever: my vim-nix is the only plugin you use? :o
<clever> LnL: i had to comment the others out because they depended on clang and one machine was low on space
<clever> LnL: my main machines use all of those
<symphorien> infinisil: for c++ completion I have this hack http://xelpaste.net/QAEkAG
<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.
timokau has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<orivej> infinisil: re. escaping, this was reported in https://github.com/NixOS/nix/issues/1416 . In fact Nix can escape '${, but it was not documented well. I've updated the manual in https://github.com/NixOS/nix/pull/1633 , but it did not reach the web site.
mithsv has quit [(Read error: Connection reset by peer)]
Sonarpulse has quit [(Remote host closed the connection)]
mithsv has joined #nixos
<orivej> FRidh: re. git-archive, it has limitations. It does not work over https, it is not supported by GitHub (https://www.gilesorr.com/blog/git-archive-github.html)
Sonarpulse has joined #nixos
tgunb has quit [(Ping timeout: 260 seconds)]
Itkovian has joined #nixos
joncfoo__ has joined #nixos
tmaekawa has joined #nixos
fuzzy_id has joined #nixos
<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.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/292f60504c (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
kuznero has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<__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:
<romildo> unpacking source archive /tmp/nix-build-source.drv-2/pygmentex.zip
<romildo> suspicious ownership or permission on ‘/nix/store/f7y42xwy0h04xvi2rncnycpd3m7kiv0j-source’; rejecting this build output
<romildo> How to fix that?
bennofs has quit [(Ping timeout: 250 seconds)]
<clever> romildo: what permissions does the file have after the build finishes?
<romildo> clever, the command ls shows me:
<romildo> $ ls -l /nix/store/ | grep 'f7y42xwy0h04xvi2rncnycpd3m7kiv0j-source$'
<romildo> drwxrwxr-x 2 nixbld1 nixbld 4096 Aug 12 2014 f7y42xwy0h04xvi2rncnycpd3m7kiv0j-source
mizu_no__ has joined #nixos
erictapen has joined #nixos
<manveru> damn lshw has a -json output bug for over 4 years now :(
<srhb> Anyone got a better idea than sed for runtime substitutions like this? https://github.com/NixOS/nixpkgs/pull/31358#pullrequestreview-74908581
<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
<NixOS_GitHub> nixpkgs/master f1992a2 Jörg Thalheim: Merge pull request #31389 from xvapx/meliae...
NixOS_GitHub has left #nixos []
bts- has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vFE2a
<NixOS_GitHub> nixpkgs/master e9965b5 Michael Raskin: julia_06: fix libgit2 tests by updating the literal strings searched in the error messages
NixOS_GitHub has left #nixos []
c0bw3b has joined #nixos
__monty__ has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 5 new commits to master: https://git.io/vFEaJ
<NixOS_GitHub> nixpkgs/master 78d702f Ryan Mulligan: nixos/mattermost: 4.1.0 -> 4.2.0
<NixOS_GitHub> nixpkgs/master ec2f834 Jörg Thalheim: mattermost: build from source...
<NixOS_GitHub> nixpkgs/master a140a49 Ryan Mulligan: mattermost: 4.2.0 -> 4.3.0
NixOS_GitHub has left #nixos []
jensens has quit [(Ping timeout: 248 seconds)]
__Sander__ has quit [(Quit: Konversation terminated!)]
<ldlework> Could Nixlang be considered a kind of "Modeling Lanugage" ? https://en.wikipedia.org/wiki/Modeling_language
bts- has quit [(Ping timeout: 240 seconds)]
<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 ?
<srhb> betaboon: Let me check...
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
a6a3uh has joined #nixos
bts- has joined #nixos
<srhb> betaboon: systemd.service.myThing = { wantedBy = [ "multi-user.target" ]; serviceConfig = { ExecStart = "${myPackage}/bin/start"; Type = "simple"; User = "nobody"; }; }
jb55 has joined #nixos
<srhb> betaboon: That's the rough idea anyway.
<betaboon> srhb: i do know how to implement systemd services etc. I'm just lost on the clojure side.
<srhb> Oh. So how to package a clojure program?
<betaboon> or to specifcy: package the clojure program.
<betaboon> yeah. sorry i was unclear on that earlier :(
<srhb> No problem! Unfortunately, I know nothing about that, sorry. :/
<betaboon> damn XD but thanks for taking the time
radvendii has joined #nixos
srdqty has quit [(Quit: WeeChat 1.9.1)]
bts- has quit [(Ping timeout: 240 seconds)]
pie_ has joined #nixos
<sphalerite> srhb: I feel silly for only just now coming up with this, but…
<srhb> sphalerite: Uh oh... :P
* sphalerite sent a long message: sphalerite_2017-11-08_18:09:23.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/wamduFMwUJKezQxqAATUaitR>
<sphalerite> bash is perfectly capable of doing the substitution itself!
<srhb> sphalerite: ...
ryanartecona has quit [(Quit: ryanartecona)]
<srhb> Sometimes, you know... Just sometimes.
<clever> sphalerite: have you seen the implementation of substituteInPlace?
<sphalerite> clever: yeah
ssmike has joined #nixos
<srhb> sphalerite: I'll get that fixed up right away.. Mumblemumble :-P
<clever> sphalerite: oh, and almost anything that accepts yaml, also accepts json
<clever> sphalerite: i use that to cheat, builtins.toFile (builtins.toJSON
goibhniu has quit [(Ping timeout: 248 seconds)]
<srhb> clever: builtins.toJSON will throw stuff into the store, will it not?
<clever> srhb: it just returns a string, toFile is what puts it into the store
<srhb> Sometimes I just don't understand how Nix works I guess. :-P
<clever> doing it at runtime is where you would have to fall back to bash
<sphalerite> clever: but the stuff we're using here can't go in the score
<srhb> clever: This is at runtime.
<srhb> Secrets and stuff.
teej has joined #nixos
<clever> yeah
<sphalerite> hence we need to do it at runtime :)
* srhb is back to understanding Nix again. Slightly.
<srhb> :-P
<srhb> sphalerite: Uh oh. Won't the EOF marker now be our escaping problem?
bts- has joined #nixos
<clever> srhb: i believe bash lets you make that marker as long&complex as you want
<srhb> It does, sure.
<sphalerite> srhb: no, since it needs to be at the bginnign of the line
<srhb> I guess it's more of a theoretical problem.
<srhb> Ah
<srhb> Great!
<clever> make it hunter2, and you will detect very bad passwords, because the script breaks :P
* srhb snickers
<clever> sphalerite: ah, didnt know of that point
jgertm has quit [(Ping timeout: 248 seconds)]
<ee1943> any way to get around the glibc cfree compile error?
<srhb> sphalerite: That's.. So much nicer :P
<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
<infinisil> isn't json a full subset of yaml?
<srhb> infinisil: I think so.
NixOS_GitHub has joined #nixos
<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)]
reinzelmann has joined #nixos
bgamari has quit [(Quit: ZNC - http://znc.in)]
a6a3uh has joined #nixos
bgamari has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer closed pull request #29107: Update vdirsyncer (+ one dep), khard (master...update-pim) https://git.io/v5oPl
NixOS_GitHub has left #nixos []
bts- has joined #nixos
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
nixer has joined #nixos
bts- has quit [(Ping timeout: 250 seconds)]
<nixer> Is this expected beahviour: nix-shell -p "pks_version_x" && nix-shell -p "pkg_version_y" produces pkgs_version_x ?
otti has quit [(Ping timeout: 248 seconds)]
otti has joined #nixos
<srhb> nixer: Until you exit the shell, presumably.
<ldlework> What's a package you might actually care is atomically upgraded?
<nixer> srhb: Wouldn't you expect pkg_version_x?
LangeOortjes has joined #nixos
ryantrinkle has quit [(Ping timeout: 248 seconds)]
<srhb> nixer: In the first shell, yes
<nixer> srhb: Sorry pkg_version_y, which is called later.
<srhb> nixer: That only happens when the second shell exits.
<srhb> Er
<srhb> The first one
<jtojnar> do fixupOutputHooks run before or after postFixup?
<nixer> srhb: Oh so basically you can't have nested nix-shells with conflicting versions of packages? Do you know where this code exists?
Sonarpulse has quit [(Ping timeout: 258 seconds)]
<srhb> nixer: Those aren't nested at all.
Sonarpulse has joined #nixos
<srhb> nixer: nix-shell && nix-shell is quite different from nix-shell --run "nix-shell ..."
ryantrinkle has joined #nixos
<nixer> srhb: This still produces the older version: nix-shell -p terraform_0_9 --run "nix-shell -p terraform_0_10"
<jtojnar> thanks, clever
p4cman has quit [(Quit: Connection closed for inactivity)]
<srhb> nixer: You probably shouldn't do this, but try throwing --pure at all the inner shells.
<srhb> nixer: I don't think nesting seems very sensible though, so ymmv :)
<nixer> srhb: Yeah, I know adding pure works. Thanks.
<nliadm> how can I get the current revision of nixpkgs-unstable I have?
bts- has joined #nixos
ryanartecona has joined #nixos
<srhb> nixer: I think what's happening is that the combination of the PATH variable will inevitably lead to the wrong order (as well as duplicates)
<srhb> nixer: You can try echo $PATH to see it :)
<srhb> Well, wrong for your expectations at least.
taaperotassu has joined #nixos
ryanarte_ has joined #nixos
<woffs> nliadm: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.nixpkgsVersion' -I nixpkgs=$HOME/.nix-defexpr/channels/nixos-unstable
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
<electrocat> the mesa package does not include the device specific drivers (like radeonsi.so) how am i supposed to use opengl based software?
<srhb> nliadm: nix-shell -p nix-info --run nix-info
<srhb> I think :)
ryanartecona has quit [(Ping timeout: 268 seconds)]
<clever> electrocat: nixos configures that automatically under /run/opengl-driver
a6a3uh has quit [(Quit: Bye)]
<electrocat> clever: not using nixos, just nix
<electrocat> should've mentioned that, sorry
<electrocat> clever: thanks
<nixer> srhb: Do you know where the nix-shell code is, I think it should always pre-pend PATH, which is not doing right now?
<srhb> nixer: The source? Somewhere in the nix repo I imagine.
nh2 has joined #nixos
romildo has quit [(Quit: Leaving)]
tgunb has quit [(Ping timeout: 260 seconds)]
p4cman has joined #nixos
<clever> nixer: line 407 causes the sub-shell to source setup.sh, which will handle setting up PATH the same as in normal builds
<nixer> clever: Thanks, would have never found that.
<clever> its a bit complex, because nix-shell is just a copy of nix-build
ma27 has joined #nixos
<clever> and it changes behavior based on argv[0]
bts- has quit [(Ping timeout: 268 seconds)]
timokau has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
Ross has quit [(Ping timeout: 255 seconds)]
Ross has joined #nixos
asuryawanshi has quit [(Read error: Connection reset by peer)]
ma27 has quit [(Ping timeout: 240 seconds)]
asuryawanshi has joined #nixos
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
Lisanna has quit [(Ping timeout: 260 seconds)]
takle has quit [(Remote host closed the connection)]
bts- has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #31405: pygmentex: update src (master...fix.pygmentex) https://git.io/vFEy8
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vFEyr
<NixOS_GitHub> nixpkgs/master 2b409cc Nicolò Balzarotti: reaver-wps-t6x: 1.5.2 -> 1.6.3
<NixOS_GitHub> nixpkgs/master 27831cb Orivej Desh: Merge pull request #31397 from nico202/reaver-upgrade...
NixOS_GitHub has left #nixos []
bts- has quit [(Ping timeout: 260 seconds)]
davidak has joined #nixos
timokau has joined #nixos
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
taaperotassu has quit [(Quit: WeeChat 1.9.1)]
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 4 new commits to release-17.09: https://git.io/vFESd
<NixOS_GitHub> nixpkgs/release-17.09 f7721ff Tim Steinbach: linux: 4.4.96 -> 4.4.97...
<NixOS_GitHub> nixpkgs/release-17.09 7e14870 Tim Steinbach: linux: 4.9.60 -> 4.9.61...
<NixOS_GitHub> nixpkgs/release-17.09 ea8349c Tim Steinbach: linux: 4.13.11 -> 4.13.12...
NixOS_GitHub has left #nixos []
jgertm has quit [(Ping timeout: 240 seconds)]
hamishmack has quit [(Quit: hamishmack)]
hamishmack has joined #nixos
hamishmack has quit [(Client Quit)]
taaperotassu has joined #nixos
bts- has joined #nixos
<c0bw3b> BTW is someone using linux-copperhead kernel? on a server running nixos-small for example
<c0bw3b> i don't know if the patchset if more or less 'intrusive' than the former grsec patchset how many problems you should expect when using it
acowley_away is now known as acowley
hellrazo1 has quit [(Ping timeout: 268 seconds)]
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
hellrazo1 has joined #nixos
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to staging: https://git.io/vFEQY
<NixOS_GitHub> nixpkgs/staging ee0c629 Herwig Hochleitner: webkitgtk: 2.18.1 -> 2.18.2
NixOS_GitHub has left #nixos []
shiver has joined #nixos
hellrazo1 has quit [(Ping timeout: 240 seconds)]
jb55 has quit [(Ping timeout: 248 seconds)]
hellrazo1 has joined #nixos
jushur has quit [(Quit: The Borg joined forces with Skynet, Resistance is futile! Uploading has begun!)]
jgertm has joined #nixos
MP2E has joined #nixos
orivej has quit [(Ping timeout: 248 seconds)]
Olgierd has quit [(Quit: ide migrowac na dedyka)]
takle has quit [(Remote host closed the connection)]
jsgrant_ has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas opened pull request #31407: webkitgtk[release-17.09]: 2.16.6 -> 2.18.2 (staging-17.09...staging-17.09) https://git.io/vFE7p
NixOS_GitHub has left #nixos []
bts- has quit [(Ping timeout: 264 seconds)]
snikkers has joined #nixos
bts- has joined #nixos
<manveru> is there some way to setup a virtual wifi device inside qemu tests?
ylwghst-nix has joined #nixos
asuryawa_ has joined #nixos
Guest21796 has quit [(Ping timeout: 240 seconds)]
jgertm has quit [(Ping timeout: 248 seconds)]
<manveru> guess not...
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<manveru> would be so cool if i could automatically test nixos-installer wifi setup
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aszlig pushed 1 new commit to master: https://git.io/vFEdC
<NixOS_GitHub> nixpkgs/master 33b0b5e aszlig: anki: Fix hash of the source tarball...
NixOS_GitHub has left #nixos []
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
asuryawa_ has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jbgi opened pull request #31408: Atlassian modules fixes (master...atlassian-modules-fixes) https://git.io/vFEdX
NixOS_GitHub has left #nixos []
<makefu> /
simukis has quit [(Ping timeout: 240 seconds)]
ryanarte_ has quit [(Quit: ryanarte_)]
<manveru> been there, seen that :|
<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
<NixOS_GitHub> nixpkgs/master 4d2c2d8 Joerg Thalheim: openafs: add patch for glibc 2.26
NixOS_GitHub has left #nixos []
ma27 has quit [(Ping timeout: 250 seconds)]
jsgrant has joined #nixos
<clever> manveru: sounds like a perfect thing to integrate into the nixos test framework
ma27 has joined #nixos
<manveru> jup
<manveru> not sure if i'm smart enough yet, but i'll give it a try
chessai has quit [(Ping timeout: 260 seconds)]
mizu_no__ has joined #nixos
<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
<manveru> ah, ok
hamishmack has quit [(Quit: hamishmack)]
mithsv has quit [(Quit: mithsv)]
erictapen has joined #nixos
mithsv has joined #nixos
mithsv has quit [(Client Quit)]
mithsv has joined #nixos
timokau has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
anton__ has quit [(Ping timeout: 268 seconds)]
tmaekawa has quit [(Quit: tmaekawa)]
<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?
<Franciman> is there some man?
<infinisil> Franciman: `man configuration.nix` or
<Franciman> thank you
nix-gsc-io`bot has joined #nixos
jgertm has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/5c06e9e385 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
Ivanych has quit [(Ping timeout: 240 seconds)]
pie_ has joined #nixos
hamishmack has joined #nixos
Ross has quit [(Ping timeout: 240 seconds)]
mithsv has quit [(Quit: mithsv)]
jb55 has joined #nixos
mithsv has joined #nixos
LangeOortjes has quit [(Quit: Leaving)]
Ross has joined #nixos
mithsv has quit [(Client Quit)]
mithsv has joined #nixos
asuryawanshi has joined #nixos
hellrazo1 has quit [(Ping timeout: 240 seconds)]
mekeor has joined #nixos
timokau has joined #nixos
hellrazo1 has joined #nixos
nh2 has quit [(Quit: Leaving.)]
nh2 has joined #nixos
<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 :/
Judson1 has joined #nixos
Judson1 is now known as Guest18316
steve_ has joined #nixos
<bigvalen> Given this is the first machine I've ever installed NixOS on, you are probably going to spot ten things I'm doing wrong there...
<clever> bigvalen: https://nixos.org/nixos/options.html#docker.autoprune
<clever> bigvalen: autoprune should be a set, with 3 keys, not a boolean
<clever> value is a boolean while a set was expected
<bigvalen> Gah, of course.
<bigvalen> OK, how did you tell it was looking at docker there ?
<clever> bigvalen: line 23 to 249, use '' instead of ", and you can indent the entire string to make it pretty
<clever> while evaluating the attribute ‘autoPrune.flags
<bigvalen> Ah, right.
<clever> while evaluating the option `systemd.services.docker-prune.script
<bigvalen> I just needed to look further back up the stack trace.
<clever> yep
<clever> its a bit cryptic to read them
<clever> while evaluating the option `systemd.services.docker-prune.serviceConfig':
bts- has quit [(Ping timeout: 240 seconds)]
<clever> bigvalen: line 136, another place for ''
<clever> and 115
<manveru> clever: yeah... i've got no clue how to make this work :(
<clever> that also allows 117 to not have to escape them
<bigvalen> Cool. I didn't know about ''
<clever> manveru: can you gist what you have so far?
<manveru> i'm trying to make the hwsim tests of hostap work atm
<clever> bigvalen: '' based strings will strip the common indent off of every line
steve_ has quit [(Ping timeout: 260 seconds)]
<manveru> got almost all dependencies (except the python ones, no clue how to add those)
<bigvalen> Right. Now to get dhcp & dns up & running. I'm getting annoyed that my home router doesn't let me set domainnames.
<clever> manveru: should be able to omit binutils on line 9
<manveru> i think it's needed for bfd
<manveru> or is that part of busybox?
<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
<manveru> if i remember right
<clever> manveru: yeah, let me find it...
<manveru> it's used for NixOS AMIs built by hydra
<manveru> but should be easy to build your own
<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'
<bigvalen> What does cardano-nodes mean, in the above ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vFuvQ
<NixOS_GitHub> nixpkgs/master 1f5c283 Sergey Alexandrov: mpdas: init at 0.4.4 (#31398)...
NixOS_GitHub has left #nixos []
<clever> bigvalen: thats a custom nixos option defined in another file in that repo
bts- has joined #nixos
<bigvalen> Oh, that's the packages installed on top of the AMI ?
<clever> bigvalen: an entire service, pre-installed and configured
ryanartecona has joined #nixos
<clever> so systemd will just run it on the first boot
<bigvalen> Niice.
<manveru> guess i'll skip wifi insanity in the installer and just let people deal with networkmanager...
<clever> bigvalen: there is also nixops, which can take a pre-made AMI of nixos, and upload the changes you need
mizu_no__ has joined #nixos
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
mithsv has quit [(Client Quit)]
mithsv has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fuzzy-id opened pull request #31410: Fix cassandra (master...fix-cassandra) https://git.io/vFuJG
NixOS_GitHub has left #nixos []
hamishmack has quit [(Quit: hamishmack)]
<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
ssmike has quit [(Ping timeout: 240 seconds)]
<manveru> obadz: i tried making something similar to http://people.ubuntu.com/~jr/ubiquity-nm.png
bts- has quit [(Ping timeout: 240 seconds)]
jsgrant has quit [(Remote host closed the connection)]
<obadz> ah
<obadz> cool
<obadz> xterm -e nmtui? :)
<manveru> yeah
<obadz> (low tech)
<manveru> well, we
<manveru> have X
<obadz> hence xtern :-D
digitus has quit [(Quit: digitus)]
<manveru> the problem is that the installer should be usable via the browser :)
ryantrinkle has quit [(Ping timeout: 246 seconds)]
<clever> manveru: thats another idea i had
cement has quit [(Ping timeout: 268 seconds)]
<clever> manveru: make a daemon with an http UI, that does the full install
<manveru> but at that point you already have networking
<manveru> so... i guess the point is moot
<manveru> clever: that's what i'm working on
<clever> depends on if your loading it via localhost or over the lan
<manveru> yeah
ryantrinkle has joined #nixos
<manveru> the idea was that it should be easy to do headless installs without ssh
<clever> manveru: have you seen the UI's ive done?
<manveru> nope
<clever> manveru: ive got 3 different ways to automate the install
<clever> manveru: this is the old UI, from before i went http: https://www.youtube.com/watch?v=ETVJW59bL2s
<clever> that video was recorded by hydra, in a fully automated fasion
<manveru> nice
jacob has quit [(Quit: Lost terminal)]
<clever> this is the html GUI for browsing the docs and creating a configuration.nix
<manveru> mine looks like this atm
Itkovian has joined #nixos
bts- has joined #nixos
<manveru> just trying to make it as dumb as possible
<clever> manveru: you dont have to set the home= key if your using isNormalUser=true;
<clever> and i have a 3rd option, far dumber, no UI at all
<manveru> good point :)
<clever> manveru: this module will install a bash script called justdoit, and nixos options configure what that script does
<clever> so you can then include that in the installer image, to pre-configure it
nixer has quit [(Ping timeout: 260 seconds)]
<clever> so you can just ssh in (or even make a systemd unit) to just run it
<manveru> that looks awesome
<manveru> i used the nixos-install tests as basis
<clever> i have also written 3 different ways to boot the installer, depending on your needs
<manveru> :D
<clever> this method will generate a .tar file, scp it to ANY linux machine (nix not required), ssh in, unpack to /, and run /kexec_nixos
<clever> within 2 minutes, it will be running nixos from a ramdisk
<clever> now it lives in /boot/ and there is a grub option to pick it
<clever> now you can network boot it from any machine on the LAN
Sonarpulse has quit [(Ping timeout: 250 seconds)]
<clever> in all 3 cases, you could include justdoit, to nuke the hdd and reinstall in minutes
ryantrinkle has quit [(Ping timeout: 268 seconds)]
<manveru> all that's missing is making it usable by my wife ;)
<clever> i just had an idea....
hiratara has quit [(Ping timeout: 250 seconds)]
<clever> what was it called....
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vFuTn
<NixOS_GitHub> nixpkgs/master df94f7b José Romildo Malaquias: pygmentex: update src
<NixOS_GitHub> nixpkgs/master 709c2bf Jörg Thalheim: Merge pull request #31405 from romildo/fix.pygmentex...
NixOS_GitHub has left #nixos []
<manveru> hehe
<clever> manveru: what if we made a nix editor, with this kind of gui, lol
<sphalerite> clever: ANY Linux machine*
<sphalerite> *that has kexec
<manveru> i taught my son scratch
<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
mithsv has quit [(Client Quit)]
mithsv has joined #nixos
<manveru> code is at https://github.com/manveru/nixos-installer if you wanna take a look
<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
bts- has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #31402: glibc 2.26 fixes (master...glibc-226-fixes) https://git.io/vFEV6
NixOS_GitHub has left #nixos []
kuznero has joined #nixos
<kuznero> hi all
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel pushed 16 new commits to master: https://git.io/vFuIn
<NixOS_GitHub> nixpkgs/master 4866f16 Thomas Tuegel: Revert "Merge pull request #30255 from bkchr/qt_5_9_2"...
<NixOS_GitHub> nixpkgs/master fe0ab94 Thomas Tuegel: qt5: factor out common definitions and remove symlink farm...
<NixOS_GitHub> nixpkgs/master 1f5b6a2 Thomas Tuegel: kdenlive: missing dependencies
NixOS_GitHub has left #nixos []
<clever> manveru: this one did it all in QT and libparted
<manveru> yeah, i don't really speak C++
<kuznero> just upgraded NixOS-17.09 with rebuild switch, and my WiFi stopped working... what happened?
<mekeor> hello. i want to install NixOS with full-disk encryption on a BIOS computer. do i need a separate boot-partition? i tried this http://sprunge.us/BWeD but i get this error http://sprunge.us/dfVK which "occurs when the device that grub installs to isn't mounted" (https://github.com/NixOS/nixpkgs/issues/11521). so, do i need a separate boot-partition?
<clever> mekeor: you will need a seperate cleartext /boot partition
<mog> kuznero, networkManager might have restarted
<kuznero> mog: network manger is disabled according to my config
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<clever> kuznero: then check the status of wpa_supplicant
mog has left #nixos ["Leaving"]
mog has joined #nixos
bts- has quit [(Ping timeout: 240 seconds)]
nh2 has quit [(Ping timeout: 248 seconds)]
<kuznero> clever: wpa_supplicant is not installed. and this configuration worked before
<clever> kuznero: how did the config get wifi then?
<kuznero> don't know
<clever> kuznero: can you do "nixos-rebuild --rollback" and then upload the configuration.nix to gist?
asuryawanshi has joined #nixos
<mekeor> clever: why? even if my computer doesn't use (U)EFI?
<kuznero> clever: that is a fresh install without previous generation. I will try to reinstall again with network manager for now
timokau has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<clever> mekeor: i still prefer doing legacy booting on GPT
joehh has quit [(Ping timeout: 248 seconds)]
<clever> mekeor: what did you set boot.loader.grub.device to?
<mekeor> clever: /dev/sda
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<clever> mekeor: did you set boot.loader.grub.enableCryptodisk ?
<clever> mekeor: that would give grub support to open an encrypted /boot, but i dont know if it can handle an ext4 on lvm on luks...
<mekeor> yeah, i set it
<clever> its simpler to have a cleartext /boot, then to try to even encrypt /boot
bts- has joined #nixos
<clever> for legacy boot, /boot can also be ext4
vcunat has quit [(Ping timeout: 264 seconds)]
p4cman has quit [(Quit: Connection closed for inactivity)]
bts- has quit [(Ping timeout: 258 seconds)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hiratara has quit [(Quit: ZNC - http://znc.in)]
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
hiratara has joined #nixos
fragamus has joined #nixos
bts- has joined #nixos
__monty__ has joined #nixos
Franciman has quit [(Quit: Leaving)]
<kuznero> clever: simply enabling network manager worked. thanks
<__monty__> rycee: Got my dns issues resolved. Now "curl http://nix-cache.local/nix-cache-info" works. However nix-env still can't use the cache as seen here: http://ix.io/C69
Guest10 has joined #nixos
c0ffee152 has joined #nixos
Guest10 has quit [(Remote host closed the connection)]
Guest10 has joined #nixos
<rycee> Hrm. `man curl` says that error 6 means "Couldn't resolve host. The given remote host was not resolved."
<rycee> But a manual curl from the same host succeeds?
<clever> rycee: the env variables that allow .local to work with mdns are being cleared in the sandbox
<clever> rycee: using a "real" domain in the dns is going to work better, something that dig can resolve
<rycee> Right, yeah that makes sense.
<rycee> The local hostname that I use for the cache can be looked up over DNS>
<rycee> So I haven't run into this problem.
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
fendor has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/27831cbd86 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
mithsv has quit [(Client Quit)]
<__monty__> Is there a way around this? Not really looking to expose the caching machine to the internet (more than it already is).
<clever> __monty__: i have a .localnet zone in my router's bind instance, which points to private IP's in my LAN
<__monty__> Static ips?
c0bw3b has left #nixos []
<clever> yeah
<clever> static dhcp
<rycee> clever: I'm not familiar with these mdns environment variables. Would it make sense to have them in `impureEnvVars`?
bennofs has joined #nixos
<clever> rycee: it would, but you will need to patch every fixed-output helper in nixpks
<rycee> (for the fetch* derivations)
fendor has quit [(Ping timeout: 248 seconds)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<rycee> clever: Interesting :-)
<rycee> Would something like nscd be a possible workaround?
<rycee> Presumably nscd would be able to do mdns lookups since its running outside the sandbox…
<clever> but then you need access to the nscd unix socket
<clever> this is how i manage the bind zones and the static dhcp
ylwghst-nix has joined #nixos
<__monty__> My router doesn't support static dhcp so the container running the cache gets a dynamic ip whenever it's booted.
goibhniu has quit [(Ping timeout: 250 seconds)]
asuryawanshi has joined #nixos
<clever> __monty__: you can either configure a static ip directly on the container, or disable the router dhcp, and run your own dhcp server
asuryawanshi has quit [(Ping timeout: 250 seconds)]
CrazedProgrammer has quit [(Quit: Ping timeout (120 seconds))]
CrazedProgrammer has joined #nixos
Lisanna has joined #nixos
<manveru> ooh, i finally figured out how your nixos option stuff works :D
<__monty__> clever: Simplest solution looks like binding a port on the host to port 80 on the container. Maybe some day I'll find a better one.
<clever> mekeor: ah, thats building the json that https://nixos.org/nixos/options.html uses
<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.
<Lisanna> rycee: I definitely have all of those set. nix-channel --update works.
<clever> bgamari: nope, all nix-env does is manage ~/.nix-profile, it doesnt care what your shell does
<ylwghst-nix> groups ylwghst : users wheel networkmanager vboxusers pmutils dnscrypt-proxy
<bgamari> alright then
<clever> bgamari: and in general, python libraries shouldnt be in ~/.nix-profile/, they would collide with eachother
<manveru> time to get some sleep... more hackery tomorrow
<clever> ylwghst-nix: ds9 ALL=(root) NOPASSWD: /root/reload_lighty , /root/ubc
<ylwghst-nix> if I change %pmutils to ylwghst in sudo.extraConfig it does work
<Dezgeg> doesn't "systemctl suspend" already allow suspending without root
<clever> ylwghst-nix: that is a line from my /etc/sudoers, which allows the ds9 user, to run 2 scripts without a pass
<Lisanna> I'm guessing that the daemon got started without the proxy settings... I'm not the one who started the daemon though, the nix installer did.
<ylwghst-nix> clever: hey it does work this way
<clever> Lisanna: linux or darwin?
<ylwghst-nix> but not with %pmutils group
<Lisanna> clever: darwin
<bgamari> clever, so how is one to use, for instance, bindings provided by another package (e.g. kicad's pcbnew module)?
<clever> ylwghst-nix: if you run "id", does the user appear in the pmutils group?
<clever> Lisanna: its started by launchd by a plist file under /Library i think
<ylwghst-nix> clever: it's not there
<clever> bgamari: the program using those modules should have a wrapper script that sets PYTHONPATH correctly
<bgamari> right, but I'm not using a program
<clever> ylwghst-nix: how have you added the user to the group?
<bgamari> I just have a script which uses said modules
<bgamari> or even if I just want to drop into a repl for a moment
<clever> bgamari: then maybe that script should have the wrapper?
<ylwghst-nix> clever: i've done this and rebuild
<Lisanna> ugh, great, it's been too long since I've had to edit a PLIST file manually
nix-gsc-io`bot has joined #nixos
<clever> ylwghst-nix: you also need to logout and back in for changes to the group to apply
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/ab36c74390 (from 89 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<ylwghst-nix> ylwghst-nix: but groups prints that user is in pmutils group
<bgamari> clever, how would I generate such a wrapper?
<ylwghst-nix> clever: Isee ok
<ylwghst-nix> clever: will try
<ylwghst-nix> brb
<clever> bgamari: nix would generate it when installing the package with those scripts
<bgamari> clever, well, this isn't a script from a package
<bgamari> this is just a script from one of my projects
ylwghst-nix has quit [(Remote host closed the connection)]
<clever> bgamari: then it should be used under nix-shell i think
<bgamari> hmm
<clever> you can also create scripts like this
<clever> #!/usr/bin/env nix-shell
<clever> #!nix-shell -p pythonstuff
<clever> i think
<bgamari> right but then I sacrifice the ability to use the script on other systems
<clever> ah, yeah
<bgamari> I generally can't assume that my coworkers are using nix
<clever> then maybe just have a shell.nix file, and run "nix-shell" before using the scripts
<bgamari> that sounds sensible
ylwghst-nix has joined #nixos
joncfoo__ has quit [(Ping timeout: 268 seconds)]
<ylwghst-nix> strange :-) now the user is in but still can't run without pass
<ylwghst-nix> gr8 now :-)
<clever> ylwghst-nix: what are the contents of /etc/sudoers?
<ylwghst-nix> chagned syntax from %group ALL=NOPASSWD to %group ALL=(ALL) NOPASSWD: command
srdqty has joined #nixos
<clever> ylwghst-nix: and if you try giving it the same absolute path as in sudoers?
nix-gsc-io`bot has joined #nixos
<clever> ylwghst-nix: and what does "sudo -l" output as that user?
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b8abd97c3b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<ylwghst-nix> clever: it does work now
<ylwghst-nix> clever: the line is there
bts- has quit [(Ping timeout: 240 seconds)]
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?
takle has joined #nixos