gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
jonreeve has quit [Ping timeout: 244 seconds]
jackdk has joined #nixos
countingsort has joined #nixos
counting1ort has quit [Ping timeout: 240 seconds]
mayhewluke has quit [Ping timeout: 272 seconds]
mayhewluke has joined #nixos
rprije has joined #nixos
_ris has quit [Ping timeout: 252 seconds]
jonreeve has joined #nixos
jonreeve has quit [Ping timeout: 252 seconds]
sigmundv has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/747500e0cf9 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<mvnetbiz> List packages installed with nix-env -i?
<colemickens> Anyone have any hot tips for battery life on a laptop with nixos? like a list of things I should make sure I have confgured?
<colemickens> I've got a 6 month old XPS 13 and I can't get more than 2.5 hours out of it, even without any video playback. Just Firefox+Terminal.
thc202 has quit [Ping timeout: 240 seconds]
<Ralith> web browsing these days is considerably more heavyweight than video decoding
<rawtaz> sounds too short though
<mvnetbiz> 2.5 is really low my gnome3 menu says i have 2:00 left with 40% battery. which isn't very good but yours is really bad :(
<rawtaz> colemickens: did you check if something is using a lot of cpu etc?
* rawtaz &
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<mvnetbiz> colemickens, run powertop and look in tunables, mine were really bad
<mvnetbiz> colemickens, I just went 7.5 to 3.5 Watts with chrome windows open
phreedom_ has joined #nixos
<{^_^}> [nixpkgs] @ento opened pull request #46503 → aws-vault: 4.1.0 -> 4.3.0, pass linker flag for specifying app version → https://git.io/fAwn1
phreedom has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @manveru opened pull request #46504 → taskjuggler: 3.5.0 -> 3.6.0 → https://git.io/fAwnA
cyraxjoe has joined #nixos
Supersonic has quit [Ping timeout: 240 seconds]
silver has quit [Quit: rakede]
Supersonic has joined #nixos
rouma has quit [Ping timeout: 272 seconds]
Edes has joined #nixos
JonReed has quit [Ping timeout: 252 seconds]
sbdchd has joined #nixos
jperras has joined #nixos
<ldlework> Sad to see no webmacs in nixpkgs
johnw_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adamantium> the same for acpilight
<adamantium> (because xbacklight does not work with the recommended modesetting driver)
halfbit has quit [Quit: WeeChat 1.9.1]
lassulus_ has joined #nixos
<mdash> Hmm. Can anyone confirm that pypyPackages.mock is broken?
<mdash> i.e., `nix-build '<nixpkgs>' -A pypyPackages.mock` fails in a unit test
<mdash> Curiously the python27Packages one works.
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
nicko_h has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @adisbladis opened pull request #46505 → pulseaudio-modules-bt: init at unstable-2018-09-11 → https://git.io/fAwWc
<adisbladis> colemickens: I'll usually enable tlp and that's enough imho
nuncanada has joined #nixos
nuncanada has quit [Remote host closed the connection]
<adisbladis> adamantium: programs.light.enable
<adisbladis> That one works with modesetting
jasongrossman has joined #nixos
nuncanada has joined #nixos
nuncanada has quit [Read error: Connection reset by peer]
<avn> adisbladis: does pulseaudio allow load modules by full path?
pie___ has joined #nixos
pie__ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @adisbladis merged pull request #46505 → pulseaudio-modules-bt: init at unstable-2018-09-11 → https://git.io/fAwWc
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fAwll
<Edes> has anyone managed to get lightdm-webkit2-greeter to work?
hiroshi- has joined #nixos
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi- is now known as hiroshi
sphaugh has joined #nixos
<sphaugh> how do i append to a phase from overrideAttrs? super.postFixup ++ doesn't work
<sphaugh> ${super.postFixup} works :D
jperras has quit [Quit: WeeChat 2.2]
sphaugh has quit [Quit: leaving]
Kelppo has joined #nixos
<adisbladis> avn: Sadly not :/
<adisbladis> avn: There is a config option to set the modules directory
<adisbladis> avn: That's why I'm doing the hacky overrideAttrs thingy
<adisbladis> Anyway, building pulseaudio doesn't take that long
<adisbladis> avn: I intend to add something to the pulseaudio nixos module to make loading out of tree pulseaudio modules easier
<adisbladis> But I'm not sure what that would look like quite yet
nicko_h has joined #nixos
<adisbladis> sphaugh: A phase is just a string, ++ appends to a list
<adisbladis> sphaugh: super.postFixup + "whatever"
<avn> adisbladis: you can't set modules dir at runtime as I know. So it need patch to allow full paths in `module-load` command
<adisbladis> avn: Yeah that's currently not possible. What you could do is letting the module system create a directory with aggregated modules
<adisbladis> (the module system == nixos module system)
<adisbladis> Hehe, module is a bit overloaded in this context
<avn> adisbladis: but no way to pass this directory to pulseaudio daemon (at least w/o rebuild)
<infinisil> mdash: Nix is pretty reproducible for a specific revision of nixpkgs, so if you're getting the error, everybody else will get the error too. If that happens, try it on master to see if it's still broken, and if it is, you can file an issue
<CMCDragonkai> What do you guys think if packaging upstream transfer learning weights? Right now common weights are being moved around in google cloud or aws s3, but these weights were trained and distributed along with high impact deep learning papers and everybody uses them?
<adisbladis> avn: You can set it in the config which is read at startup
<CMCDragonkai> i know of ones for resnet101, resnet50... all of the keras weights.. etc
<infinisil> CMCDragonkai: I fail to see what this has to do with Nix
<CMCDragonkai> infinisil: As in packaging it in nixpkgs.
<avn> adisbladis: really? I though it was only via ./configure and/or patching
<CMCDragonkai> I saw there was a package on nixpkgs that distributed data sources for particle physics
<jackdk> Either it's sent to the wrong channel or CMCDragonkai intends to use nix and references to specific nixpkgs versions to help with reproducability in science
<adisbladis> avn: Wait a second. I'll try to locate it again.
<CMCDragonkai> infinisil: There is also the libpostal package which requires a weights file to be packaged along for it work
<adisbladis> avn: dl-search-path I think it is
<avn> adisbladis: looks cool, if it would work.
<benley> anyone know where I can find the BSD "dump" and "restore" utilities in nixpkgs?
<adisbladis> avn: I have the day off today so I have some time to experiment :)
<avn> My own work is on rid-off pulseaudio (and other server related) stuff from $PATH, if it live as system-wide
<avn> adisbladis: and I definelly know, whom to mention for review ;)
<infinisil> CMCDragonkai: Ah, well it would be okay with me
<adisbladis> avn: Go ahead =)
<CMCDragonkai> infinisil: Is it ok with you because of precedents, or is it ok with you morally and philosophically?
<infinisil> But one needs to make sure to not make hydra download it
<CMCDragonkai> infinisil: How does one do that?
<adisbladis> CMCDragonkai: hydraPlatforms = [];
<infinisil> CMCDragonkai: Just with how nixpkgs is used I guess
<infinisil> adisbladis: I'd have used `preferLocalBuild = true;` and `allowSubstitutes = false;`
<infinisil> Or maybe only the former
<adisbladis> infinisil: Yeah that's better
<adisbladis> `hydraPlatforms = []` is a bit of a weird construct
cdepillabout has joined #nixos
<cdepillabout> Is it possible to find the path to the /nix/store/*.drv file for a given derivation in /nix/store?
<adisbladis> cdepillabout: nix-store -q -d <store_path>
<cdepillabout> @adisbladis, thanks, that works!
<cdepillabout> I should have guessed it was `nix-store` before asking.
slack1256 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @adisbladis closed pull request #42610 → installer: Don't run graphical installer ISOs as root → https://git.io/f4Q9m
<{^_^}> [nixpkgs] @marsam opened pull request #46507 → nodejs: 6.14.3 -> 6.14.4, 10.9.0 -> 10.10.0 → https://git.io/fAw8b
mayhewluke has quit [Ping timeout: 246 seconds]
mayhewluke has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
cdepillabout has quit [Quit: Leaving]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco> adisbladis: TIL about the -d shorthand for --deriver. Thanks :)
<{^_^}> [nixpkgs] @ryantm merged pull request #46195 → remmina: 1.2.31.3 -> 1.2.31.4 → https://git.io/fAuQK
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fAw43
tzemanovic has quit [Remote host closed the connection]
rauno has quit [Ping timeout: 252 seconds]
Kelppo has quit []
tzemanovic has joined #nixos
jackdk_ has joined #nixos
jackdk has quit [Ping timeout: 240 seconds]
jedahan has joined #nixos
arahael1 has joined #nixos
arahael1 has quit [Client Quit]
arahael1 has joined #nixos
jackdk_ is now known as jackdk
arahael has quit [Ping timeout: 252 seconds]
copumpkin has quit [Ping timeout: 272 seconds]
copumpkin has joined #nixos
sbdchd has quit [Remote host closed the connection]
hiroshi- has joined #nixos
hiroshi has quit [Ping timeout: 244 seconds]
hiroshi- is now known as hiroshi
<{^_^}> [nixpkgs] @kalbasit opened pull request #46508 → bazel: 0.16.0 -> 0.16.1 → https://git.io/fAwBx
nek0 has quit [Ping timeout: 268 seconds]
hydraz has quit [Quit: ZNC 1.7.1 - https://znc.in]
ihar has quit [Ping timeout: 240 seconds]
ihar has joined #nixos
arahael1 is now known as Arahael
hydraz has joined #nixos
semilattice has quit [Ping timeout: 240 seconds]
nek0 has joined #nixos
ogle has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
<{^_^}> [nixpkgs] @fpletz merged pull request #46426 → spl/zfs: 0.7.9 -> 0.7.10 → https://git.io/fAaeS
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fAwRA
<{^_^}> [nixpkgs] @fpletz pushed commit from @clefru to release-18.09 « spl/zfs: 0.7.9 -> 0.7.10 »: https://git.io/fAw0v
<ogle> I am trying to modularize the build expressions in my companies monorepo. Currently we have a single default.nix that includes the deps for all of our subprojects. Instead I would like to have a default.nix per project, so I can create a top level release.nix that allows for installing a specific project. That said is there a way I can compose all of these in a shell.nix file such that during development,
<ogle> everyone can run nix-shell and have the dependencies to be able to work across the entire repo?
rauno has joined #nixos
worldofpeace has joined #nixos
<kalbasit[m]> mpickering: I figured out the bazel stuff. I'm cleaning it up, I'll comment on your discourse post when done
Hotkeys has joined #nixos
yodeler has joined #nixos
ydlr_ has joined #nixos
ydlr has quit [Ping timeout: 240 seconds]
ydlr has joined #nixos
yodeler has quit [Ping timeout: 252 seconds]
<ogle> anybody have any ideas regarding my monorepo stuff?
ydlr_ has quit [Ping timeout: 245 seconds]
xgirl has joined #nixos
<xgirl> Hey, I'm wondering if anyone can help with creating jobsets in Hydra with the githubpulls plugin: https://github.com/NixOS/hydra/blob/master/src/lib/Hydra/Plugin/GithubPulls.pm
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @kalbasit opened pull request #46509 → bazel-watcher: init at 4d5928e → https://git.io/fAwEm
<Edes> Does anyone know how to use a python virtualenv on jupyter? When I run `ipython kernel install --user --name whatever` while in the virtualenv it errors out saying [Errno 13] Permission denied: '/tmp/tmpyv049grd_kernels/python3/kernel.json'
<Edes> Perhaps you want `sudo` or `--user`?
<Edes> this is the output of nix-info system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0.4, channels(erobl): "", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<adamantium> clever: got a minute. have a nixos zfs question for you.
Ariakenom has joined #nixos
<LnL> Edes: if you want to use pip directly you'll need something like virtualenv, take a look at this for the nix approach https://nixos.org/nixpkgs/manual/#python
reinzelmann has joined #nixos
jasongrossman has quit [Ping timeout: 246 seconds]
<Edes> that's what I did
hamishmack has quit [Ping timeout: 272 seconds]
ogle has left #nixos [#nixos]
mounty1 has quit [Ping timeout: 252 seconds]
georges-duperon has joined #nixos
fyber has quit [Ping timeout: 240 seconds]
fyber has joined #nixos
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
sbdchd has joined #nixos
jackdk_ has joined #nixos
jackdk has quit [Disconnected by services]
jackdk_ is now known as jackdk
sbdchd has quit [Ping timeout: 240 seconds]
Edes has quit [Ping timeout: 245 seconds]
<LnL> I don't know what that command does, bu it seems to try to write files it shouldn't
<{^_^}> [nixpkgs] @worldofpeace opened pull request #46510 → installer: refactor → https://git.io/fAwuy
spear2 has joined #nixos
acarrico has quit [Ping timeout: 245 seconds]
acarrico has joined #nixos
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amosbird has quit [Quit: ZNC 1.7.0 - https://znc.in]
adetokunbo has joined #nixos
<adetokunbo> hello!
<Yaniel> hi there
hamishmack has joined #nixos
civodul has joined #nixos
amosbird has joined #nixos
<adetokunbo> Yaniel: hi!
<adetokunbo> I'm using nixpkgs on Ubuntu; I've just installed docker using nix-env -i docker
<adetokunbo> Is there a recommended approach for starting the dockerd that might somehow re-use the nixos module config?
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fAwz5
<{^_^}> [nixpkgs] @pSub merged pull request #46499 → zsh: 5.6 -> 5.6.1 → https://git.io/fAweE
<{^_^}> [nixpkgs] @xeji merged pull request #46233 → log4cplus: 1.2.0 -> 2.0.2 → https://git.io/fAzmP
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « log4cplus: 1.2.0 -> 2.0.2 (#46233) »: https://git.io/fAwzh
<{^_^}> [nixpkgs] @basvandijk merged pull request #44424 → haskell-modules: add callCabal2nixWithOptions. → https://git.io/fNPGo
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fAwgI
<{^_^}> [nixpkgs] @roberth closed pull request #42658 → haskellPackages.callCabal2nix: accept extraCabal2nixOptions argument → https://git.io/f4dTO
abueide has quit [Remote host closed the connection]
<adisbladis> ogle: You could just import each project in your top-level shell.nix
abueide has joined #nixos
<adisbladis> adamantium: IRC protip: Just ask your question, dont ask to ask.
<adisbladis> adetokunbo: Hey. Not at the moment.
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
acarrico has quit [Ping timeout: 252 seconds]
<xgirl> ok, does anyone know how to create jobset for each of PR that is in the spec.json generated using the githubpulls plugin?
acarrico has joined #nixos
<adamantium> adisbladis: yea
<adamantium> :) Anyone know if it is possible to specify which zfs root dataset is to be loaded from the grub menu in nixos? E.g. in gentoo with dracut, you can use a kernel parameter like this: root=zfs:zroot/ROOT/my-other-root-dataset
<adamantium> I do not think it is possible, it seems that nixos is baking the root dataset into the initramfs or something.
jackdk has quit [Ping timeout: 240 seconds]
<adamantium> (baking //the path// in to the root dataset...)
graphene has quit [Read error: Connection reset by peer]
graphene has joined #nixos
<realrokka> adamantium: have u looked at zedenv ? i don't use it, but maybe it's kinda what you want ʅ(́◡◝)ʃ
<adamantium> that won't work for us
<adamantium> it is just a beadm alternative.
<adamantium> i mean it will create a boot environment, sure.
<adamantium> Well i've documented my progress, or lack thereof, in trying to achieve boot environments in nix .. https://github.com/a-schaefers/themelios/issues/1
<{^_^}> a-schaefers/themelios#1 (by a-schaefers, 34 minutes ago, open): No sane way to use zfs boot environments in nixos
thc202 has joined #nixos
c15ade4 has quit [Quit: WeeChat 2.0]
hexa- has quit [Ping timeout: 240 seconds]
NinjaTrappeur has quit [Ping timeout: 276 seconds]
<adisbladis> adamantium: Is having multiple distinct hardware-configuration.nix not an option?
<adisbladis> It seems to me like most of the benefits with boot environments are not applicable on nixos anyway
hyper_ch2 has joined #nixos
<adamantium> s/not applicable/less needed/g , hehe
xgirl has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<adisbladis> adamantium: It doesn't take stateful things like databases into account but other than that I can't see why I would need one on nixos
phry has quit [Ping timeout: 272 seconds]
Ariakenom has joined #nixos
jensens has joined #nixos
<adamantium> using real zfs boot environments would still be quite powerful on nixos
<adamantium> you could have a boot env for unstable , all kinds of test environments you can just thrash around in without a sweat
jasongrossman has joined #nixos
<adamantium> But it is true, nixos is miles ahead of other distros in having what it does with rollbacks, it is quite awesome!
jasongrossman has quit [Remote host closed the connection]
<Hotkeys> tonight I dove right in and installed nixos for the first time on my laptop
<Hotkeys> it's pretty neat
jasongro` has joined #nixos
georges-duperon has quit [Ping timeout: 252 seconds]
<aminechikhaoui> Hotkeys: ++
<{^_^}> Hotkeys:'s karma got increased to 1
jluttine has quit [Ping timeout: 252 seconds]
tzemanovic has quit [Remote host closed the connection]
adetokunbo has quit [Quit: This computer has gone to sleep]
Boomerang has joined #nixos
<adamantium> cool Hotkeys. made a great choice.
tzemanovic has joined #nixos
palo has quit [Ping timeout: 250 seconds]
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
WilliButz has quit [Read error: Connection reset by peer]
WilliButz has joined #nixos
goibhniu has joined #nixos
lawlesseel has quit [Ping timeout: 256 seconds]
nckx has joined #nixos
bbsl has joined #nixos
Boomerang has quit [Quit: WeeChat 1.9.1]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
NinjaTrappeur has joined #nixos
<bbsl> does anyone have any experience with php in nix? Im trying to enable the zmq extention in php but I cant figgure out how it is intended to work.
mounty1 has joined #nixos
phry has joined #nixos
WilliButz has quit [Quit: WeeChat 2.0]
WilliButz has joined #nixos
Phillemann has left #nixos ["WeeChat 2.2"]
mounty1 has quit [Ping timeout: 245 seconds]
graphene has quit [Remote host closed the connection]
Boomerang has joined #nixos
graphene has joined #nixos
<goibhniu> hi bbsl, maybe this helps: https://nixos.wiki/wiki/Phpfpm
<goibhniu> it shows how you can add extensions
phry has quit [Ping timeout: 245 seconds]
hyper_ch2 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #46504 → taskjuggler: 3.5.0 -> 3.6.0 → https://git.io/fAwnA
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAww9
tpanum has joined #nixos
NinjaTrappeur has quit [Ping timeout: 252 seconds]
hyper_ch2 has joined #nixos
NinjaTrappeur has joined #nixos
jluttine has joined #nixos
<mpu> how does nix deal with versions? sometimes a software will bump its version number but its "API" will remain the same; does one have to write a derivation for each version?
<mpu> (Possibly factoring it out as a function and calling it, I guess.)
<emily> you can -- yeah.
<bbsl> goibhniu thank you for the link I guess that shows how once can go about doing it. but is this possible to do on in a shell.nix kind of way? I guess I wont have access to 'system' there.
<Myrl-saki> mpu: Yes, and that's what glibc does. At least in older versions.
<mpu> I'm more interested in the idiomatic way I guess.
phry has joined #nixos
mkoenig has quit [Remote host closed the connection]
<Myrl-saki> mpu: You can also use override{Attrs,Derivation}, but that's less flexible, and might be more ugly for some.
<goibhniu> bbsl: sorry, I don't know how. It must be possible though.
<Myrl-saki> Seems like NIX_DEBUG no longer works.
<sphalerite> mpu: for nix itself, different versions are completely distinct derivations, so any dependent built against two different versions of a library is also two different derivations
hexa- has joined #nixos
<sphalerite> mpu: as for how nixpkgs handles multiple versions, the approach is to have only the latest of everything and keep older versions when necessary for software that depends on it
<sphalerite> mpu: for older versions of software that aren't in the latest nixpkgs, typically you'd use an older nixpkgs version
<mpu> sphalerite, ah thanks; that clarifies things.
<Myrl-saki> OTOH, the dependency checking is per-derivation, so you could make a super-derivation that wraps all versions, but that's ugly.
<mpu> sphalerite, how does one "mix" two nixpkgs?
sigmundv has joined #nixos
<mpu> Or get a package from an older version.
<sphalerite> mpu: one way is to use an overlay that imports an older nixpkgs and replaces a library completely, or uses override to plug it into specific dependents
<Myrl-saki> Seems like nix-build no longer accepts NIX_DEBUG, and neither does any other nix programs.
<sphalerite> mpu: if you could provide more concrete details (what do you want an older version of and for what purpose?) it might be easier to explain
<Myrl-saki> And how do you want to call it!
<mpu> sphalerite, I'm just building my mental image there :)
Izorkin has joined #nixos
<Myrl-saki> You could use -I flags, to import the whole nixpkgs, which I'm guessing symphorien's link shows.
Guanin_ has joined #nixos
<Myrl-saki> OTOH, if you want to get an older derivation, through Nix the language, you can use (import (fetchTarball ...))
<mpu> sphalerite, I do plan to develop something with LLVM and it'd be handy to stick to a given version given how often they break their api.
<sphalerite> mpu: there are lots of different ways depending on how you want to combine things
<sphalerite> mpu: ah in the case of llvm we do actually have multiple versions in nixpkgs
<symphorien> ,pinning mpu
xok has joined #nixos
<CMCDragonkai> infinisil: Here are all the weights that could be packaged up: https://github.com/fchollet/deep-learning-models/releases
<sphalerite> bbsl: by the looks of it you'd want to just write a php.ini that points to the extensions you want to use and run php with -c your-php.ini
pie___ has quit [Ping timeout: 244 seconds]
copumpkin has quit [Ping timeout: 244 seconds]
adetokunbo has joined #nixos
<{^_^}> [nixpkgs] @andir opened pull request #46511 → [18.03] WIP: firefox: provide clang configure flags on i686 → https://git.io/fAwo2
johanot has joined #nixos
<mpu> sphalerite, I'm using nix on debian and the documentation keeps referring to configuration.nix; where can I find that?
norfumpit_ has joined #nixos
<bbsl> mpu afaik configuration.nix is only used in nixos not if you use nix on another distro?
sbdchd has joined #nixos
<bbsl> sphalerite: I think you are correct unfortunately part of the problem here is that I am new to php :) but ty for the pointer
<sphalerite> mpu: yeah what bbsl said. Are you looking at the nixos manual?
<mpu> Yeah; the one you linked :P
<sphalerite> I linked something?
copumpkin has joined #nixos
<mpu> 08:27 > symphorien < ,pinning mpu
norfumpit has quit [Ping timeout: 244 seconds]
<mpu> oops, nick confusion
<sphalerite> oh right :)
mkoenig has joined #nixos
<sphalerite> yeah I'd suggest pinning nixpkgs as described in the article symphorien got the bot to link you :)
sbdchd has quit [Ping timeout: 240 seconds]
fendor has joined #nixos
norfumpit_ has quit [Quit: norfumpit]
norfumpit has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
johanot has quit [Quit: Lost terminal]
norfumpit has quit [Client Quit]
<hyper_ch2> question, linux kernel 4.19 will introduce new wifi ax support.... do you also need different wifi cards or can this be used with just software upgrade?
johanot has joined #nixos
knupfer has joined #nixos
norfumpit has joined #nixos
<sphalerite> hyper_ch2: the hardware has to support it
tzemanovic has quit [Remote host closed the connection]
<hyper_ch2> sphalerite: I thought if the same spectrums are used (not check if they are with ax) then it's just a matter of the software/firmware whether its supported :(
IRC-Source_31426 has joined #nixos
IRC-Source_31426 is now known as xgirl
justanotheruser has quit [Quit: WeeChat 2.0]
<sphalerite> I don't understand a great deal about how wireless comms work, but AFAIU a lot of the details of how data is modulated and sent across the air are implemented in hardware
<sphalerite> I'm far from an expert though
<hyper_ch2> sphalerite: well, I'm no expert either :)
<sphalerite> hyper_ch2: 802.11n was able to use 5GHz bands and you still need new hardware for 802.11ac so…
<hyper_ch2> right... oh well :)
<sphalerite> If you want support for all the things, get yourself an SDR :p
knupfer has quit [Ping timeout: 252 seconds]
<hyper_ch2> one more thing: in nginx, can I have two locations entries with reverse proxy?
<sphalerite> yes
<hyper_ch2> SDR?
<sphalerite> software-defined radio
<hyper_ch2> :)
<sphalerite> hyper_ch2: also even if it were possible from the hardware perspective, manufacturers would probably not update the (proprietary of course) firmware to support it because then you wouldn't buy their new hardware!
<tobiasBora> Hum...
<hyper_ch2> sphalerite: you're right
<hyper_ch2> sphalerite: https://paste.simplylinux.ch/view/raw/925edd0b --> as soon as I enable the spice entries, nginx fails to start
<tobiasBora> I don't understand something: I put in my user configuration " extraGroups = ["wheel"];", to make it sudo, but when I start a new bash with "bash", "groups" only return "users"...
<hyper_ch2> tobiasBora: can you "sudo" with it?
<sphalerite> hyper_ch2: does it say anything useful in the logs?
<tobiasBora> hyper_ch2: no
<sphalerite> tobiasBora: you have to log out and back in for group changes to take effect
<hyper_ch2> sphalerite: where are nginx logs?
<clever> tobiasBora: you have to logout and log back in
<hyper_ch2> they aren't in /var/log/....
<sphalerite> tobiasBora: on all linuxes, not just nixos
AshyIsMe has joined #nixos
<tobiasBora> sphalerite: clever : even if I start a new shell? In debian I'm pretty sure I used to start a new shell and it worked
<sphalerite> hyper_ch2: if it's failing to start, journalctl -eu nginx
<sphalerite> hyper_ch2: access and error logs are in /var/spool/nginx iirc
<sphalerite> tobiasBora: I'm pretty sure you remember wrong ;)
<clever> tobiasBora: only if the new shell is launched by something root (sshd, login shells)
<hyper_ch2> sphalerite: will check, thx
<etu> tobiasBora: you can launch a new shell and do "su yourself" to get your new groups
<etu> tobiasBora: ie, a login.
<clever> etu: ive tried that before, but it somehow breaks pulseaudio
<tobiasBora> etu: good point, I like your method ;)
<etu> clever: That doesn't surprise me at all
<tobiasBora> really?
<tobiasBora> that's kind of fun^^
<tobiasBora> Any way, it works, thank you, sorry for the noise
Ashy has quit [Changing host]
AshyIsMe has joined #nixos
AshyIsMe has quit [Changing host]
Ashy has joined #nixos
Ashy has quit [Quit: leaving]
AshyIsMe is now known as Ashy
xgirl has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<sphalerite> A while back, I did a little hack to get an already running nix build to switch to using more cores, using gdb to get make to re-exec itself. It was pretty fiddly, involving calls to malloc and building up the new argv manually. Is there an easier way?
<clever> sphalerite: impure!!!
<sphalerite> clever: no impurer than NIX_BUILD_CORES is anyway :)
<xok> you know what?... I start liking NixOS... :-D
<Taneb> sphalerite: oh god that sounds... an evil way of doing things
<sphalerite> Taneb: from a practical perspective it's still pure, and it saved me several hours of building, so… :D
<sphalerite> xok: ONE OF US
<Taneb> sphalerite: oh, the end result is nice, sure
<sphalerite> Taneb: any better suggestions? :D
<Taneb> No, it just feels like saving the world by blowing up orphanages
<clever> :D
<sphalerite> o.O that bad!
<Taneb> sphalerite: scale both sides down a few orders of magnitude
<sphalerite> hm, can processes be reparented somehow?
<sphalerite> besides when the parent exits
<sphalerite> reparented arbitrarily that is
<clever> only pid 1 can adopt orphans
<clever> you would need kernel changes to be able to freely change the parent pid
<clever> but it does seem like a fairly simple change
<sphalerite> I'd like to be able to drop a child process on some other process's doorstep
<sphalerite> :p
<clever> :D
tzemanovic has joined #nixos
<sphalerite> Mic92_: iirc your research stuff in principle allows getting an interactive shell with extra tools within a nix build?
<clever> sphalerite: unshare might be able to do that
<clever> it can accept a pid to enter the namespace of
<{^_^}> [nixpkgs] @michaelpj opened pull request #46512 → haskell lib: add --enable-benchmarks in doBenchmark → https://git.io/fAwii
<Mic92_> sphalerite: also in practice
<{^_^}> [nixpkgs] @Mic92 merged pull request #46462 → pacman: substitute paths in repo-add → https://git.io/fAa0G
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAwiX
<sphalerite> Mic92_: awesome! Can I get it anywhere? :D
tzemanovic has quit [Remote host closed the connection]
<Mic92_> sphalerite: I have to finish the documentation in the next time: https://github.com/NixOS/nixpkgs/pull/42371 -> in the worst case it is ready for nixcon.
<{^_^}> #42371 (by Mic92, 11 weeks ago, open): breakpointHook: add for debugging failing builds
<{^_^}> [nixpkgs] @xeji merged pull request #46500 → pythonPackages.pytestflakes: fix build → https://git.io/fAwU6
<{^_^}> [nixpkgs] @xeji pushed to master « pythonPackages.pytestflakes: fix build (#46500) »: https://git.io/fAwi9
<Mic92_> Running nix-shell inside this with NIX_REMOTE does not work yet. I am working on that. https://github.com/Mic92/cntr/tree/socket-proxy
<{^_^}> [nixpkgs] @xeji pushed to release-18.09 « pythonPackages.pytestflakes: fix build (#46500) »: https://git.io/fAwij
nD5Xjz has quit [Ping timeout: 244 seconds]
<sphalerite> Mic92_: awesome!
<sphalerite> wait the sandbox doesn't create a new PID namespace? Damn
<clever> sphalerite: the nix sandbox is using pid namespaces
<sphalerite> oh so nsenter isn't working right
<clever> sphalerite: the builder is pid 1, and the `ps aux` command was pid 2
<clever> nsenter can choose to omit certain namespaces, you have to tell it to also enter the pid one
<sphalerite> Or I'm using it wrong
<sphalerite> I did pass -p
<Mic92_> sphalerite: cntr also normalize the fs permissions because the sandbox shifts uids.
lawlesseel has joined #nixos
<clever> sphalerite: if you run bash inside nsenter, does anything change?
<clever> in some modes, it defers the namespace change until a fork
<{^_^}> [nixpkgs] @srhb merged pull request #46492 → ammonite: 1.1.2 -> 1.2.0 → https://git.io/fAVHx
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fAwPy
<{^_^}> [nixpkgs] @srhb merged pull request #46508 → bazel: 0.16.0 -> 0.16.1 → https://git.io/fAwBx
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fAwPA
<{^_^}> [nixpkgs] @srhb pushed commit from @kalbasit to release-18.09 « bazel: 0.16.0 -> 0.16.1 »: https://git.io/fAwXf
<hyper_ch2> sphalerite: that helped.... log is in /var/spool/nginx/logs and proxy_set_header X-Forwarded-For $proxy_add_xforwarded_for; != proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
<sphalerite> clever: isn't that only for creating a new PID namespace?
<{^_^}> [nixpkgs] @srhb merged pull request #46503 → aws-vault: 4.1.0 -> 4.3.0, pass linker flag for specifying app version → https://git.io/fAwn1
<{^_^}> [nixpkgs] @srhb pushed 3 commits to master: https://git.io/fAwXI
humanoyd has joined #nixos
<{^_^}> [nixpkgs] @srhb pushed to release-18.09 « Merge pull request #46503 from ento/aws-vault-4-3-0 »: https://git.io/fAwXg
<clever> sphalerite: not entirely sure
adetokunbo has quit [Quit: This computer has gone to sleep]
<{^_^}> [nixpkgs] @Mic92 merged pull request #46495 → networking.hostId: fix cmd in description → https://git.io/fAVbd
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAwXr
<{^_^}> [nixpkgs] @arianvp opened pull request #46513 → texFunctions: Fix lhs2tex helper derivation → https://git.io/fAwX6
sbdchd has joined #nixos
Twey has joined #nixos
<sphalerite> clever: pretty sure it is — unshare with PID means that the next fork will result in PID1 of the new namespace
<{^_^}> [nixpkgs] @Mic92 pushed commit from @erikarvstedt to release-18.09 « networking.hostId: fix cmd in description »: https://git.io/fAwXy
<{^_^}> [nixpkgs] @rembo10 opened pull request #46514 → headphones: init at 0.5.19 → https://git.io/fAwX5
sbdchd has quit [Ping timeout: 252 seconds]
matto has joined #nixos
<bbsl> Im going to try again because I can not figgure it out: does anyone know how to enable the zmq extention for php in nixos? I cant for the life of me get it to work :o
<rawtaz> bbsl: in what way can ou not get it to work?
<rawtaz> +y
<rawtaz> describe symptoms, otherwise it will be hard to help
baimafeima has joined #nixos
<bbsl> rawtaz sorry, well its just not enabled. no matter what I try "php --ri zmq" yields "Extension 'zmq' not present"
IRCsum has quit [Ping timeout: 272 seconds]
<srhb> bbsl: How did you try to enable it?
<etu> bbsl: I don't think it's enabled by default and I also don't think we have a flag for it currently
IRCsum has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #46515 → pythonPackages.khard: zsh autocompletion → https://git.io/fAw1V
Twey has quit [Ping timeout: 240 seconds]
<goibhniu> bbsl: did you try creating the php.ini file?
<etu> <php/default.nix>
<bbsl> at first I installed phpPackages.zeromq alongside php and expected it to work .. it didnt ... then I tried finding options for it in the php package, there was'nt .. then I tried solving it using this approach: https://nixos.wiki/wiki/Phpfpm , that isnt applicable to my use case as I need the php binary to work
<etu> I thought that would work
Twey has joined #nixos
<bbsl> etu I think that is what I want, but I need to set the path it searches for the file in I think
<clever> bbsl: i think you need to generate a php.ini that tells it to load the zmq plugin from the correct path
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
carlosdagos has quit [Quit: Connection closed for inactivity]
<bbsl> ok ty, I think I have an idea what to try now
simukis has joined #nixos
<sphalerite> I have a bridge defined using networking.bridges, and I want to connect an interface to it *only if it exists* — currently the bridge's creation will fail if the interface to connect to it doesn't exist. How can I do this?
hamishmack has joined #nixos
<clever> sphalerite: i think i saw a recent pr that makes adding a device silently fail
<steveeJ> has anyone noticed weird console behavior in nix repl? the prompt 'nix-repl>' is flickering
<{^_^}> [nixpkgs] @Mic92 merged pull request #44496 → Hylafaxplus → https://git.io/fNX4u
<{^_^}> [nixpkgs] @Mic92 pushed 5 commits to master: https://git.io/fAwMe
<srhb> steveeJ: Are you on an early 2.1?
<clever> steveeJ: i filed a bug for it, then the problem went away after a nix-channel --update, so i closed it
<{^_^}> [nixpkgs] @baracoder opened pull request #46516 → fetchNuGet: Add support for sha512 → https://git.io/fAwMI
<steveeJ> srhb: I think I'm still using unstable yes
<srhb> steveeJ: 2.1.1 did contain a lot of fixes regarding the repl
<manveru> a working repl? take my money!
<steveeJ> I'm on 2.1pre6338_45bcf541
<srhb> steveeJ: Try 2.1.1 :)
<manveru> is it backported to 18.03?
nD5Xjz has joined #nixos
<steveeJ> when has that landed? I upgraded on Friday IIRC
<srhb> manveru: Not yet apparently
<Taneb> It'd be nice if nix-copy-closure had a progress bar
<manveru> yeah... seems like it's still the old one :|
<clever> Taneb: `nix copy` does give better progress
<steveeJ> I'll just upgrade again, I wanted to pull in unstable libvirt into the system anyway :D
<Taneb> clever: I'm still on nix 1.x
<Taneb> Although hopefully we can upgrade soon
patrl has joined #nixos
booglewoogle has joined #nixos
<LnL> steveeJ: that pre version doesn't have a nice repl :p
<tobiasBora> Any idea how I could enable numlock at startup? (running KDE)
<steveeJ> where can I get nix 2.1.1? the unstable channel has 2.1pre6377_954d1f4d as nixUnstable too
<srhb> steveeJ: It's in release-18.09 at least
<srhb> I think it's in master too
<srhb> Or it should be, at least
<manveru> tobiasBora: there's the package numlockx, you can run it on login
<srhb> Hah, no, it's not in master. That's an oversight. I'll fix it later.
<srhb> Oh, wait, it is, but it's nixStable there
<srhb> And nixUnstable is an earlier pre version :-P
<manveru> tobiasBora: but it seems like there's also a configuration in KDE directly?
<srhb> For when you REALLY want to run quirky software, even if it's old.
<steveeJ> srhb: :-D
<manveru> tobiasBora: see kde section in https://help.ubuntu.com/community/NumLock
<LnL> nixUnstable usually doesn't get bumped when there's a release
<LnL> since it's the same wanyway
<srhb> Yeah, I forgot. :-P
<steveeJ> so somehow the release sneaked in behind unstable's back
<LnL> yep :)
Dedalo has joined #nixos
orivej has joined #nixos
<tobiasBora> manveru: yes, people seems to recommand to put in the file "/etc/sddm.conf" a line "Numlock=on" in the section General... But I've no idea how I should do that in Nixos, should I manually edit the file (looks dirty as it is likely to be erased on next update), or change something in my configuration.nix?
<clever> tobiasBora: services.xserver.displayManager.sddm.extraConfig
<clever> services.xserver.displayManager.sddm.autoNumlock
matto has quit [Ping timeout: 245 seconds]
<clever> tobiasBora: if autoNumlock is set to true, nix will insert Numlock=on into the generated sddm.conf file
<tobiasBora> clever: hum, I'm too stupid...
<tobiasBora> thank you!
<clever> just need to read the docs
<tobiasBora> yes
<clever> when i started with nixos, i went thru every single page of https://nixos.org/nixos/options.html
<rawtaz> that's highyl recommended
<rawtaz> even if you dont remember all of it, you know where to look for what in the future
<tobiasBora> clever: rawtaz : Hum, this page is way easier to search than the git sources! Thanks!
<clever> tobiasBora: you can also just `man configuration.nix`
<{^_^}> [nixpkgs] @srhb opened pull request #46517 → Revert build host target platform deprecation on master → https://git.io/fAwDX
<tobiasBora> amazging!
<{^_^}> [nixpkgs] @srhb opened pull request #46518 → Revert build host target platform deprecation on release-18.09 → https://git.io/fAwDD
booglewoogle has left #nixos ["Leaving"]
adetokunbo has joined #nixos
<joko> Hello, it appears I am unable to update the nixos channel on my PC (custom channel based on nixos-unstable-small), any ideas what could be wrong?
<joko> nix-channel --update seems not to download the channel at all
<clever> joko: how is the channel hosted?
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to gnome-3.30: https://git.io/fAwyI
<symphorien> joko: do you do this as root ?
<joko> clever: over HTTPS, it seems to be downloadable
<joko> symphorien: yes, I have tried both with sudo nix-channel --update and sudo -i
<clever> joko: is the host nginx pointing to a storepath?
<joko> clever: no, I move nixexprs.tar.xz manually
<joko> It was working before :S
<clever> joko: what happens if you `nix-channel --update -vvv` ?
<joko> clever: strange, the expressions are not getting downloaded: http://nixpaste.lbr.uno/qnDa3FX3?nix
<clever> joko: how long since you last updated the channels?
<clever> it may be the ttl on the cache
tzemanovic has joined #nixos
<joko> clever: just did
<clever> joko: if you nuke ~/.cache/nix/tarballs/ then it will loose that cache
<joko> I mean 5-10 minutes
<joko> clever: you were right. I have forgotten to move the new nixexprs to the HTTPS server and fired up nixos-rebuild switch --upgrade, so it was cached indeed
<joko> I must automate this :/
<{^_^}> [nixpkgs] @teto opened pull request #46519 → gitAndTools.git-extras: install zsh completion → https://git.io/fAwyM
sbdchd has joined #nixos
<{^_^}> [nixpkgs] @joachifm merged pull request #46381 → nixos/zeronet: Fix TOR permissions, add torAlways option → https://git.io/fA20K
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fAwSY
sbdchd has quit [Ping timeout: 244 seconds]
Kelppo has joined #nixos
spear2 has quit [Remote host closed the connection]
spear2 has joined #nixos
<srhb> steveeJ: Look up a few lines.
<steveeJ> srhb: I saw that but that's weird :D however, when I install nixStable from https://nixos.org/channels/nixos-18.09 I get 2.0.4
<srhb> nxos-18.09 /= release-18.09 :)
<srhb> nixos-18.09 is gated behind tests that have been stuck for days.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.30 « fixup! gnome3.libsoup: Fix meson build with upstream patches »: https://git.io/fAwSS
<steveeJ> tricky
<woffs> srhb, 18.09 is younger than 18.03 ;)
<woffs> I mean, more recent
<srhb> woffs: I don't believe it is. Just because the update occurred more recently doesn't mean that the _commits_ are younger.
Twey has quit [Ping timeout: 252 seconds]
<srhb> But pedantics.. :P
lassulus has quit [Quit: WeeChat 2.0]
<srhb> You're right though. Sep 5 vs Sep 3.
<steveeJ> my system configuration now uses 4 different package sources. hooray
Twey has joined #nixos
hamishmack has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
lassulus has joined #nixos
mayhewluke has joined #nixos
<rawtaz> steveeJ: what sources are that? nixos, nixos-unstable and two more?
nD5Xjz has quit [Ping timeout: 272 seconds]
matto has joined #nixos
thc202 has quit [Ping timeout: 246 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thc202 has joined #nixos
hamishmack has joined #nixos
<steveeJ> rawtaz: a local git repo and nixos-18.09
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<Taneb> I sort of half-remember seeing a way to mark a derivation so that a hydra server won't feel a need to have its own copy of it
<Taneb> Is this something that exists or did I make it up?
<{^_^}> [nixpkgs] @andir merged pull request #46511 → [18.03] firefox: provide clang configure flags on i686 → https://git.io/fAwo2
<{^_^}> [nixpkgs] @andir pushed 2 commits to release-18.03: https://git.io/fAwHO
<rawtaz> steveeJ: so unstable, git repo, nixos-18.09, whats the fourth?
tzemanovic has quit [Ping timeout: 246 seconds]
<steveeJ> rawtaz: stable (18.03)
mounty1 has joined #nixos
<rawtaz> ah, gotcha
nD5Xjz has joined #nixos
baimafeima has quit [Quit: Leaving]
mounty1 has quit [Ping timeout: 272 seconds]
nD5Xjz has quit [Ping timeout: 240 seconds]
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @timbertson closed pull request #45972 → set passthru in extendDerivation → https://git.io/fA82k
boogle_ has joined #nixos
sbdchd has joined #nixos
nD5Xjz has joined #nixos
boogle_ has quit [Client Quit]
boogle_ has joined #nixos
boogle_ has quit [Client Quit]
boogle_ has joined #nixos
orivej has quit [Ping timeout: 252 seconds]
boogle_ has left #nixos [#nixos]
sbdchd has quit [Ping timeout: 244 seconds]
booglewoogle has joined #nixos
nD5Xjz has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @joachifm pushed to master « tor-browser-bundle-bin: 7.5.6 -> 8.0 »: https://git.io/fAw7B
joehh has joined #nixos
<joehh> hello, how do people handle HA on nixos? ie having a cluster of machines and ensuring that a service (timer or regular service) runs
<joehh> on exactly one machine at a time?
nD5Xjz has joined #nixos
<rawtaz> joehh: is it different from how they do it on any other linux distro?
<clever> joehh: for some services like dhcpd, the daemon is able to talk to another instance of itself, and co-operate with it to share the network
<andi-> joehh: like on any other distributions I'd say? :) THere is no magic in nixos that handles failover detection. You could probably have a custom nixos option that enables/disables a bunch of timers and then you toggle that flag?
<magnetop`> I just enabled hydra and now it's building graphviz, multiple times. is that normal?
hrk has joined #nixos
<clever> magnetop`: hydra does depend on graphviz
<joehh> I've used things like redhat cluster suite before, but wondering if anything similar or dependencies for RHCS have been packaged? (pacemaker etc)
<rawtaz> joehh: it's really not what you are asking for, but somewhat related, do you know about NixOps?
<magnetop`> clever: I'm just surprised that it's not using an upstream binary
<magnetop`> clever: also. it looks like it's building a couple of times instead of once
<joehh> I do :) using it right now for a bunch of remote physical machines and now starting to want to use it in AWS (and spread my services across multiple availability zones)
<clever> magnetop`: is it building it within the hydra jobs, or during nixos-rebuild?
<joehh> I'm kind of hoping to be able to specify a service in nixops that will run on exactly one of the machines in the nixops deployment (ie if one fails, another machine will start service)
<ikwildrpepper> joehh: nixops is not really suited for that
selaux has joined #nixos
<rawtaz> perhaps the stuff from HashiCorp provides this type of thing? unrelated to nixos though
nD5Xjz has quit [Ping timeout: 252 seconds]
<joehh> ikwildrpepper: :( yet
<joehh> rawtaz: I'll check it out
<ikwildrpepper> in the nix world, what you are looking for sounds more like disnix, however, I have never used it
<ikwildrpepper> disnix is more service deployment, where nixops is more system config deployment
<rawtaz> sounds highly relevant, disnix
tzemanovic has joined #nixos
lesh has joined #nixos
xok has quit [Quit: Leaving.]
<lesh> hey, quick question on deploying to hetzner bare metal via nixops, which OS should I purchase in their ui? asking because I'm not sure which mechanism nixops uses to interact with the running server..
<{^_^}> [nixpkgs] @domenkozar pushed to master « dep2nix: 0.0.1 -> 0.0.2 »: https://git.io/fAwdo
smolboye has quit [Ping timeout: 240 seconds]
nD5Xjz has joined #nixos
<lesh> looking to switch from ansible managed kvm machines to nixos as a hypervisor..
<bbsl> does anyone know how to find the location of a non binary package in the nix store withour resorting to grepping the whole catalog structure? (Iv tried nix-locate and the readlink that I use for packages that I have links to does not work in this case)
<joehh> ikwildrpepper, rawtaz: looks like my nix stack may be getting deeper :)
<joehh> thanks
<johanot> lesh: I configured my hetzner server with nixops by giving nixops credentials to the hetzner control-panel. Nixops can boot the server in rescue mode and run nixos-install from there. No need to install any other OS first.
smolboye has joined #nixos
<lesh> johanot: yeah just noticed by reading hetzner.py that it uses the rescue mode. I don't think I can select "no os", but I expect this doesn't matter since nixops will just overwrite everything. tnx!
<johanot> lesh: you should be able to select "Rescue system"
<srhb> lesh: Interested to hear about your experience with NixOS as a hypervisor host. I know a few people who need a good host for that, and I've been wary about recommending NixOS.
<lesh> johanot: oh, I see, might have missed that, tnx
<joehh> srhb: I am running a (very) remote nixos machine as a (small scale) hypervisor. Has been working really nicely (once I enabled the various bios extensions)
<lesh> srhb: yeah, I'm about to refresh parts of my infrastructure so decided to give nixos a try, I've been unhappy with ansible+kvm (slow/wonky/ugly) and hashicorp and other corporate stuff feels unattractive, this is a huge leap, I hope it works well, it's about 15-20 machines
<joehh> I am a little scared of upgrading it, but that is mainly due to its remoteness and current critica lreliance on the windows vm it is running.
<{^_^}> [nixpkgs] @domenkozar pushed to master « dep2nix: fix eval (no IFD) »: https://git.io/fAwF8
<joehh> I should be able to get a backup machine to that location in the next month or so and also have a replacement for the windows software it is running
<joehh> which will be a much better position
seku has joined #nixos
<srhb> joehh: Nice, thanks :)
<srhb> lesh: I'll try to remember to poke you in a few weeks about sharing your insights. ;-)
<lesh> srhb: sure, I'll stick around here :)
<srhb> lesh: Great!
norfumpit has quit [Quit: norfumpit]
norfumpit has joined #nixos
orivej has joined #nixos
nD5Xjz has quit [Ping timeout: 245 seconds]
patrl has quit [Ping timeout: 252 seconds]
patrl has joined #nixos
nD5Xjz has joined #nixos
<rawtaz> joehh: :D
<joehh> rawtaz: yeah - nixops is awesome :)
<rawtaz> are there any suepr duper great videos or guides showing off nixops in a very interesting way (although not too big scale, so it's still for us common folks)?
<joehh> the way we use it is interesting (I think anyway...) - each deployment is kept in a git repo with a corresponding buildkite pipeline
vaibhavsagar has joined #nixos
<joehh> making a commit and push triggers a build in the pipeline which deploys changes to test machines in AWS
nD5Xjz has quit [Ping timeout: 252 seconds]
<joehh> once our support/devops team are happy the changes are succesful (sadly mostly semi manual testing at this stage)
xok has joined #nixos
sbdchd has joined #nixos
jasongro` has quit [Remote host closed the connection]
<joehh> they unblock the pipeline (with a comment as to testing done) which first copies the changes to the remote physical systems
<joehh> and then applies the changes
<{^_^}> [nixpkgs] @domenkozar merged pull request #46474 → datadog-agent: 6.1.4 -> 6.4.2 → https://git.io/fAabo
<{^_^}> [nixpkgs] @domenkozar pushed to master « datadog-agent: 6.1.4 -> 6.4.2 »: https://git.io/fAwb7
<joehh> assuming the changes are all good and the buildagent can still contact the remote machine, the changes are fixed/pinned
<rawtaz> what part of this is nixos stuff?
<rawtaz> i dont suppose you have the configs online?
<joehh> otherwise, after a timeout period (10-20 minutes), the remote machine will automatically rollback to the last good generation
<joehh> all the machines are nixos, all the interactions are nixops
<joehh> buildkite/git are the only other major components
<rawtaz> i'd love to check it out :)
<rawtaz> but i understand if it's not public
nD5Xjz has joined #nixos
<{^_^}> [nixpkgs] @domenkozar pushed 3 commits to release-18.09: https://git.io/fAwNO
jtojnar has quit [Ping timeout: 264 seconds]
sbdchd has quit [Ping timeout: 244 seconds]
<joehh> configs are not public, but the critical parts of the rollback stuff is visible here https://www.youtube.com/watch?v=J4DgATIjx9E&t=19m30s
<joehh> biggest difference is we reboot rather than relying on the activation scripts as a full reboot has been more reliable for our level of mistake
jtojnar has joined #nixos
<clever> joehh: using the test target, instead of switch?
<joehh> clever: boot
graphene has quit [Remote host closed the connection]
<joehh> then reboot
<clever> ah, i was thinking use test, so the boot config isnt updated
<clever> then any kind of hard failure that triggers a reboot just rollbacks
<joehh> we've had a number of firewall related changes that went bad that switch wouldn't fix it
booglewoogle has quit [Quit: Leaving]
<joehh> had to get a third party involved to go and visit machine
graphene has joined #nixos
nD5Xjz has quit [Ping timeout: 240 seconds]
<joehh> test would be an interesting approach - we are using nixops, so I don't know if it has that flexibility currently
<joehh> but that could be a good way to do it
jperras has joined #nixos
<joehh> yeah - right now we rely on nix-env --switch-generation XXX -p /nix/var/nix/profiles/system
<joehh> /nix/var/nix/profiles/system/bin/switch-to-configuration boot
<joehh> then reboot
<genesis> reboot github too :)
jasongrossman has joined #nixos
<rawtaz> ok so im trying to get open-vm-tools working, but the vmwareGuest service fails to start with error messages "[vmsvc] HostinfoReadDistroFile: input buffer too small" and "[vmsvc] HostinfoOSData: Error: no distro file found". based on https://github.com/vmware/open-vm-tools/blob/3a0205478e242bd672356d4eab6272d3b901fe6e/open-vm-tools/lib/misc/hostinfoPosix.c#L932 it looks like the /etc/os-release file is simply too large as a whole, doesnt fit in the buffe
<joehh> rawtaz: how are you trying to get it/them working?
<joehh> vmwareGuest has always just worked (tm) for me
<rawtaz> joehh: i would just try to make the contents of the strings in the file smaller, vmware guest tools probably dont need all of it to determine the os.
<rawtaz> joehh: yeah, im not sure why it doesnt work here. im on 18.03
<rawtaz> but this is the error message i get and the code seems straight forward, not sure what else it would be causing it
<rawtaz> it's IMO at a point where it would be worth a try editing the file just to see if it starts working with that.
<rawtaz> from a debugging perspective.
<joehh> I've always just done: services.vmwareGuest.enable = true;
<joehh> services.vmwareGuest.headless = true;
<joehh> I assume your context is different?
<clever> joehh: i had made the above autoreboot.nix to handle kexec'ing into a nixos that lacks the proper network config
<rawtaz> joehh: i have those two, and open-vm-tools in system packages. the service tries to start, but i get those error messages. seems straight forward to me?
<rawtaz> the error message and the code corresponds perfectly fine.
worldofpeace has quit [Quit: worldofpeace]
<joehh> I've never had open-vm-tools in system packages, but I doubt that is the issue
<matto> quit
<rawtaz> if i remove it it will probably just be added by the service enable directive i guess
logzet has joined #nixos
matto has quit [Quit: WeeChat 1.4]
<joehh> quite probably
<rawtaz> anyway ill try remounting that mountpoint where the file resides as rw and see if i can edit it then
silver has joined #nixos
<joehh> clever: interesting so just reboot if nothing else changed
<rawtaz> eh, there's no -u flag to `mount`, what the heck..
<clever> joehh: yeah
<clever> joehh: so you can kexec that image on ubuntu for ex, and if you fail to get into it within an hour, it reboots, and nothing has been installed, so ubuntu just boots back up
<joehh> nice
<joehh> very nice
<clever> but once you are in, you still need to be very careful
<clever> a recent user in here had formatted the host hdd, before noticing that he lacked zfs unstable support in kexec
<clever> and then after finishing the entire install with legacy boot, he mentioned he was on an apple machine, which can only boot uefi
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/dab31f2a9e6 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
rauno has quit [Ping timeout: 252 seconds]
<joehh> o ohhhh....... :( :(
<clever> but thats still recoverable with the ISO on a USB
<clever> my original goal for kexec, was to use it on remote baremetal machines, which has no undo :P
<joehh> at least no flights involved :)
sbdchd has joined #nixos
<joehh> have you succeeded with that goal?
<tobiasBora> I'm trying to add a .desktop to the "emacseditor" command that connects directly to the server. I saw that people usually use makeDesktopItem, so I tried to write my own makeDesktopItem... However I don't see how I could "plug" this into my emacs derivation: http://paste.debian.net/1041790
<{^_^}> [nixpkgs] @joachifm pushed to master « tor: 0.3.3.9 -> 0.3.4.8 »: https://git.io/fAwxg
<clever> joehh: the first machine had the raid array go south for some weird reason, and i had to debug it via ipmi, which required running 2 versions of windows in 2 types of vm's to deal with activex, lol
<tobiasBora> let me see if i can do something with it ;)
<clever> joehh: i then used that first machine as an example for the 2nd machine, which happened to have different network config, just because the datacenter likes to make every machine its own special little butterfly :P
<joehh> :( that sort of thing is why nixos is infectious
sbdchd has quit [Ping timeout: 240 seconds]
<rsa> running .../bin/switch-to-configuration switch activates a new configuration, but it doesn't symlink the profile
<clever> joehh: the 2nd machine turned out to be a virtualbox vm inside a windows host, lol
<clever> joehh: so, i just gave up on doing a remote install, did a local qemu install, and then converted it to a virtualbox disk image, and gave them the URL
Dedalo has joined #nixos
<rsa> so i thought nix-env -p /nix/var/nix/profiles/system --set ... would fix that, which it does
<clever> joehh: after booting it up, they asked for the root password, so they could fix the network config, then they noticed it was already working
<rsa> but it doesn't add the boot entry, hmm...
<rawtaz> hm, so by making a copy of /etc/os-release to /etc/release and editing that file to be much smaller, i got vmwareGuest to start. but when i enable shared folders in fusion i instead now get this: https://pastebin.com/yjnen1Sd
<rawtaz> joehh: are you using shared folders in fusion and nixos vm_
<rawtaz> ?
<joehh> :) I've had similar experiences when giving various it depts my vmware nixos images
<joehh> rawtaz: no
<joehh> normally just access network resources as regular network shares or tcp sockets
<{^_^}> [nixpkgs] @cryptix opened pull request #46521 → WIP/feedback request: add SSB tale:net → https://git.io/fAwpk
winem_ has joined #nixos
<rawtaz> success by mounting the shared folder manually: https://pastebin.com/QFFkRANC - now the question is why the open-vm-tools installed by Nix fails to do it with the errors shown in https://pastebin.com/yjnen1S
patrl has quit [Ping timeout: 240 seconds]
<rawtaz> is there anyone in here maintaining the open-vm-tools package thats interested in debugging it?
patrl has joined #nixos
<sphalerite> rawtaz: I haven't seen the named maintainer, joamaki, on IRC before. Probably easier to get hold of them by opening an issue on github and @ing them
<rawtaz> ok
<rawtaz> thanks
<{^_^}> [nixpkgs] @alyssais opened pull request #46522 → zsh-history-substring-search: init at 1.0.1 → https://git.io/fAwp2
<rawtaz> is there any point in trying the current configuration i have on a completely new install of nixos, to seee if that makes a difference? the current nixos i have was upgraded from 17.x to 18.03.
<rawtaz> i would guess its rather pointless
<joehh> rawtaz: I suspect your guess is right (ie pointless), but if it is easy to try, then it may shed some light
Twey has quit [Ping timeout: 240 seconds]
<rawtaz> sphalerite: would i open such an issue in the NixOS/nixpkgs repository?
<tobiasBora> Ok, so I tried to use override + makeDesktopItem, but I'm not success full... http://paste.debian.net/1041799
<sphalerite> rawtaz: yep
<rawtaz> danke
vmandela has joined #nixos
Twey has joined #nixos
<tobiasBora> The error is: error: undefined variable 'desktopItem' at /etc/nixos/emacs.nix:18:10
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/dab31f2a9e6 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
nD5Xjz has joined #nixos
nD5Xjz has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @stesie opened pull request #46523 → linphone: enable gtk ui → https://git.io/fAwjg
adetokunbo has quit [Quit: This computer has gone to sleep]
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
sbdchd has joined #nixos
jtojnar has quit [Remote host closed the connection]
xok has quit [Read error: Connection reset by peer]
xenog has joined #nixos
sbdchd has quit [Remote host closed the connection]
<rawtaz> hm. after upgrading to 18.03, should i change system.stateVersion to that from 17.09 ?
<srhb> rawtaz: Never ever do that unless the release notes tell you to
<rawtaz> good. i havent seen it in the release notes for 18.03
patrl has quit [Ping timeout: 252 seconds]
<symphorien> srhb: has it ever happened ?
<srhb> symphorien: The release notes telling us to? Not while I've used NixOS.
<rawtaz> if it never happened, how come it's on 17.09 in my install (that started on that version)? one can only presume that installing 18.03 from scratch would set it to 18.03.
<jasongrossman> Me neither.
<srhb> rawtaz: It's a migration protection
<rawtaz> in which case changing this one to 18.03 should be fine, no?
adetokunbo has joined #nixos
<srhb> Nope
<jasongrossman> I'm afraid the name system.stateVersion is super misleading. It's completely accurate, but still.
<rawtaz> hmm ok :o
<srhb> rawtaz: It will prevent eg. databases from being moved to another location that a newer version of eg. the postgres module uses
<srhb> rawtaz: So changing it without doing the migration by hand will just cause your databases to disappear, your cats to die and your soul to be void.
<rawtaz> i see. so it's more of a "stuff was installed and set up according to this version" setting
<srhb> rawtaz: It's always fine to _start_ a system at some version.
<srhb> rawtaz: Exactly.
<rawtaz> cool, thanks for the explanation.
<jasongrossman> rawtaz: Exactly, and that would be a better name for it.
<rawtaz> it might not be a FAQ, but perhaps that explanation should be added to the FAQs anyway?
gspia_ has joined #nixos
<srhb> The name is pretty spot on. The system is at the current state-version. ie. the stateful stuff was setup according to this version.
semilattice has joined #nixos
<srhb> rawtaz: Newer installers add a big fat note to the configuration.nix about it
<jasongrossman> rawtaz: It is in the documentation. The problem, I think, is that the name looks self-documenting but isn't.
<rawtaz> yeah i see a "dont change this or your cat's die" note here..
<jasongrossman> srhb: The name is spot on, and yet it constantly misleads people. Both true, sadly.
<srhb> Hm, okay.
<samueldr> IIRC there was an update (or proposed update) to the stateVersion comment
<srhb> Experience trumps principle. :-)
<samueldr> ,stateVersion
<{^_^}> Setting stateVersion to the latest release doesn't update anything and can only break your setup at best. If you want to regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually upgraded with the new value
<jasongrossman> rawtaz: Syntax matters in NixOS. Try searching for "cats die" without the apostrophe.
<samueldr> hm! I thought it was going to be a wiki FAQ entry :/
<rawtaz> jasongrossman: :D
<{^_^}> [nixpkgs] @xeji pushed commit from @romildo to master « deepin-image-viewer: init at 1.2.23 »: https://git.io/fArvo
nD5Xjz has joined #nixos
<{^_^}> [nixpkgs] @xeji closed pull request #46463 → deepin-image-viewer: init at 1.2.23 → https://git.io/fAaEc
<johanot> srhb: I don't have a cat. will it still die? :P
<samueldr> life... finds a way
<srhb> johanot: 'fraid so! It's a pretty dangerous thing.
<rawtaz> i think a good thing would be if the note in the configuration.nix added something like "see the FAQ for more info", so people are directed to https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion to understand this fully
<samueldr> i should add "4. you have the time to fix unintended consequences of changing stateVersion"
<johanot> srhb: uff scary stuff...
<samueldr> though, in that case, anything in the system should be found in the manual, so not in the wiki, but migrated from the wiki to the manual I guess
<symphorien> the factoid is not completely right, it can update postgresql for example
<samueldr> right, it'll change the version installed
<srhb> Hopefully only through versions that don't require pg_upgrade?
<samueldr> so not "doesn't update anything" but "won't upgrade your system"
<samueldr> srhb: using different stateful dirs IIRC
<srhb> That's surely a bug.
<samueldr> from 17.03 -> 17.09 I had a container without stateVersion and "lost" all data
<srhb> That's terrible.
<samueldr> (turns out everything was still in the stateful dir and put the stateVersion and everything was back)
<samueldr> it's a loaded airsoft-footgun; it may sting, but at least the data isn't touched
<srhb> I see, the dataDir is in fact dependent on the package version which may change despite stateVersion.
<srhb> That's not good.
<srhb> But yes, at least it's recoverable.
<srhb> I'm fine with breakage on stateVersion changes.
<samueldr> hmm, may change despite stateVersion? (haven't verified anything)
<srhb> services.postgresql.dataDir = mkDefault (if versionAtLeast config.system.stateVersion "17.09" then "/var/lib/postgresql/${config.services.postgresql.package.psqlSchema}" else "/var/db/postgresql");
<samueldr> that would be a scary proposition
<srhb> Note that package.psqlSchema is version dependent
<srhb> ie. it has 9.4, 9.6 subdirs
<srhb> So yes, that's exactly what can (and probably has?) happened
<samueldr> postgresql.package isn't set using stateVersion?
<srhb> The default is.
<{^_^}> [nixpkgs] @xeji merged pull request #46473 → nixos/doc: Add stable pre-release warning → https://git.io/fAa7W
<{^_^}> [nixpkgs] @xeji pushed commit from @srhb to master « nixos/doc: Add stable pre-release warning (#46473) »: https://git.io/fArf1
<srhb> Thankfully.
srid has joined #nixos
<srhb> So as long as you don't touch that, you're okay.
<srid> Where is `nix.conf` stored on Ubuntu (non-root install)?
iyzsong has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @xeji pushed commit from @srhb to release-18.09 « nixos/doc: Add stable pre-release warning (#46473) »: https://git.io/fArfb
<srhb> srid: Erm, non-root?
<srid> srhb: yea, i don't know. installed it on a ubuntu lxd container, as regular user.
<srid> `drwxr-xr-x 4 ubuntu root 4096 Sep 11 13:32 nix`
<srid> that's /nix
<srhb> Huh, no idea really. Clearly it can't touch /etc without root. :P
<srid> the nix commands work though
<symphorien> ~/.config/nix/nix.conf iirc
patrl has joined #nixos
<srhb> Speaking of postgres, did the module rewrite not make the cut for 18.09? :(
<srid> symphorien: I think you are right. I just created that file, added my config, and verified that they come through the output of `nix show-confing`
<symphorien> :) nix show-config is really helpful when debugging
<joehh> rawtaz, srhb: system.stateVersion is the sort of thing that makes me reluctant to upgrade remote hypervisors - probably ok, but not willing to risk consequences if it goes bad
<srhb> joehh: Just don't touch the value unless you have to... It's really no worse than that :P
<joehh> that is what I've learned tonight :)
<srhb> And if you have to, there's probably someone in here to hold hands with for comfort and guidance. ^^
Ariakenom has quit [Ping timeout: 250 seconds]
patrl has quit [Ping timeout: 252 seconds]
endformationage has joined #nixos
tzemanovic has quit []
<joehh> :) here is unbelievably helpful. People at work can't believe that someone called "clever" helped us with a problem instantly, but I'm still going to make sure I have some physical continencies (and someone friendly local) in place before I upgrade my more remote systems in the short term
<srhb> Just wait till #nixos becomes subscription only, it will be a gold mine.
<srhb> (kidding, of course)
<joehh> :)
<{^_^}> [nixpkgs] @xeji merged pull request #45666 → pdftag: init at 1.0.4 → https://git.io/fAYCZ
<{^_^}> [nixpkgs] @xeji pushed commit from @leenaars to master « pdftag: init at 1.0.3 (#45666) »: https://git.io/fArUs
<clever> joehh: by pure chance, somebody emailed me about hydra problems, while i was debugging a hydra problem, very similar to his, lol
<joehh> I am impressed with the depth of knowledge here across timezones. I'm in AU and have always had good assistance
<samueldr> some users even transcend timezones
<joehh> other IRC channels responses (helpful or not) have been very thin for AU/NZ people
<joehh> samueldr: i've noticed that....
<{^_^}> [nixpkgs] @samueldr merged pull request #46501 → perl-Module-Build-XSUtil: fix darwin build → https://git.io/fAwt1
<{^_^}> [nixpkgs] @samueldr pushed 3 commits to master: https://git.io/fArUP
<joehh> I think your nick is half of the amazement :) the smartest/most experienced people at $dayjob were stuck. We reached out to IRC and clever solves our problem in 30 seconds
reinzelmann has quit [Quit: Leaving]
<clever> joehh: i think part of my problem is that i am too eager to help people, even if it means loosing sleep or starving, lol
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to release-18.09: https://git.io/fArTG
<clever> i sometimes have to force myself to not answer questions
<joehh> :) and :(
sbdchd has joined #nixos
<Taneb> clever: what time zone are you in?
<clever> Taneb: Tue Sep 11 11:01:13 ADT 2018
<joehh> I know the feeling - hasn't been an issue here (my knowledge is still too low), but back when I was using salt, it was definitely a risk
<jasongrossman> joehh: I'm in Australia too.
<joehh> jasongrossman: qld? seems to be lots of queenslanders due to data61
<joehh> I'm in Melb
rauno has joined #nixos
<Taneb> clever: so, not too unreasonable right now
npmccallum has joined #nixos
<clever> Taneb: i woke up at 5am, and while debugging hydra issues, got an email about declarative jobsets in hydra, and responded within minutes
<Taneb> Maybe unreasonable *then*, but I'm not going to tell you to go to bed right now
<clever> lol
sbdchd has quit [Ping timeout: 272 seconds]
patrl has joined #nixos
<rawtaz> just curious, is there anything like NixOps for GuixSD ?
<{^_^}> [nixpkgs] @alyssais opened pull request #46524 → openssl: 1.1.0 -> 1.1.1 → https://git.io/fArkm
brodul has quit [Ping timeout: 276 seconds]
brodul has joined #nixos
garbas has quit [Ping timeout: 252 seconds]
fendor has quit [Ping timeout: 272 seconds]
<jasongrossman> joehh: NSW, and I don't knwo what data61 is. Well, I'm glad we have the states fairly evenly covered.
<rawtaz> i can reproduce the vmware guest tools issue with a completely new 18.03 nixos vm :) issue coming up.
lesh has quit [Ping timeout: 240 seconds]
garbas has joined #nixos
bbsl has quit [Remote host closed the connection]
<joehh> jasongrossman: :) good to hear - data61 is the "disruptive" offshoot from CSIRO
<jasongrossman> Oh I see!
<joehh> they do a fair bit of haskell and functional programming which includes nix
<jasongrossman> Hardware purchase time. My old MacBook has just died, and I'd like something non-Apple but don't really know where to start. Any NixOS hardware issues I need to know about, please, anybody?
Guanin_ has quit [Remote host closed the connection]
<jasongrossman> joehh: Cool.
mayhewluke has quit [Ping timeout: 245 seconds]
<srhb> jasongrossman: Pretty nice generation of Thinkpads this year..
<clever> jasongrossman: i recently switched to https://system76.com/laptops/kudu and havent had any real issues
<jasongrossman> Great, thanks srhb and clever.
mayhewluke has joined #nixos
Twey has quit [Ping timeout: 240 seconds]
Henson has joined #nixos
<jasongrossman> I forgot to mention that I'd like to be able to put in 2.5" drives easily.
<jasongrossman> I mean SATA drives.
<clever> jasongrossman: the kudu has room for a single sata drive, and a single nvme drive
spear2 has quit [Ping timeout: 244 seconds]
<jasongrossman> :-)
Twey has joined #nixos
<clever> i got mine with only nvme on it, so there are no sensitive moving parts to deal with
Guanin has joined #nixos
<jasongrossman> Right, wise. I just want to put in a 2.5" SSD that I already have.
orivej has quit [Ping timeout: 245 seconds]
<Henson> hello everyone. Is there a way I can specify in a derivation a runtime dependence on other derivations? I know Nix does some automatic dependency checking, but I'm compiling Python to an executable using Nuitka, and need to specify that the resulting derivation depends on a bunch of Python packages. I've tried adding them to propagatedBuildInputs, but that doesn't help.
jtojnar has joined #nixos
<clever> ,runtimeDeps Henson
<{^_^}> Henson: In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
xok has joined #nixos
grumble has quit [Ping timeout: 600 seconds]
joehh has quit [Ping timeout: 252 seconds]
* Henson tries it out
grumble has joined #nixos
Yaniel has quit [Max SendQ exceeded]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @Chiiruno opened pull request #46525 → nixos/zeronet: Fix TOR permissions, add torAlways option → https://git.io/fArLy
copumpkin has quit [Quit: Textual IRC Client: www.textualapp.com]
jedahan has joined #nixos
Guanin has quit [Remote host closed the connection]
woodson has joined #nixos
wpcarro has quit [Remote host closed the connection]
xok has quit [Quit: Leaving.]
Yaniel has joined #nixos
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lesh has joined #nixos
rouma has joined #nixos
copumpkin has joined #nixos
rouma has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @timokau merged pull request #46522 → zsh-history-substring-search: init at 1.0.1 → https://git.io/fAwp2
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fArmv
<manveru> any ideas why nixpkgs-unstable is blocked again?
copumpkin has quit [Client Quit]
<manveru> seems like something related with platform changes? https://hydra.nixos.org/build/81199744/nixlog/1
<srhb> manveru: Same as last time, nixpkgs.tarballs is blocked
<srhb> manveru: pure
<srhb> Woops
<Henson> clever: thanks for the tip. I found that runtimeDeps was used in the azure-agent.nix derivation in conjunction with wrapProgram, and it perfectly suited my use case.
<{^_^}> #46517 (by srhb, 4 hours ago, open): Revert build host target platform deprecation on master
<manveru> ah, ok :)
m0rphism has quit [Quit: WeeChat 2.0]
<clever> Henson: your welcome
m0rphism has joined #nixos
Kelppo has quit []
semilattice has quit [Ping timeout: 252 seconds]
hyper_ch2 has quit [Quit: Page closed]
m0rphism has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @ttuegel merged pull request #46383 → qt5.qtwebkit: Fixes modules src being subtly broken. → https://git.io/fA20h
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fArOo
m0rphism has joined #nixos
nD5Xjz has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @samueldr pushed to release-18.09 « qt5.qtwebkit: Fixes modules src being subtly broken. »: https://git.io/fAr3G
erasmas has joined #nixos
pie_ has joined #nixos
<{^_^}> [nixpkgs] @bitmappergit opened pull request #46526 → Update default.nix → https://git.io/fAr3V
xok has joined #nixos
copumpkin has joined #nixos
schjetne has joined #nixos
wpcarro has joined #nixos
johanot has quit [Quit: leaving]
jedahan has joined #nixos
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
orivej has joined #nixos
jedahan has quit [Ping timeout: 272 seconds]
worldofpeace has joined #nixos
logzet has quit [Ping timeout: 250 seconds]
semilattice has joined #nixos
sbdchd has joined #nixos
ixxie has joined #nixos
<ixxie> Anybody got a nice pattern to modularize their home-manager configuration for Vim?
Guest150 has quit [Ping timeout: 250 seconds]
jedahan has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #46507 → nodejs: 6.14.3 -> 6.14.4 → https://git.io/fAw8b
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/fArZM
<{^_^}> [nixpkgs] @markuskowa opened pull request #46528 → pdsh: set default module to ssh, remove obsolete fixes → https://git.io/fArnf
waleee has joined #nixos
gmarmstrong has joined #nixos
gmarmstrong has quit [Remote host closed the connection]
Judson has joined #nixos
Judson is now known as Guest37363
pie_ has quit [Read error: Connection reset by peer]
pie__ has joined #nixos
nD5Xjz has joined #nixos
spear2 has joined #nixos
simukis has quit [Ping timeout: 272 seconds]
revtintin has joined #nixos
<rawtaz> for anyone interested in the open-vm-tools issues, https://github.com/NixOS/nixpkgs/issues/46527 and https://github.com/NixOS/nixpkgs/issues/46529 i summed it all up
<{^_^}> #46527 (by rawtaz, 41 minutes ago, open): open-vm-tools: /etc/os-release is too large
<{^_^}> #46529 (by rawtaz, 14 minutes ago, open): open-vm-tools: Shared folders not working
<samueldr> wow, that's terrible from the open vm tools to fail on a larger os-release :/
knupfer has joined #nixos
selaux has quit [Remote host closed the connection]
<rawtaz> yeah.. quite silly that the file cant be that large. i think it was just 340 bytes or so, even
<samueldr> doesn't look like the message is for the whole file
<samueldr> (looking at the code)
<samueldr> looks like it's the size of the field being read
<rawtaz> hm i think it is, but i could be wrong.
<samueldr> (though I may be wrong)
<rawtaz> right above https://github.com/vmware/open-vm-tools/blob/3a0205478e242bd672356d4eab6272d3b901fe6e/open-vm-tools/lib/misc/hostinfoPosix.c#L932 you have buf_sz = st.st_size; and if (fstat(fd, &st)) { so it looks to me like it's for the file as a whole, before it starts digging into its contents
seku has quit [Quit: Leaving]
<samueldr> ah, right
<rawtaz> i never found how big it can be though. but just removing the three last lines was adequate
<samueldr> 1024bytes possibly
<rawtaz> yeah but this is the size of the original (failing) file: -r--r--r-- 1 root root 318 Jan 1 1970 /nix/store/1ylqnn8c0zx91szrq03i0gq62m6djkk9-etc-os-release
<rawtaz> just 318 bytes
<samueldr> yea, I was going to say I must be wrong
<NinjaTrappeur> Hey I'm trying to create a derivation for a electron application I want to build from the source. I'm looking for an example in the nixpkgs archive without any success so far... Do you have any potential example in mind?
<xok> I use fetchgit and it asks me for a hash...
<rawtaz> im pondering if there could be something with the patches nixos presumably does that changes the size of that buffer to some really small value?
<xok> how do I get that hash, does anyone know?..
<symphorien> ,tofu xok
<{^_^}> xok: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<samueldr> NinjaTrappeur: you were pinged there https://github.com/NixOS/nixpkgs/pull/46521
<rawtaz> xok: i know, moment!
<{^_^}> #46521 (by cryptix, 3 hours ago, open): WIP/feedback request: add SSB tale:net
<sphalerite> rawtaz: maybe it doesn't like it being a symlink? Just a shot in the dark
<Myrl-saki> I'm curious.
<Myrl-saki> Oh, this does seem possible.
<NinjaTrappeur> samueldr, yup, I'm actaully looking for an example to fix the issue cryptix ran into :)
<Myrl-saki> stdenv.mkDerivation { name = "test"; buildInputs = [ "/nix/store/ywyy330fn802fxs75vrgsk2a59pdp8d4-fbcli-0.1.0.0.drv" ]; }
<rawtaz> xok: here's an example: nix-prefetch-url --unpack https://github.com/astroidmail/astroid/archive/v0.11.1.tar.gz
sheyll has joined #nixos
<rawtaz> xok: that can then be used with sha256 = "1z48rvlzwi7bq7j55rnb0gg1a4k486yj910z2cxz1p46lxk332j1"; in your config
<samueldr> NinjaTrappeur: sorry, just thought I'd mention, haven't yet read the issue
<sheyll> hi all!
<Myrl-saki> Okay, I'm stupid, that doesn't work.
<ldlework> hi sheyll
<rawtaz> sphalerite: may be! unfortunately i dont know how to modify it to replace the link with a regular file. the mount command doesnt have -u to update the mount to rw
<Myrl-saki> I'm confused now. How do I use a .drv in Nix?
<NinjaTrappeur> no problem :)
<Myrl-saki> Like, what if I don't wanna build the .drv beforehand?
<sheyll> anyone using haskell-ide-engine (hie-nix)?
<sphalerite> rawtaz: path=$(readlink -f /etc/os-release); rm /etc/os-release ; ln -s $path /etc/os-release
<sphalerite> err
<sheyll> in a nix based haskell project?
<symphorien> Myrl-saki: replace nix-build with nix-instantiate
<Myrl-saki> nix-repl> :b /nix/store/ywyy330fn802fxs75vrgsk2a59pdp8d4-fbcli-0.1.0.0.drv
<sphalerite> rawtaz: in the last bit rather than ln, do cp $path /etc/os-release
<Myrl-saki> error: expression does not evaluate to a derivation, so I can't build it
<Myrl-saki> symphorien: "Myrl-saki | Like, what if I don't wanna build the .drv beforehand?"
<Myrl-saki> symphorien: I'm guessing I could technically us nix-store -q --outputs
jensens has quit [Ping timeout: 250 seconds]
<symphorien> ah I thought "build" as in "nix-build"
<rawtaz> sphalerite: oh.. so the /etc isnt mounted read only.. lol
<rawtaz> xok: let me know if that helped
<Myrl-saki> Yeah, I tried nix-store -q --outputs and that also requires it to be built beforehand.
<Myrl-saki> Welps, not really a problem.
<Myrl-saki> You'd often want to refer to the file iteslf anyway.
<Myrl-saki> Oh wait, now I remember why.
<sphalerite> rawtaz: nope. /etc is populated statefully by nixos's activation script with symlinks into the (read-only) store
<Myrl-saki> I want to use traditional Nix stuff, such as `overrideAttrs`
<Myrl-saki> But I'm guessing that that's already lost when it's saved to a .drv.
xok has quit [Read error: Connection reset by peer]
<rawtaz> sphalerite: i verified that it doesnt make a difference if the /etc/os-release file is a regular file or a symlink, same symptoms
<sphalerite> rawtaz: now that it's a regular file, you could try shortening it as well to see if it makes a difference maybe
<rawtaz> sure, it will probalby work if i remove the last three lines. wil try it.
<rawtaz> thing is, it looks through both os-release and release
<rawtaz> yeah, removing the last three lines to make /etc/os-release shorter/smaller works, just like with /etc/release as a substitute
<clever> Myrl-saki: nix-store --query --binding out /nix/store/foo.drv
<rawtaz> so yes, it should be considered established that the size of that file is one of the problems
<Myrl-saki> clever: Right, but it errors since the drv fails the dependency check.
<Myrl-saki> the drv, being the resulting file.
<sphalerite> rawtaz: maybe patching it to increase the buffer size will help then?
<clever> Myrl-saki: ah, yeah, nix is out of the story once you have .drv files
<rawtaz> sphalerite: maybe. i guess one should first investigate what the current size limit is, and why it's so low. i mean, if as you say it should be 1024, then it's really weird that a file 340 bytes large fails
<Myrl-saki> clever: Look at the bright side, this means that all .drv files are effectively GPL. :)
<clever> lol
<sphalerite> rawtaz: maybe it decodes it to UTF-32 or something, making each character take up 4 bytes rather than one. Just a completely random guess of course, but 340*4 = 1360 > 1024
<Myrl-saki> I tried compiling my webkit project...
<Myrl-saki> [myrl@myrl:~/Development/ISMISViewer]$ nix build
<rawtaz> sphalerite: hm, thats a good guess :) even if it sounds far-fetched its worth investigating
<Myrl-saki> [2/1338 built, 4/44/786 copied (34.2/3000.4 MiB), 47.8/2021.9 MiB DL]
<Myrl-saki> Holy crap.
<Myrl-saki> Anyone wanna make a guess on what that does?
<rawtaz> sphalerite: i think that's beyond my current skill set with nixos though :o
Guest37363 is now known as judson
<judson> Last I checked, nix-shell wasn't able to add a gc-root. Is that still the case?
<rawtaz> if someone could show me the proper way to apply and test a simple patch for this little size constant, i'd be curious and try it
<Myrl-saki> judson: What's wrong with nix-build?
<rawtaz> unless it requires setting up a huge dev env. i imagine it can be done with an overlay or similar
<sphalerite> rawtaz: nixpkgs.overlays = [(self: super: {open-vm-tools = super.open-vm-tools.overrideAttrs (o: {patches = (o.patches or []) ++ ./your-patch-file.patch;});})];
<rawtaz> whaddayaknow
<judson> Myrl-saki, I'm not sure how to reply to that. I need a nix-shell, so nix-build doesn't do what I need.
<{^_^}> [nixpkgs] @oxij opened pull request #46530 → RFC #33 → https://git.io/fAr8t
woodson has quit [Ping timeout: 272 seconds]
<Myrl-saki> judson: I mean what's wrong with using nix-build to add a gcroot?
<Myrl-saki> nix-build then nix-shell, basiclaly.
<ldlework> Is anyone here using qutebrowser? The hacks to make it find the stuff it usually puts in ~/.local/share/ into the nix store doesn't seem to work properly.
<rawtaz> sphalerite: sorry but where in my configuration.nix would i place that? i currently have almost a default configuration.nix
<rawtaz> containing two {}'s
Twey has quit [Quit: WeeChat 2.1]
<sphalerite> rawtaz: at the top level along with all the other options
<judson> Looking there. Still plagued by second-Chrome install.
<rawtaz> sphalerite: like https://pastebin.com/4i1t6efr ?
<sphalerite> judson: if you really want to go all the way you can use my crazy script https://github.com/lheckemann/dotfiles/blob/master/gcroots.sh
sbdchd has quit [Remote host closed the connection]
<Myrl-saki> "Even if you are using Nix only occasionally, it is easy for /nix/store to go beyond 50G."
<sphalerite> rawtaz: yep that should work
<Myrl-saki> This never happened to me until I increased my disk size.
<rawtaz> thanks then. i will try that when i get some time. i need to continue focusing on getting other things to work :)
<Myrl-saki> OTOH, maybe it's because it literally couldn't happen to me until I increased my disk size.
rfold has joined #nixos
<judson> You can see why I might wish that nix-shell had a flag to Just Do This.
<ldlework> no qutebrowser users?
<judson> sphalerite, that doesn't look so crazy. I might update my ~/.direnvrc...
sbdchd_ has joined #nixos
<sphalerite> judson: it doesn't have any facility for cleaning up or updating though. Also it creates a whole bunch of invalid roots which the GC will complain about (but continue working)
<tobiasBora> I'm trying to fix my ntp issue.
<tobiasBora> So I installed ntp
<tobiasBora> But I can't even do "ntpdate 0.europe.pool.ntp.org
<tobiasBora> (or any server, debian, nixos, google...)
<tobiasBora> I've the error 11 Sep 20:30:16 ntpdate[2975]: no server suitable for synchronization found
sbdchd__ has joined #nixos
xok has joined #nixos
<tobiasBora> Do you think it is a nixos issue (port to open?)
<tobiasBora> or a sys admin error?
<tobiasBora> (someone blocked the port for the computer)
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cransom> most likely, the port is blocked.
<sphalerite> tobiasBora: yeah sounds about right. Are you at work?
<sphalerite> maybe you have a local ntp server you can use
<cransom> it became common to block ntp and require use of your own internal ntp servers due to DoS prevalance
sbdchd_ has quit [Ping timeout: 244 seconds]
<sphalerite> clever: any idea if there's a way around "syscall kexec_file_load not available." which kexec reports whenever I pass a kernel command line to it?
sbdchd__ has quit [Ping timeout: 252 seconds]
<sphalerite> well, baking my desired command line into the kernel Iguess. But that's not feasible for my use case
<clever> [root@nas:~]# cat /proc/config.gz | gunzip | grep KEXEC
<clever> CONFIG_KEXEC_FILE=y
<clever> sphalerite: what does this report for you?
johanot has joined #nixos
<sphalerite> clever: there's zgrep btw, shorter to type ;) I only get CONFIG_KEXEC_CORE=y and CONFIG_KEXEC=y
adetokunbo has quit [Quit: This computer has gone to sleep]
<clever> CONFIG_KEXEC_FILE enables building kexec_file.c
pie_ has joined #nixos
<sphalerite> clever: yeah, I don't have any control over the kernel that I'm kexecing from though
<clever> and this defines the syscall your missing
xenog has quit [Remote host closed the connection]
xenog has joined #nixos
<sphalerite> clever: Wonderful. Not helpful though ;)
Boomerang has quit [Ping timeout: 252 seconds]
pie__ has quit [Ping timeout: 240 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
nD5Xjz has quit [Ping timeout: 244 seconds]
sbdchd_ has joined #nixos
sbdchd has joined #nixos
georges-duperon has joined #nixos
sbdchd__ has joined #nixos
aminechikhaoui has quit [Ping timeout: 252 seconds]
<clever> sphalerite: is insmod enabled?
<clever> sphalerite: you might be able to compile a kexec_file.ko and load it
sbdchd__ has quit [Remote host closed the connection]
sbdchd__ has joined #nixos
sbdchd_ has quit [Ping timeout: 240 seconds]
sbdchd has quit [Ping timeout: 240 seconds]
jedahan has joined #nixos
<xok> I'm doing "services.nginx.enable = true;"...
<xok> I also want to create a virtual host and set its root directory to a relative path of the nginx conf files...
<ldlework> What would be the best way to do a little bash interpolation thing such that you could get a file from a nix package for the current location in the store for that file
<xok> how do I do something like this in a main file: include ${cfg.package}/conf/fastcgi_params;
<xok> the nixops alerts cfg variable is not found...
<ldlework> like if there is a file $out/share/foobar.txt how can I get the current store path for that package
revtintin has quit [Quit: WeeChat 1.9.1]
jperras has quit [Ping timeout: 252 seconds]
xenog has quit [Ping timeout: 246 seconds]
stanibanani has joined #nixos
<symphorien> xok: cfg is a let binding higher in the file
stanibanani has left #nixos [#nixos]
<ldlework> "$(nix-build '<nixpkgs>' --no-build-output -A fooPkg)/share/foobar.txt" maybe
<ldlework> yeah it works nice
<xok> symphorien: yes, and that works if I use it in a separate file...
<xok> symphorien: but in the main file I can't to add: { config, pkgs, ... }:
<symphorien> "main file" ?
<xok> yes, the main file for the nixops ...
<symphorien> if it is nixops specific I don't know
<xok> nixops create -d dddddd main.nix
Ericson2314 has joined #nixos
disasm_ has joined #nixos
<clever> xok: machine = { config, pkgs, ... }: { ...
jperras has joined #nixos
<clever> for nixops, each value in the main.nix file is a function, that you would have normally put in configuration.nix
<xok> clever: thank you very much, it worked like a charm!...
<{^_^}> [nixpkgs] @costrouc opened pull request #46531 → Updating and adding all dependencies of future openstack sdk modules pull request → https://git.io/fAruP
disasm has quit [Ping timeout: 246 seconds]
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nD5Xjz has joined #nixos
aminechikhaoui has joined #nixos
<Myrl-saki> Wtf.
<Myrl-saki> nix build now makes a result?
<Myrl-saki> Or did it always make a result?
<tilpner> nix-build does too
<Myrl-saki> Okay, I think I misrembered things.
theunknownxy has joined #nixos
lawlesseel has quit [Ping timeout: 256 seconds]
<tilpner> --no-out-link disabled that, but "nix build" doesn't even print the path to stdout
<Myrl-saki> `nix build --no-out-link` was the problem, because there's no result, and no stduot.
<Myrl-saki> Yeah.
sigmundv has quit [Ping timeout: 252 seconds]
<elvishjerricco> I really wish nix build printed paths on stdout...
* tilpner too
<tilpner> #1930, if anyone wants to subscribe
<{^_^}> https://github.com/NixOS/nixpkgs/pull/1930 (by madjar, 4 years ago, merged): silver-searcher: avoid -lgcc_s on darwin
<tilpner> nix#1930
<{^_^}> https://github.com/NixOS/nix/issues/1930 (by ElvishJerricco, 27 weeks ago, open): Nix 2.0: Print out path to stdout with nix build
jedahan has joined #nixos
<elvishjerricco> tilpner: I might just try implementing it and seeing if it gets merged :P
<tilpner> With or without GC safety?
<elvishjerricco> tilpner: I guess I can make sure it prints before the process releases the lock or something, but ultimately I'm not going to focus on making it safer than `nix-build` currently is
<ldlework> QuteBrowser has userscripts, and one of them uses the Python package tldextract. Isn't this typically enough to get an application to have access to an additional Python package at runtime?
vmandela has quit [Ping timeout: 252 seconds]
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @vbgl opened pull request #46532 → ocamlPackages.batteries: 2.8.0 -> 2.9.0 → https://git.io/fAr28
<teej> I was unable to install Nix because it sas `sh: sorry, there is no binary distribution of Nix for your platform`. Will armhf be supported?
patrl has quit [Ping timeout: 252 seconds]
<teej> Actually I might be using arm64.
<sphalerite> teej: no, not officially
<sphalerite> teej: aarch64 is supported
<sphalerite> but 32-bit arm isn't
Thra11 has joined #nixos
<sphalerite> which isn't to say it doesn't work — I run nixos on my 32-bit arm chromebook
<teej> sphalerite: Thanks. I'll take a look.
<teej> I just wanted to use the Nix package manager on my Raspberry Pi 2 Model B.
johnw_ has joined #nixos
jedahan has joined #nixos
<ldlework> Is my problem that qutebrowser is being passed a python3 nix-package and the tldextract python package I'm adding to propagatedBuildInputs is not seen by the passed in python interpreter used by qutebrowser?
<elvishjerricco> teej: You might be able to build it from source and bootstrap the installation yourself.
<ldlework> And if so, how would I ever go about adding packages to that python interpreter?
johnw_ has quit [Read error: Connection reset by peer]
simukis has joined #nixos
<ldlework> i guess the general question is, how to override/add packages to a Python interpreter passed to a package by way of callPackage?
<sphalerite> ldlework: using .override
<sphalerite> ldlework: as always when replacing callPackage stuff
<{^_^}> [nixpkgs] @bitmappergit closed pull request #46526 → dart: 1.24.3 -> 2.0.0 → https://git.io/fAr3V
graphene has quit [Remote host closed the connection]
<sphalerite> ldlework: oh so it's not actually a finished python interpreter that's passed in
<sphalerite> ldlework: yeah no then overrideAttrs should be right
graphene has joined #nixos
<ldlework> sphalerite: its a "python3Packages" that's passed in
<sphalerite> ldlework: just put pkgs.python3Packages.tldextract in there
<sphalerite> should work
<ldlework> sphalerite: tldextract isn't in nixpkgs
<sphalerite> oh
<sphalerite> ¯\_(ツ)_/¯
* sphalerite is leaving now
<ldlework> :(
<ldlework> but how to get it into python3Packages passed in via callPackage?
<{^_^}> [nixpkgs] @bitmappergit opened pull request #46533 → dart: 1.24.3 -> 2.0.0 → https://git.io/fArVv
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
xenog has joined #nixos
Henson has quit [Ping timeout: 252 seconds]
semilattice has quit [Ping timeout: 252 seconds]
knupfer has quit [Remote host closed the connection]
<ldlework> i have no damn idea lol
_ris has joined #nixos
knupfer has joined #nixos
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jedahan has joined #nixos
vaibhavsagar has quit [Remote host closed the connection]
jedahan has quit [Client Quit]
vaibhavsagar has joined #nixos
jedahan has joined #nixos
jedahan has quit [Client Quit]
rihards has joined #nixos
<exarkun1> I am trying to build a new librustzcash but it has a Cargo.lock that references a git+https uri (blake2-rfc) which I think causes the build to explode trying to ... eh, I don't know, do something. I don't know Rust. What do I do about that?
jedahan has joined #nixos
jedahan has quit [Client Quit]
jedahan has joined #nixos
jedahan has quit [Client Quit]
knupfer has quit [Client Quit]
ma27 has quit [Quit: WeeChat 2.2]
<xenog> I have made sure that some Haskell packages I built work well against Nix. How is the process by which NixOS includes new Haskell packages?
<xenog> I have seen that there is a huge file with Haskell packages listed that is auto-generated. I don't understand how it is auto-generated, and if there is a process I can follow to make sure that my packages get included.
ma27 has joined #nixos
exarkun_ has joined #nixos
matthewbauer has joined #nixos
knupfer has joined #nixos
logzet has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #46534 → misc pkgs: Darwin -> Linux cross compilation → https://git.io/fArrm
hotfuzz has quit [Read error: Connection reset by peer]
sbdchd__ has quit [Remote host closed the connection]
hotfuzz has joined #nixos
sbdchd has joined #nixos
sigmundv has joined #nixos
sbdchd has quit [Ping timeout: 246 seconds]
xenog has quit [Remote host closed the connection]
sigmundv__ has joined #nixos
xenog has joined #nixos
sbdchd has joined #nixos
sbdchd_ has joined #nixos
logzet has quit [Remote host closed the connection]
<ldlework> I have a system Python 3 interpreter installed but I don't know where it comes from
<ldlework> lol
sbdchd has quit [Ping timeout: 244 seconds]
rihards has quit [Quit: rihards]
rihards has joined #nixos
sbdchd_ has quit [Ping timeout: 264 seconds]
<exarkun1> I stuck a patch in cargoPatches and it didn't get applied :/ Anymore. On the first build host it worked fine, at least once.
<symphorien> exarkun1: https://github.com/NixOS/nixpkgs/pull/46362 this should fix git dependencies
<{^_^}> #46362 (by symphorien, 3 days ago, open): Non broken fetchcargo
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to release-18.09: https://git.io/fArKi
<teej> elvishjerricco: Thanks. I may try it some other time.
sbdchd has joined #nixos
<exarkun1> symphorien: it ... what? git+https://... dependencies will just work once that PR is accepted?
<symphorien> as long as cargo vendor handles them correctly, they should
jmc has joined #nixos
<symphorien> exarkun1: see https://github.com/NixOS/nixpkgs/issues/41518 for more background
<{^_^}> #41518 (by jbboehr, 13 weeks ago, open): buildRustPackage failures with git repos
<exarkun1> I don't know what that means, alas.
<exarkun1> When could one reasonably expect that PR to be accepted? And appear in the ... stable channel?
<jmc> Hello, a haskell package I'm trying to use was updated two weeks ago on hackage, but nixpkgs still has an old version. Should I just be patient, or stake this up with the maintainer of the package? nixpkgs is usually fairly up-to-date, no?
<jmc> s/stake/take
<symphorien> no idea. it will at best appear in 18.09 at the end of the month.
kenshinC1 has joined #nixos
rprije has quit [Read error: Connection reset by peer]
<jmc> symphorien: alright, patience it is, thanks
<exarkun1> It probably makes more sense for me to figure out a work-around meanwhile. Setting aside this project for 3 weeks isn't really an option.
<symphorien> jmc: this was for exarkun1 , sorry
<symphorien> exarkun1: you can use the head of the PR as nixpkgs
<exarkun1> Why doesn't `buildRustPackages` apply the patches I give it in `cargoPatches`"?
<jmc> symphorien: oh oops :^)
rprije has joined #nixos
<cocreature> jmc: major upgrade?
<{^_^}> [nixpkgs] @The-Compiler opened pull request #46535 → qutebrowser: Fix patching of standarddir.py → https://git.io/fAr64
<exarkun1> symphorien: maybe but I don't know how
<jmc> cocreature: yes
logzet has joined #nixos
<cocreature> jmc: afaik nixpkgs mostly follows stackage lts for packages that are in stackage so it doesn’t do major upgrades
ancarda has joined #nixos
<symphorien> 1/ clone nixpkgs 2/ git fetch origin refs/pull/46362/head 3/ git checkout FETCH_HEAD 4/ nix-build -I nixpkgs=/path/to/checkout myfile.nix
<ldlework> symphorien: can they also use fetchtarball to download nixpkgs at that rev, and use just the buildRustPackage from that nixpkgs version?
<jmc> cocreature: I see, so I'd have to wait for LTS 13?
<cocreature> jmc: no, you can just override the version. callHackage makes that pretty convenient
<symphorien> ldlework: probably yes
<jmc> cocreature: cool, I'll take a look at that, thanks
<{^_^}> [nixpkgs] @globin merged pull request #46523 → linphone: enable gtk ui → https://git.io/fAwjg
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fAr6K
kenshinC1 has quit [Ping timeout: 244 seconds]
<exarkun1> is there a pretty printer for .drv?
<symphorien> nix show-derivation
<ldlework> In this package for qutebrowser, the only place the userscripts are mentioned are this "install" line: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/qutebrowser/default.nix#L86 AND YET, the hashbang has been changed to use the nix installed python interpreter: https://gist.github.com/dustinlacewell/531bd6bff7c0384060a2cf4370f3e66b#file-qute-lastpass-py-L1
<ldlework> how does this happen?
graphene has quit [Read error: Connection reset by peer]
<symphorien> ldlework: this happens automatically as part of the fixupPhase on all $out
<symphorien> on all executable files
<ldlework> symphorien: ok, how do I add a python package to that interpreter?
* ldlework prays you know the answer
<symphorien> replace python in the buildinputs by python.withPackages(ps: [ps.foo])
tmaekawa has joined #nixos
<symphorien> patchShebang will use what it finds on the PATH
<sphalerite> teej: I'm home now so I can you get nix binaries working on your pi
<sphalerite> teej: if you have an existing nix installation on another machine it's pretty simple to cross-compile a nix which you can then copy over to "bootstrap" it
<{^_^}> [nixpkgs] @timokau merged pull request #46367 → Fixes the lldpd service not starting on NixOS 18.09 → https://git.io/fA2nW
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fAriU
tmaekawa has quit [Client Quit]
graphene has joined #nixos
<exarkun1> Can't build this: https://github.com/LeastAuthority/S4-2.0/blob/2.zcash-sprout/ops/zcash/blake2-rfc.nix because "ERROR: The Cargo.lock file doesn't exist" but the item in `cargoPatches` clearly creates `Cargo.lock`.
graphene has quit [Remote host closed the connection]
<symphorien> are you sure it creates the file in the right directory ?
graphene has joined #nixos
<exarkun1> no. how could I be sure of that?
<exarkun1> It doesn't tell me anything about what it's doing with the patches. How do I find out?
<symphorien> add -K to nix-build and examine the content of the directory afterwards
<symphorien> also: preUnpack = "set -x"; might help
<ldlework> symphorien: I don't see where the Python interpreter is actually provided to the qutebrowser package... https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/qutebrowser/default.nix#L42
<{^_^}> [nixpkgs] @rembo10 opened pull request #46538 → sickgear: init at 0.17.5 → https://git.io/fArPs
<symphorien> well it is, by python3Packages.buildPythonApplication
<symphorien> in this specific case I don't know how to solve your problem
jmc has quit [Ping timeout: 252 seconds]
<exarkun1> with `preUnpack = "set -x";` it still doesn't show me anything about patches. with --keep-failed, I see there is no Cargo.lock created anywhere in the source tree.
rprije has quit [Read error: Connection reset by peer]
<ldlework> lol crap
<sphalerite> clever: it seems CONFIG_KEXEC_FILE can only be set to y or n, not m :(
rprije has joined #nixos
<clever> sphalerite: dang
<ldlework> clever: a package takes python3Packages via callPackage and uses python3Packages.buildPythonApplication to provide the derivation. How do you provide an extra Python library to this package?
waleee has quit [Quit: WeeChat 2.2]
<xok> I am using services.mysql
<adamantium> clever: In nixos is there a way to command on-the-fly which pool/ROOT/dataset should be used for root from grub.cfg? e.g. from grub edit menu in gentoo, set kernel parameter root=zfs:zroot/ROOT/somedataset and somedataset would be used for the root filesystem.
<xok> and especially: initialDatabases
<exarkun1> nixpkgs is from 18.03 on this host, which of course does not have the `cargoPatches` feature.
<xok> can anyone explain what path should I provide to it?..
<exarkun1> (yay silent errors)
<xok> the database doesn't get populated...
graphene has quit [Read error: Connection reset by peer]
<sphalerite> xok: initialDatabases is only created on the first start of the mysql server I think
<sphalerite> xok: maybe you want ensureDatabases
<xok> sphalerite: well, I am aware of it and I do a complete remove and reinstall...
<xok> including rm -rvf /var/db/mysql/
<xok> and "ensureDatabases" just ensures there's a database...
<xok> I want to import a dump into the newly created database...
<clever> xok: the prestart scripts will import the initialDatabases if ${dataDir}/mysql doesnt exist
<clever> and the dataDir is either /var/lib/mysql or /var/mysql, depending on your stateVersion
<clever> you ran rm on the wrong dir i believe
<xok> no, I did it on a right dir...
<xok> because I've got this: 56 dataDir = "/var/db/mysql";
<clever> ah
<clever> and was the service stopped when you did rm?
<sphalerite> xok: touch /tmp/mysql_init && systemctl restart mysql might also do the trick
<xok> sphalerite: nice trick, will keep thatin mind...
<{^_^}> [nixpkgs] @LnL7 opened pull request #46540 → perl-TestRunCmdLine: disable tests on darwin → https://git.io/fArXV
graphene has joined #nixos
<xok> clever: yes...
<sphalerite> hm isn't that kind of a security problem, anyone can create /tmp/mysql_init…
<xok> sphalerite: yeah, but only root can restart mysql, no?..
<sphalerite> xok: yes, but it also restarts on reboot
<clever> xok: next time you boot
<xok> so, what path should I provide to the initialDatabases?..
<xok> the directive did work I know because it created the database...
<clever> { name = "foodatabase"; schema = ./foodatabase.sql; }
<xok> but it is missing the data..
<clever> thats the example
<xok> cool...
<xok> I just found the problem...
<xok> :D
<xok> you did it right...
<xok> I did it wrong:
<xok> schema = "./website/dump.sql";
<xok> quotes... :D
<clever> if its quoted, then it must work relative to whatever directory the script happens to run in (/ ?)
<clever> and it must be manually copied if your using nixops
<clever> but if you unquote, then nix will copy it for you, and just work from any dir
Ariakenom has joined #nixos
<xok> clever: thanks, it now works just fine... 8-)
<sphalerite> is the hardlinking performed by nix optimise-store/nix-store --optimise atomic?
<clever> sphalerite: i believe its using the link syscall to overwrite the files, and i think thats atomic
<clever> sphalerite: but i have seen it soft-fail, one of the nodes has 65535 hardlinks, and cant accept anymore
<sphalerite> lol
matthewbauer has quit [Ping timeout: 264 seconds]
<ldlework> I posted my question about adding a Python library to a Python application built with a python3Packages.buildPythonPackage which is provided via callPackage to reddit if anyone wants to take a crack at it: https://www.reddit.com/r/NixOS/comments/9f0gwy/qutebrowser_userscript_python_dependencies/
sigmundv__ has quit [Read error: Connection reset by peer]
graphene has quit [Read error: Connection reset by peer]
sigmundv__ has joined #nixos
<{^_^}> [nixpkgs] @YorikSar opened pull request #46541 → nixos/initrd: Add thin-provisioning-tools binaries → https://git.io/fArMO
<exarkun1> when `nixops deploy ...` creates a new host, does it download necessary packages from the binary cache to the host where it's running and then upload them to the new host?
<exarkun1> (signs point to yes :()
<ldlework> that's my impression exarkun1
<exarkun1> "It builds the NixOS machine configurations locally. For instance, here Valgrind is built or downloaded because our machine configuration has a dependency on it." crap
graphene has joined #nixos
<aminechikhaoui> exarkun1: which backend are you using ?
<tobiasBora> sphalerite: yes I was at work indeed. (now I'm back home) I'll try to ask the sys admin then. Or I heard that DHCP could provide a NTP server, is it possible to use it in nixos? I saw this issue, that is now quite old, and I'd like to know if you have some update: https://github.com/NixOS/nixpkgs/issues/27874
<{^_^}> #27874 (by copumpkin, 1 year ago, open): Support configuring NTP from DHCP
<exarkun1> What difference does it make? EC2 at the moment.
ogle has joined #nixos
<tobiasBora> exarkun1: yes, it download everything on the "running host", and then upload to the new host.
<tobiasBora> (at least that's what people told me here, and I had this same problem with a raspberry pi host, that didn't even had the same architecture)
<aminechikhaoui> exarkun1: ec2 has deployment.hasFastConnection = false by default which means it will try to substiture first if things are in the binary cache
<aminechikhaoui> substitute *
<ogle> Anyone have experience maintaining a monorepo with nix? I would love to get some advice
<clever> aminechikhaoui: but it will still want the entire closure on the nixops machine first
<tobiasBora> exarkun1: in my case, the recommended solution was to ssh to my rasp, and then deploy from it... But I guess that you can't do that on EC2... So you may want to join me in this fight ;-) https://github.com/NixOS/nixops/issues/976
<{^_^}> nixops#976 (by tobiasBora, 8 weeks ago, open): Add a way not to use the user's computer as a cache
<aminechikhaoui> clever: right
<aminechikhaoui> but the copying should be fast as it will only copy what's not in cache.nixos.org
trevthedev has quit [Ping timeout: 250 seconds]
matthewbauer has joined #nixos
<clever> aminechikhaoui: it has to first download everything to the local machine, then have the remote machine download the same things from cache.nixos.org
<sphalerite> Wondering about how to set up my backlight correctly — X doesn't seem to autodetect it (xbacklight says "No outputs have backlight property"), but I can control it via /sys/class/backlight/backlight/brightness. Anyone know how to do this?
sbdchd has quit [Remote host closed the connection]
matthewbauer has quit [Ping timeout: 240 seconds]
<infinisil> ogle: Not sure what you mean
<aminechikhaoui> clever: yeah, I personally don't see a way to prevent that with the current way nixops is designed though (nix-build then copy closure), not sure if there is a better way though
<exarkun1> /nix/store/fjxk3k59n102sqs572kkspdjy303kv45-stdenv-linux/setup: line 1292: cargo: command not found :/
jonge has joined #nixos
<{^_^}> [nixpkgs] @andir pushed commit from @marsam to release-18.03 « nodejs-6_x: 6.14.3 -> 6.14.4 »: https://git.io/fAryz
<jonge> hey there, when i want to create a zip archive of some files in a nix expression... what would be the best way? the zip functions in hte lib do something else obviously
knupfer has quit [Quit: knupfer]
<vaibhavsagar> jonge: that sounds like something you want to do in a bash script/body of a runCommand
<jonge> vaibhavsagar: so that means i would execute the bash script in terms of its own derivation, right?
<ogle> infinisil: my company has a large repo contaning several subprojects. some of these projects depend on each other for shared functionality. ultimately what I would like is for each project to have its own default.nix and at the top level directory release.nix that allows for building any one of the targets and toplevel shell.nix that provides an environment to hack across project boundaries for atomic
winem_ has quit [Ping timeout: 272 seconds]
<ogle> refactoring.
matthewbauer has joined #nixos
mounty has joined #nixos
<exarkun1> What is this "librustzcash-unstable-2017-03-17-vendor" drv/package that keeps showing up? I have no such thing defined in my nix expressions.
<symphorien> it is an archive of the source code of all the dependencies of the rust package you build
<ogle> vaibhavsagar: funny seeing you here! I was sad to hear you decided not to join our team awhile back, hope you are well.
<jonge> vaibhavsagar: sry i did not realize that runCommand is a library function. thank you for pointing me there, this looks helpful!
<vaibhavsagar> ogle: hi!
<infinisil> ogle: I think you could maybe use lib.makeScope, you could have your subprojects nix files like `{ dep1, dep2 }: stdenv.mkDerivation ...`
<infinisil> And callPackage them with the changed scope that includes all subprojects themselves
<infinisil> So they can freely reference each other, similar to how nixpkgs works
<clever> infinisil: this is an example of using makeScope + newScope + overrideScope
<vaibhavsagar> ogle: hope you are well too! it was a really tough decision to make
<clever> it allows getting a callPackage like you said, and also inserting overlays
<infinisil> Neat, I never used it myself
<magnetop`> I have a headless machine that installed libX11, so I ran "nix why-depends /run/current-system /nix/store/hash_libX11" it said it's because of dbus, iiuc: https://pastebin.com/uPD45Xcx
<magnetop`> what gives?
<clever> magnetop`: yeah, dbus-launch depends on libX11
<ogle> infisil: interesting I havent come across makeScope before. going to take a look at the link from clever
<clever> magnetop`: https://nixos.org/nixos/options.html#nox may be of interest to you
<clever> magnetop`: one of the things it does, is remove x11 support from dbus
cnidario has joined #nixos
humanoyd has quit [Quit: WeeChat 2.2]
gilligan_ has joined #nixos
<ldlework> Python stuff is soooo complicated
<ogle> vaibhavsagar: IIRC you ended up taking a haskell role, which definitely sounds up your alley.
<vaibhavsagar> ogle: yup, I'm here now :)
<ldlework> I don't suppose there is a way to figure out what part of your config is adding a given package to systemPackages
<clever> ldlework: grep
<magnetop`> clever: so am I understanding correctly that libX11 comes standard with any nixos box? and if I enable that option, I'll probably have to compile more pkgs,right?
<clever> magnetop`: yeah
mounty has quit [Ping timeout: 252 seconds]
<magnetop`> clever: OK, then I'll leave it be. I thought I got X cause I had installed the wrong pkgs or option. Thanks for the clarification! :)
<{^_^}> [nixpkgs] @LnL7 merged pull request #46540 → perl-TestRunCmdLine: disable tests on darwin → https://git.io/fArXV
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/fAr9e
michiel_l has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @LnL7 pushed to release-18.09 « perl-TestRunCmdLine: disable tests on darwin »: https://git.io/fAr9k
Mateon1 has quit [Ping timeout: 246 seconds]
<ldlework> this is what my path looks like on NixOS https://gist.github.com/dustinlacewell/0262387a9b895ba9ae0f96f1668d8d55
npmccallum has quit [Ping timeout: 250 seconds]
<clever> ldlework: that looks like its in a nix-shell?
graphene has quit [Read error: Connection reset by peer]
<ldlework> it isn't
<ldlework> i think qtile is badly packaged
matthewbauer has quit [Ping timeout: 252 seconds]
<ldlework> with bad practices
Mateon1 has joined #nixos
<clever> that could be it
<ogle> vaibhavsagar: congrats! if you are ever in SF would be happy to catch up
<ldlework> I'm never going to figure out where this python3 is getting installed
<ldlework> Or how to add libs to it
graphene has joined #nixos
<gilligan_> huh.. konsole magically stopped working on 18.03 - also, holy *crap* konsole has an insanely huge closure size.. I get that there is some random kde stuff in there but spidermonkey and postgres.. x__X
<clever> gilligan_: spidermonkey is part of consolekit
knupfer has joined #nixos
<symphorien> gilligan_: you can use nix why-depends to figure out why
<gilligan_> clever, i see.. what else do we have here.. cups, systemd, ..
<gilligan_> symphorien, yeah indeed thanks
<clever> good luck purging systemd :P
<gilligan_> i'm in a hotel on an obscenely slow wifi trying to run a nix-shell with konsole from nixpkgs-unstable .. zzZzzz ;)
<ldlework> But it seems like all the extra crap on my path are dependencies that qtile has
<gilligan_> want to check if that is also broken
<clever> i think
<clever> check the shell script at `which qtile`
michiel_l has joined #nixos
<ldlework> clever: when I cat /nix/store/6kz7wk44ad64w6ag15g0l2ansy3rv04y-my-qtile/bin/.qtile-wrapped
<ldlework> it has a bunch of path stuff
<clever> what about the non -wrapped one?
<ldlework> so I guess since qtile is my window manager, all my terminal emulators and shell's inherit this stuff?
<clever> yeah
matthewbauer has joined #nixos
<clever> ,runtimeDeps
<{^_^}> In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
<clever> for a window manager, dont patch PATH, lol
<ldlework> doesn't explain where the python3 is coming from
<ldlework> since qtile is all python2
civodul has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #46100 → cargo-edit: 0.2.0 -> 0.3.0 → https://git.io/fA0m6
<{^_^}> [nixpkgs] @Mic92 pushed 5 commits to master: https://git.io/fArHJ
<ldlework> OK it was ranger
<ldlework> Why would installing ranger put the python it depends on, onto my path
<clever> what is in ranger's nix-support dir?
<ldlework> propagatedBuiltInputs which equals /nix/store/ibfx7ryqnqf01qfzj4v7qhzhkd2v9mm7-file-5.34 /nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6 /nix/store/2a8lm8w8ihlhnwid4xq6amvi755dbyz7-python3.6-setu
<ldlework> /nix/store/ibfx7ryqnqf01qfzj4v7qhzhkd2v9mm7-file-5.34 /nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6 /nix/store/2a8lm8w8ihlhnwid4xq6amvi755dbyz7-pytho
rprije has quit [Read error: Connection reset by peer]
<ldlework> │ n3.6-setuptools-40.2.0 /nix/store/a9q5r6cccydg5wkbm6r8mz3zb7h3n3pk-python3.6-Pillow-5.2.
<ldlework> rather
<ldlework> ugh
rprije has joined #nixos
<ldlework> clever: I have an overlay which does: propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ python3Packages.pillow ];
<ldlework> so I guess this is the reason?
<clever> propagatedBuildInputs are only at nix-build time
ixxie has quit [Quit: Lost terminal]
<ldlework> none of this makes any sense
* ldlework gives up on qutebrowser
<ldlework> check back in a couple years :)
<{^_^}> [nixpkgs] @matthewbauer merged pull request #46471 → et-book: init at 1.0 → https://git.io/fAayY
<{^_^}> [nixpkgs] @matthewbauer pushed 4 commits to master: https://git.io/fArHh
matthewbauer has quit [Ping timeout: 264 seconds]
graphene has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #46542 → dhcpcd: No need to hack around broken patchShebangs anymore → https://git.io/fArQY
graphene has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<{^_^}> [nixpkgs] @phryneas opened pull request #46543 → zfs-unstable: 2018-09-02 -> 0.8.0-rc1 →
<vaibhavsagar> ogle: Thanks! I might take you up on that :)
xok has quit [Quit: Leaving.]
vandenoever has joined #nixos
knupfer has quit [Ping timeout: 250 seconds]
matthewbauer has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #46542 → dhcpcd: No need to hack around broken patchShebangs anymore → https://git.io/fArQY
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/fAr5s
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #46108 → patch-shebangs: respect cross compilation for 18.09 → https://git.io/fA0o9
<{^_^}> [nixpkgs] @Ericson2314 pushed 4 commits to staging-18.09: https://git.io/fAr5c
sheyll has quit [Quit: sheyll]
<{^_^}> [nixos-homepage] @globin opened pull request #239 → Support Page: Mayflower will also provide support → https://git.io/fAr5D
Edes has joined #nixos
lsyoyom has quit [Ping timeout: 245 seconds]
<gilligan_> so I'm stracing konsole which doesn't start anymore and it repeatedly tries to read /proc/0/cwd ?! readlink("/proc/0/cwd", 0x7fffc42304c0, 4096) = -1 ENOENT (No such file or directory)
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
ThatOtherGuy has quit [Remote host closed the connection]
<sphalerite> does preferLocalBuild somehow override the effect of --max-jobs 0? some git fetching seems to be happening locally even though I passed --max-jobs 0 :|
cnidario has quit [Remote host closed the connection]
spear2 has quit [Remote host closed the connection]
Edes has quit [Ping timeout: 252 seconds]
<bigvalen> Does anyone know how to change the resolution of the linux console ? I'm looking to set it at 640x480, but though I can do it in Grub, something resets it late in the boot process to a higher resolution.
matthewbauer has quit [Ping timeout: 240 seconds]
<samueldr> bigvalen: just making sure, you want it AT 640x480?
<sphalerite> bigvalen: I think if you pass nomodeset to the kernel it'll leave it as is
<bigvalen> Yeah. I'm using HP's iLO, which seems to freak out if the console is 1024x786, which is the nixos default.
Edes has joined #nixos
<samueldr> or an alternative could be video=640x480@60
<samueldr> which is how the new installer options allow forcing resolutions https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/cd-dvd/iso-image.nix#L260-L267
<{^_^}> [nixos-homepage] @domenkozar pushed commit from @globin to master « Mayflower will also provide support (#239) »: https://git.io/fArF0
<{^_^}> [nixos-homepage] @domenkozar merged pull request #239 → Support Page: Mayflower will also provide support → https://git.io/fAr5D
<bigvalen> I'll give it a go. I was using boot.loader.grub.gfxmodeBios="text" which sets it in the kernel & grub. But later on, during boot, it switches to a highres mode.
lsyoyom has joined #nixos
<samueldr> yeah, that's probably modesetting there activating
<samueldr> KMS, kernel modesetting*
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #46544 → glibc: Use lib.enableFeature and friends → https://git.io/fArF9
<{^_^}> [nixpkgs] @Ma27 opened pull request #46545 → pants: fix build → https://git.io/fArFF
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #46546 → glibc: Use lib.enableFeature and friends for 18.09 → https://git.io/fArFb
* bigvalen finds "config.boot.vesa" and raises an eyebrow
<bigvalen> VESA ? WHAT YEAR IS IT ?
<samueldr> last time there were changes around that option was 2013
<samueldr> 2011 for a fix related to that option, 2010 for adding the option AFAICT :)
<samueldr> so, the year is 2010 :)
<{^_^}> [nixpkgs] @xeji merged pull request #46535 → qutebrowser: Fix patching of standarddir.py → https://git.io/fAr64
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fArbs
<hodapp> why does it smell like someone just said "VESA" in all caps?
<{^_^}> [nixpkgs] @xeji pushed commit from @The-Compiler to release-18.09 « qutebrowser: Fix patching of standarddir.py »: https://git.io/fArb4
<hodapp> do cards still even support VESA modes as a vestige of DOS days or something?
<clever> hodapp: legacy booting still requires it i believe
<clever> and xorg still supports using vesa
<hodapp> wowzers
Thra11 has quit [Ping timeout: 252 seconds]
johanot has quit [Quit: leaving]
kisik21 has quit [Ping timeout: 240 seconds]
logzet has quit [Remote host closed the connection]
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @ivanbrennan opened pull request #46547 → git2r: add SSH support → https://git.io/fArNm
graphene has quit [Remote host closed the connection]
sbdchd has joined #nixos
<{^_^}> [nixos-org-configurations] @globin opened pull request #54 → planet-nixos: add mayflower nixos blog → https://git.io/fArNc
graphene has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #46545 → pants: fix build → https://git.io/fArFF
<{^_^}> [nixpkgs] @xeji pushed commit from @Ma27 to master « pants: fix build (#46545) »: https://git.io/fArNE
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed commit from @Ma27 to release-18.09 « pants: fix build (#46545) »: https://git.io/fArNg
<{^_^}> [nixpkgs] @xeji merged pull request #46306 → avfs: 1.0.5 -> 1.0.6 → https://git.io/fAzKd
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « avfs: 1.0.5 -> 1.0.6 (#46306) »: https://git.io/fArAe
<kalbasit[m]> clever: what does this error mean `claims to be content-addressed but isn't`? I'm getting it on the build of bazel-watcher here https://github.com/NixOS/nixpkgs/pull/46509#issuecomment-420431512
<{^_^}> [nixpkgs] @xeji merged pull request #46302 → adapta-gtk-theme: 3.94.0.92 -> 3.94.0.132 → https://git.io/fAzVU
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « adapta-gtk-theme: 3.94.0.92 -> 3.94.0.132 (#46302) »: https://git.io/fArAI
<ldlework> Why would installing this module cause Python3.6 to endup in my path? https://gist.github.com/dustinlacewell/46d124d820f92e8cb3015b3bcd9d8010
<{^_^}> [nixpkgs] @LnL7 opened pull request #46548 → aria2: fix darwin build → https://git.io/fArAW
<ldlework> makes zero sense to me
<clever> same
<ldlework> nothing else acts this way
<symphorien> ldlework: use nix why-depends /run/current-system/ /nix/store/...python (for example)
wpcarro has quit [Ping timeout: 252 seconds]
<ldlework> ohhhhhh
<symphorien> there is a --all flag
<ldlework> It is because zsh is being launched from ranger
<ldlework> ok mystery solved
<ldlework> that's an awesome command though symphorien
<{^_^}> [nixpkgs] @xeji merged pull request #46297 → appstream-glib: 0.7.10 -> 0.7.12 → https://git.io/fAzgM
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « appstream-glib: 0.7.10 -> 0.7.12 (#46297) »: https://git.io/fArAd
<clever> prior to that command being made, i had to `nix-store -q --tree`, and grep, and it was not simple :P
* adamantium mounts /nix outside of the root dataset
* adamantium defeat.
<{^_^}> [nixpkgs] @xeji merged pull request #46294 → debootstrap: 1.0.107 -> 1.0.108 → https://git.io/fAzu2
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « debootstrap: 1.0.107 -> 1.0.108 (#46294) »: https://git.io/fArAj
<sphalerite> clever: I find nix-store -q --graph a lot easier to navigate than --tree
theunknownxy has quit [Quit: theunknownxy]
simukis has quit [Quit: simukis]
rihards has quit [Quit: rihards]
<ldlework> OK so I have ranger installed, which provides Python 3 since it depends on it, and then I have qutebrowser which also depneds on python and somehow they depend on the same exactly python package? How is that possible if they use different Python libraries? https://gist.github.com/dustinlacewell/2226b9a87c3f35b40ad773832876701f
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #46544 → glibc: Use lib.enableFeature and friends → https://git.io/fArF9
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fArpc
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #46546 → glibc: Use lib.enableFeature and friends for 18.09 → https://git.io/fArFb
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fArpC
<{^_^}> [nixpkgs] @Ma27 opened pull request #46549 → python3Packages.pyowm: fix python3 build → https://git.io/fArpl
georges-duperon has quit [Ping timeout: 252 seconds]
<magnetop`> I have a VM without /proc/sys/kernel/modprobe, and it fails to activate because of that. any ideas?
Ariakenom has quit [Quit: Leaving]
<ldlework> clever: if there is some package based on buildPythonApplication and it has a script who's shebang gets converted to /nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6/bin/python3 that isn't nessecarilly enough to have that script be able to import various python libraries right?
<ldlework> Because this python package is shared by ranger and qutebrowser, but they use different python libraries
<ldlework> which means python libraries must be associated with a package through other means like wrappers using the python path and stuff
<ldlework> which means that these plugin scripts _will never work_ because the only thing that gets done to them, is that their shebangs get set to a python interpreter in the store
<ldlework> but that doesn't help them at all find the python libraries they depend on
<ldlework> is that all right?
<ldlework> Like I added tldextract to qutebrowser's propagatedBuiltInputs, and I can see it listed in nix-support/ but that doesn't mean some random python scripts with their shebang set to the parent package's python interpreter is going to mean that those scripts have access to the same libraries as qutebrowser
<ldlework> I seem to confirm that by noticing that "cat /nix/store/sfbz2xc8sd05wpjk06n601ji7p3lyyyq-myqutebrowser/bin/.qutebrowser-wrapped | grep tld" shows me that tldextract is indeed being added for qutebrowser in this wrapper
<ldlework> treatment the plugin scripts don't get
sigmundv__ has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @markuskowa opened pull request #46550 → Add licenses → https://git.io/fArj3
<{^_^}> [nixpkgs] @xeji merged pull request #46548 → aria2: fix darwin build → https://git.io/fArAW
<{^_^}> [nixpkgs] @xeji pushed commit from @LnL7 to master « aria2: fix darwin build (#46548) »: https://git.io/fArjG
<ldlework> ha, by exporting that tldextract package's lib/python3.6/site-packages into PYTHONPATH I got qutebrowser to get on to a new error
<ldlework> a new missing dependency
<{^_^}> [nixpkgs] @xeji pushed commit from @LnL7 to release-18.09 « aria2: fix darwin build (#46548) »: https://git.io/fArj4
<ldlework> sphalerite: you mentioned that all executables get their shebangs automatically replaced
<ldlework> is there a way to hook into that to change what happens?
<sphalerite> dontPatchShebangs = true; iirc
<ldlework> how to adjust those shebangs so that they use a python that is wrapped with a pythonpath with the packages I need
<ldlework> hmm, i still wanna patch them, i just don't want to patch them with a plain python interpeter
<sphalerite> that should happen by default if such a python is on $PATH at build time
<ldlework> but one that can see the dependencies
worldofpeace has quit [Quit: worldofpeace]
vaibhavsagar has quit [Ping timeout: 246 seconds]
<ldlework> sphalerite: can you see anything here that would cause the scripts to not get their shebangs patched with the python that is being used by the wider qutebrowser package? https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/qutebrowser/default.nix#L86
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<ldlework> like qutebrowser itself is double wrapped, one for PATH and another with Python path stuff.
<sphalerite> ldlework: yeah. There's no pythonWithPackages involved
<ldlework> Why patch those bin scripts at all if its not going to result in the same python environment
<ldlework> sphalerite: for qutebrowser package at large? or for the userscripts?
<sphalerite> maybe if you do `PATH=${python3Packages.python.withPackages propagatedBuildInputs}/bin patchShebangs $out/share/qutebrowser/userscripts`
<sphalerite> in preFixup or just right after the install command
<ldlework> I'll try it
mounty1 has joined #nixos
graphene has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #46550 → Add licenses → https://git.io/fArj3
<{^_^}> [nixpkgs] @xeji pushed 14 commits to master: https://git.io/fAoeC
jedahan has joined #nixos
<kalbasit[m]> clever: I don't know nix's code much (re: https://github.com/NixOS/nix/blob/ebe3d2d3704aca001ff818295af014581dcf348f/src/libstore/store-api.cc#L754). Do you know how can I fix this? It works locally but fails on borg not sure why
<{^_^}> [nixpkgs] @knedlsepp opened pull request #46551 → scs: Fix darwin build → https://git.io/fAoe8
graphene has joined #nixos
jperras has quit [Ping timeout: 252 seconds]
<hrk> i am trying to run nixos (with nixops) on a system without a bootloader, but it seems it is not updating the /init symlink
<clever> kalbasit[m]: i havent seen the content-addressed mode before, so i dont know how to fix it
<kalbasit[m]> I see
<clever> hrk: nixos doesnt use a /init symlink, you must obey the kernel cmdline that nixos put into the bootloader config
<hrk> clever: there is no way to change the kernel cmdline
<hrk> how does that work for example when running in a container?
<hrk> (there is a init symlink)
<clever> hrk: the nixos container runs it with a full storepath to the init script
<hrk> the nixos install is the container tarrball
<jasongrossman> ldlework: I use qutebrowser. Sorry I'm late to the party.
abueide has quit [Remote host closed the connection]
<jasongrossman> ldlework: And I've been wondering the same thing. I don't know much about python environments though.
<ldlework> lol damn it
<ldlework> sphalerite: I can't really override the middle of a phase
<ldlework> i guess I can just copy pasta the whole thing
<sphalerite> ldlework: just stick it in preFixup if you're doing this only via overrideAttrs
<ldlework> ok
tzemanovic has joined #nixos
nahamu has quit [Quit: WeeChat 1.9.1]
<ldlework> sphalerite: hmm /nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 21: find: command not found
exarkun_ has quit [Read error: Connection reset by peer]
<ldlework> maybe need to add to path rather than overriding it completely
<sphalerite> ldlework: whoops looks like it relies on what's already in PATH. So maybe the same but prepend rather than replacing
<ldlework> hehe ok
erasmas has quit [Quit: leaving]
gilligan_ has quit [Quit: Leaving]
<ldlework> holy crap it works!
<ldlework> sphalerite: good job!
<sphalerite> \o/
rfold has quit [Ping timeout: 252 seconds]
<rawtaz> hmm. gvim, not existing in Nix ?
<rawtaz> also, question, does 18.03 use Wayland?
exarkun_ has joined #nixos
justanotheruser has joined #nixos
adetokunbo has joined #nixos
clever_ has joined #nixos
<ldlework> ugh sphalerite i love you
<jasongrossman> \o/
clever has quit [Ping timeout: 268 seconds]
clever_ has quit [Changing host]
clever_ has joined #nixos
<sphalerite> rawtaz: yes it does exist, I think it's in vimHugeX
<rawtaz> haha, what the.. why's that (the name, why not name it gvim)? :)
xenog has quit [Quit: Leaving]
<rawtaz> works, thanks, that was it
<ldlework> jasongrossman: rnhmjoj[m] is going to be submitting fixes to all of this
<ldlework> hopefully to make it in the next release
<jasongrossman> ldlework++
<{^_^}> ldlework's karma got increased to 2
<ldlework> rnhmjoj[m]++
<{^_^}> rnhmjoj[m]'s karma got increased to 1
<ldlework> sphalerite++
<{^_^}> sphalerite's karma got increased to 16
<jasongrossman> :-)
<hrk> the symlink works now, but system activation complains about there not being module support in the kernel, is there some way to tell nixos not to try to load or unload kernel modules?
worldofpeace has joined #nixos
<kalbasit[m]> clever_: restarting the build fixed it, interesting...
<sphalerite> Is there a way to see the log of a running build started with `nix build`? the lines are getting truncated, and I don't want to restart the build with nix-build because it's a loooong one
<sphalerite> the lines are getting truncated and I want to see them to compare progress between two concurrently-running copies of the build*
abueide has joined #nixos
<clever_> sphalerite: strace? lol
clever_ is now known as clever
<globin> sphalerite: /nix/var/log
<sphalerite> clever: strace truncates output too, no?
<sphalerite> globin: not for a running build AFAIK? :(
<clever> sphalerite: strace -s 1024
<clever> point it at either the `nix` process or `nix-daemon`
<sphalerite> ah yes, that should work. But 1024 isn't enough x)
<{^_^}> [nixpkgs] @ryantm merged pull request #44657 → pythonPackages.distributed: 1.15.1 -> 1.22.1 → https://git.io/fNyo0
<{^_^}> [nixpkgs] @ryantm pushed 10 commits to master: https://git.io/fAoUe
<globin> sphalerite: ah yeah `bzcat: Compressed file ends unexpectedly;`
johnw_ has joined #nixos
johnw_ has quit [Changing host]
johnw_ has joined #nixos
kiloreux has joined #nixos
jluttine has quit [Ping timeout: 252 seconds]
<kiloreux> I am trying to install php extensions with php. But it seems like php interepreter just ignores they exist for some reason. Found this already, https://nixos.org/nix-dev/2015-September/018240.html But it didn't help.
<sphalerite> kiloreux: php interpreter on the command line?
<kiloreux> I meant php-fpm on my web app
<sphalerite> kiloreux: could you paste the relevant bits of your config?
<kiloreux> Sure
jluttine has joined #nixos
nicko_h has quit [Ping timeout: 252 seconds]
<kiloreux> sphalerite, https://pastebin.com/cday1G1B
<sphalerite> kiloreux: that seems like an odd way to configure the extension, you'd need to isntall it using nix-env as root
<kiloreux> Ohh I did that. That was just the php.ini contents
<sphalerite> kiloreux: try instead putting in the source in your nixos config extension=${phpPackages.yaml}/lib/php/extensions/yaml.so
<kiloreux> php56Packages.xdebug and php56Packages.yaml
<kiloreux> installed them with nix-env
<kiloreux> But they can't be recognized when I run the app
<sphalerite> that sounds like definitely the wrong way to do it, you shouldn't need to use nix-env
<sphalerite> I mean, it might work. But it's terribly stateful and can go wrong in various ways
<kiloreux> sphalerite, What is the best way to do this, please?
<kalbasit[m]> This PR is finally ready, can someone look at it? https://github.com/NixOS/nixpkgs/pull/46509#issuecomment-420453352
<sphalerite> kiloreux: where you wrote it in your nixos config, instead of extension=/nix/var/nix/profiles/default/..., do extension=${phpPackages.yaml}/lib/php/extensions/yaml.so
<sphalerite> infinisil: {^_^} misses out PR references if they have an anchrot in the url like what k albasit just wrote
<infinisil> Yeah that's intensional
<sphalerite> why is that?
jperras has joined #nixos
<infinisil> Hmm.. I think I thought it linked a bit too often, people link to comments occasionally while discussing the pr itself
<infinisil> I could turn it on again though
<sphalerite> rate-limit it :p
<{^_^}> [nixpkgs] @xeji merged pull request #46549 → python3Packages.pyowm: fix python3 build → https://git.io/fArpl
<{^_^}> [nixpkgs] @xeji pushed commit from @Ma27 to master « python3Packages.pyowm: fix python3 build (#46549) »: https://git.io/fAoTG
<kiloreux> Can nixos services work on Ubuntu ?
<{^_^}> [nixpkgs] @xeji pushed commit from @Ma27 to release-18.09 « python3Packages.pyowm: fix python3 build (#46549) »: https://git.io/fAoTW
<sphalerite> kiloreux: mostly no
<sphalerite> as in it's possible but fiddly and you'd probably waste a lot less time just setting up a nixos VM or something on your ubuntu
<kiloreux> No alternative to them ?
<{^_^}> [nixpkgs] @ramirez7 opened pull request #46552 → Allow doCheck config of buildGoPackage → https://git.io/fAoTw
<nh2> can anybody show me how to override nixpkgs to `dontCheck` python2.7-Cython's tests? I'm getting a test failure in https://github.com/nh2/static-haskell-nix/issues/6#issuecomment-420452838 and want to disable it
sbdchd has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @ramirez7 opened pull request #46553 → [Golang] Link src root w/package path prefix in nix-shell → https://git.io/fAoke
<kiloreux> sphalerite, that didn't seem to do it. (phpPackages)
<kiloreux> still facing the same issue --'
<sphalerite> kiloreux: are you on ubuntu?
<kiloreux> I am, yes.
<{^_^}> [nixpkgs] @poelzi opened pull request #46554 → Feature/git annex remote google → https://git.io/fAoks
polman has quit [Ping timeout: 252 seconds]
<sphalerite> kiloreux: the nix expressions for your whole setup would be helpful for working out how to get this working
<sphalerite> or you could switch to nixos ;)
<kiloreux> This is a production system. So migrating to nixos is very hard.
<kiloreux> I basically install PHP normally
<kiloreux> and then install phpPackages.yaml and xdebug
<sphalerite> how is "normally"? Where does the php.ini come in?
nD5Xjz has quit [Ping timeout: 245 seconds]
ericsagnes has quit [Ping timeout: 252 seconds]
kiloreux has quit [Ping timeout: 240 seconds]
goibhniu has quit [Ping timeout: 244 seconds]
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #46518 → Revert build host target platform deprecation on release-18.09 → https://git.io/fAwDD
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to release-18.09: https://git.io/fAoIu
jedahan has joined #nixos
jedahan has quit [Client Quit]
jedahan has joined #nixos
jedahan has quit [Client Quit]
jedahan has joined #nixos
jedahan has quit [Client Quit]
kiloreux has joined #nixos
jedahan has joined #nixos
jedahan has quit [Client Quit]
jackdk has joined #nixos
nD5Xjz has joined #nixos