Commit Graph

144954 Commits

Author SHA1 Message Date
Ambroz Bizjak
f26153754a nixos/xserver: Implement configuration of NVIDIA Optimus via PRIME
This adds configuration options which automate the configuration of NVIDIA Optimus using PRIME. This allows using the NVIDIA proprietary driver on Optimus laptops, in order to render using the NVIDIA GPU while outputting to displays connected only to the integrated Intel GPU. It also adds an option for enabling kernel modesetting for the NVIDIA driver (via a kernel command line flag); this is particularly useful together with Optimus/PRIME because it fixes tearing on PRIME-connected screens.

The user still needs to enable the Optimus/PRIME feature and specify the bus IDs of the Intel and NVIDIA GPUs, but this is still much easier for users and more reliable. The implementation handles both the X configuration file as well as getting display managers to run certain necessary `xrandr` commands just after X has started.

Configuration of commands run after X startup is done using a new configuration option `services.xserver.displayManager.setupCommands`. Support for this option is implemented for LightDM, GDM and SDDM; all of these have been tested with this feature including logging into a Plasma session.

Note: support of `setupCommands` for GDM is implemented by making GDM run the session executable via a wrapper; the wrapper will run the `setupCommands` before execing. This seemed like the simplest and most reliable approach, and solves running these commands both for GDM's X server and user X servers (GDM starts separate X servers for itself and user sessions). An alternative approach would be with autostart files but that seems harder to set up and less reliable.

Note that some simple features for X configuration file generation (in `xserver.nix`) are added which are used in the implementation:
- `services.xserver.extraConfig`: Allows adding arbitrary new sections. This is used to add the Device section for the Intel GPU.
- `deviceSection` and `screenSection` within `services.xserver.drivers`. This allows the nvidia configuration module to add additional contents into the `Device` and `Screen` sections of the "nvidia" driver, and not into such sections for other drivers that may be enabled.
2018-07-09 18:46:13 +02:00
Matthew Bauer
49f6ea40b0
Merge pull request #42837 from ookhoi/anonscm.debian.org_gcc6.patch-not-found
anonscm.debian.org_gcc6.patch-not-found - replace anonscm.debian.org …
2018-07-01 15:08:53 -04:00
Will Dietz
6bb1593e3a
Merge pull request #42844 from dtzWill/fix/curl-random-cross
curl: fix configure flag for random device.
2018-07-01 13:32:40 -05:00
lewo
deb82d8505
Merge pull request #42692 from r-ryantm/auto-update/lynis
lynis: 2.6.4 -> 2.6.5
2018-07-01 20:00:21 +02:00
lewo
f5acacffad
Merge pull request #42706 from r-ryantm/auto-update/gnucash
gnucash: 3.1-1 -> 3.2
2018-07-01 19:58:58 +02:00
aszlig
f081ccccd1
libtorrent-rasterbar: Use Boost supporting Python
Since 772eef9168, the Boost package
doesn't support Python by default anymore, so we need to override it
with Python support because --enable-python-binding is enabled by
default in libtorrent-rasterbar.

The build of the package now succeeds again on my x86_64-linux machine.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @phreedom
2018-07-01 19:51:21 +02:00
Will Dietz
81c9f7125f curl: fix configure flag for random device.
Fixes #42778.

Thanks for reporting, @dingxiangfei2009!
2018-07-01 12:47:24 -05:00
aszlig
b916ed31f2
twister: Use boost with Python support
Since 772eef9168, Boost by default doesn't
support Python anymore, so we need to override it with Python support.

Signed-off-by: aszlig <aszlig@nix.build>
2018-07-01 19:40:40 +02:00
aszlig
179f9c4fd1
ledger: Use Boost Python support if applicable
Since 772eef9168 Boost no longer has
Python support enabled by default, so depending on whether Ledger has
Python support built in we also use either Boost with Python support or
without.

Tested building with and without Python support and both builds now
succeed.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @the-kenny, @jwiegley
2018-07-01 19:40:40 +02:00
Peter Simons
c85f23a82a ghc: add 8.6.1-alpha1 pre-release 2018-07-01 19:22:09 +02:00
Eelco Dolstra
772eef9168 boost: Disable Python / Numpy support by default
We can't have a C++ library pulling in Numpy and its gazillion
dependencies by default.
2018-07-01 19:13:57 +02:00
aszlig
c8ed322b04
openblas: 0.3.0 -> 0.3.1
Since the exposure of the version attribute done in
892a0e8ff4, the OpenBLAS build fails for
i686-linux:

https://nix-cache.s3.amazonaws.com/log/wi79zyfmwdpwx7bm29dzqh4vglx3x550-openblas-0.3.0.drv

According to @edolstra the build slaves of Hydra updated to a new
kernel, which seems to be the real cause for this issue. The latter is
already tracked upstream[1] and a fix[2] is already included in version
0.3.1.

This very update cases 4795 rebuilds across all architectures we
support, so it's still not significant enough to go through staging. In
addition the number of rebuilds doesn't include the amount of builds
that are currently failing.

My original idea was to add a patch just for fixing this on i686-linux
and do the real update via staging, but the amount of rebuilds still is
in an acceptable range IMO and @edolstra agreed on that on IRC.

[1]: https://github.com/xianyi/OpenBLAS/issues/1575
[2]: https://github.com/xianyi/OpenBLAS/pull/1583

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @ttuegel
2018-07-01 18:46:36 +02:00
sander
621072a476 anonscm.debian.org_gcc6.patch-not-found - replace anonscm.debian.org with sources.debian.org 2018-07-01 16:39:51 +02:00
Pascal Wittmann
14a9ca27e6
checkstyle: 8.10.1 -> 8.11
fetch artifact from github as it is no longer available on sourceforge
2018-07-01 16:39:22 +02:00
Pascal Wittmann
92a6feca0a
fswatch: 1.11.3 -> 1.12.0 2018-07-01 13:43:34 +02:00
Pascal Wittmann
fbb047e891
yodl: update homepage 2018-07-01 13:33:22 +02:00
Pascal Wittmann
c8ce98d9ff
icmake: 9.02.07 -> 9.02.08
Project moved from github to gitlab
2018-07-01 13:33:20 +02:00
Tuomas Tynkkynen
d1b9bf9223 sidplayfp: Init at 1.4.3 2018-07-01 13:36:57 +03:00
Tuomas Tynkkynen
ace7b252f2 libsidplayfp: 1.8.6 -> 1.8.7 2018-07-01 13:11:56 +03:00
Gabriel Ebner
693a4ce209 goldendict: 1.5.0.rc2 -> 2018-06-13
fixes build
2018-07-01 12:00:17 +02:00
Jörg Thalheim
6e54e9253a iwd: set statedir to /var/lib/iwd 2018-07-01 10:59:35 +01:00
Jörg Thalheim
f73aae6f95
Merge pull request #42816 from dywedir/iwd
iwd: 0.2 -> 0.3
2018-07-01 10:43:34 +01:00
Michael Raskin
055a29c4a1
Merge pull request #39981 from timokau/sage-on-nixos
Sage on nixos
2018-07-01 07:37:42 +00:00
Matthew Bauer
060a98e9f4
Merge pull request #41381 from aespinosa/hadoop-modules
nixos/hadoop: add hadoop module (hdfs, yarn)
2018-06-30 18:33:03 -04:00
Timo Kaufmann
70ba695777 sage: replace JUPYTER_PATH patch by upstream patch
The patch was replaced by a better upstream patch that doesn't mvoe the
jupyter dir to the user's home.
2018-06-30 22:30:30 +02:00
R. RyanTM
99d8edbc7d mpage: 2.5.6 -> 2.5.7 (#42689)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/mpage/versions.

These checks were done:

- built on NixOS
- /nix/store/27fvqzw0vgbjadl2ngwggsz2gs3m4a15-mpage-2.5.7/bin/mpage passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 2.5.7 with grep in /nix/store/27fvqzw0vgbjadl2ngwggsz2gs3m4a15-mpage-2.5.7
- directory tree listing: https://gist.github.com/7deed27eaf23f2578d5dfcb1005b1a0c
- du listing: https://gist.github.com/e1cafa83fbe346375875854bf40a6057
2018-06-30 20:49:42 +02:00
Benjamin Staffin
97ec194ab5
thunderbolt: 0.9.2 -> 0.9.3 (#42743)
* thunderbolt: 0.9.2 -> 0.9.3

Fixed up `cmakeFlags` so `tbtacl`, `tbtacl-write`, `tbtxdomain`, and
the udev rules now show up in the derivation output. Previously there
was only `tbtadm`.

* Add a note about placeholder expressions
2018-06-30 13:18:31 -04:00
R. RyanTM
9fa8a9af36 pmd: 6.4.0 -> 6.5.0 (#42685)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/pmd/versions.

These checks were done:

- built on NixOS
- Warning: no invocation of /nix/store/5h7bbvnfl6iqzpj4pqzv96x6xz349gch-pmd-6.5.0/bin/bgastviewer.bat had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/5h7bbvnfl6iqzpj4pqzv96x6xz349gch-pmd-6.5.0/bin/cpdgui.bat had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/5h7bbvnfl6iqzpj4pqzv96x6xz349gch-pmd-6.5.0/bin/designer.bat had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/5h7bbvnfl6iqzpj4pqzv96x6xz349gch-pmd-6.5.0/bin/pmd.bat had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/5h7bbvnfl6iqzpj4pqzv96x6xz349gch-pmd-6.5.0/bin/cpd.bat had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/5h7bbvnfl6iqzpj4pqzv96x6xz349gch-pmd-6.5.0/bin/run.sh had a zero exit code or showed the expected version
- 0 of 6 passed binary check by having a zero exit code.
- 0 of 6 passed binary check by having the new version present in output.
- found 6.5.0 with grep in /nix/store/5h7bbvnfl6iqzpj4pqzv96x6xz349gch-pmd-6.5.0
- directory tree listing: https://gist.github.com/1ef84c65860a67391267c809fcb5cc80
- du listing: https://gist.github.com/309d9939074e63a6c6dcaf04f94312e9
2018-06-30 19:08:04 +02:00
worldofpeace
b0f40321e4 antibody: 3.5.0 -> 3.5.1 (#42818) 2018-06-30 19:05:28 +02:00
Tad Fisher
81c2f270e5 zoom-us: 2.0.123200.0405 -> 2.2.128100.0627 (#42742) 2018-06-30 19:03:17 +02:00
Meghea Iulian
66e18c3aab distrobuilder: 2018_04_28 -> 2018_06_29 (#42810) 2018-06-30 18:46:00 +02:00
Jaakko Luttinen
20dd009f6a nano-wallet: 12.1 -> 14.2 (#42803) 2018-06-30 18:43:28 +02:00
aszlig
0c7c1660f7
nixos/tests/letsencrypt: Don't substitute certs
If one of the certificates of the chain gets substituted from a binary
cache and the rest is generated locally it might turn out that we get
invalid certificates, which in turn cause tests using this module to
fail.

So let's set allowSubstitutes to false for all derivations that are
involved with certificate/key generation.

Signed-off-by: aszlig <aszlig@nix.build>
2018-06-30 18:35:10 +02:00
Matthew Bauer
bdb0b2db44
Merge pull request #42766 from nonfreeblob/nethack-x11
nethack: nethack-x11 package created
2018-06-30 12:18:14 -04:00
Jan Tojnar
e5b02664aa
Merge pull request #42819 from Infinisil/fwudp-meta
nixos/fwupd: Fix meta
2018-06-30 17:16:43 +02:00
Timo Kaufmann
398dad270a sage, arb: update sage dependencies arb and pynac
Removes the version pinning for arb and pynac by backporting the
upstream (sage) package upgrades. This necessitates a new patch for arb,
which was however already proposed and accepted upstream.
2018-06-30 17:05:56 +02:00
Domen Kožar
5974bb7c9c
haskell: Move version dependent overrides from to configuration-common 2018-06-30 15:49:36 +01:00
Silvan Mosberger
d74419ee3e
nixos/fwupd: Fix meta 2018-06-30 15:49:44 +02:00
adisbladis
dd608f80db
Merge pull request #42709 from jollheef/master
hostapd: use WPA2 instead of WPA1 by default
2018-06-30 21:44:19 +08:00
worldofpeace
a276404d44 eolie: 0.9.16 -> 0.9.35 (#42813) 2018-06-30 15:23:37 +02:00
Tuomas Tynkkynen
ab340f7829 kernel config: Minor text fixes 2018-06-30 16:01:41 +03:00
Tuomas Tynkkynen
fc816e5609 kernel config: Fix recent i686 builds 2018-06-30 16:01:41 +03:00
Matthieu Coudron
e4fe7b31be linux: fix features system 2018-06-30 16:01:41 +03:00
Matthieu Coudron
dcea150a89 kernel: remove conditions based on 3.X kernels
The oldest kernel in nixpkgs being 4.4, we get rid of checks for older
kernels.
2018-06-30 16:01:41 +03:00
Dan Peebles
ff9999ad1b linux: translate config to structured config
Instead of using a string to describe kernel config, use a nix
attribute set, then converted to a string.
- allows to override the config, aka convert 'yes' into 'modules' or
vice-versa
- while for now merging different configs is still crude (last spec wins),
at least there should be only one CONFIG_XYZ value compared to the current string
config where the first defined would be used and others ignored.

[initial idea by copumpkin in 2016, a major rebase to 2018 by teto]
2018-06-30 16:01:41 +03:00
worldofpeace
bae87d5042 python.pkgs.pybrowserid: move expression and 0.9.2 -> 0.14.0 (#42814) 2018-06-30 15:01:07 +02:00
Vladyslav Mykhailichenko
04967f3ecf iwd: 0.2 -> 0.3 2018-06-30 15:26:06 +03:00
Meghea Iulian
c9f9ec6f18 avocode: 3.0.0 -> 3.1.1 (#42808) 2018-06-30 13:56:33 +02:00
Luz
f6a2869031 librepcb-unstable: 2017-12-29 -> 2018-06-28 (#42786)
* Update: 2017-12-29 -> 2018-06-28

* Update libs also to qt5.9

* Add required default font file

* Switch back to default Qt version
2018-06-30 13:56:12 +02:00
nonfreeblob
1627b6fc09 nethack: nethack-x11 package created
If x11Mode is false, ncurses NetHack version will be built (nethack).
If x11Mode is true, x11 NetHack version will be built (nethack-x11).
NetHack DevTeam provide x11 version support only for Linux.
2018-06-30 14:48:20 +03:00