summary refs log tree commit diff
path: root/nixos/modules/services/x11/xserver.nix
Commit message (Collapse)AuthorAge
* nixos/xserver: don't require polkitMartin Weinelt2022-01-27
| | | | | X11 itself does not require it and it a desktop environment or any other service requires it, then it should enable it itself.
* Merge #151019: amdgpu-pro: 17.40 -> 21.30Vladimír Čunát2022-01-09
|\
| * nixos/xserver: set correct LD_LIBRARY_PATH for opengl driverDavid McFarland2021-12-21
| | | | | | | | | | | | This got broken by 370d3af0c40c30f1dad763c35a2db637f70e6176. Previously it was setting /run/opengl-driver/lib. `driverLink` is missing the /lib.
* | nixos/documentation: split options doc buildpennae2022-01-02
|/ | | | | | | | | | | | | | | | most modules can be evaluated for their documentation in a very restricted environment that doesn't include all of nixpkgs. this evaluation can then be cached and reused for subsequent builds, merging only documentation that has changed into the cached set. since nixos ships with a large number of modules of which only a few are used in any given config this can save evaluation a huge percentage of nixos options available in any given config. in tests of this caching, despite having to copy most of nixos/, saves about 80% of the time needed to build the system manual, or about two second on the machine used for testing. build time for a full system config shrank from 9.4s to 7.4s, while turning documentation off entirely shortened the build to 7.1s.
* nixos/{startx,xserver,sx}: make it possible to use both a gui dmArtturin2021-11-16
| | | | and startx at the same time without using lib.mkForce
* nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
|
* nixos/extra-layouts: avoid all rebuildsrnhmjoj2021-09-17
| | | | | | | Just setting the XKB_CONFIG_ROOT should be enough, so we don't need to rebuild the xserver, xkbcomp and other packages anymore. However, the variable has to be passed explicitely to scripts running at build time: in particular to xkbvalidate and xkb-console-keymap.
* fontconfig service: drop dpi optionNikolay Amiantov2021-08-20
| | | | | | | | | | Recommend to use services.xserver.dpi option instead. Mention in the documentation that it's a sledgehammer approach and monitor settings should be used instead. Also don't set DPI in fontconfig settings; fontconfig should use Xft settings by default so let's not override one value in multiple places. For example, user now can set DPI via ~/.Xresources properly.
* nixos/xserver: fix a display-manager race conditionJohannes Arnold2021-08-12
|
* Merge pull request #131305 from davidak/nixos-icons-fixdavidak2021-08-04
|\ | | | | nixos-icons: fix icons not installed when documentation disabled
| * nixos-icons: fix icons not installed when documentation disableddavidak2021-07-24
| |
* | Merge pull request #127166 from nh2/xserver-config-mkAfter-docsNiklas Hambüchen2021-06-23
|\ \ | | | | | | services.xorg.config: Extend docs
| * | services.xorg.config: Extend docsNiklas Hambüchen2021-06-17
| |/
* / xserver: Generate readable config indentationNiklas Hambüchen2021-06-17
|/
* nixos/xserver: set fs.inotify.max_user_instances tooFlorian Klink2021-04-21
| | | | | | | | | A too low number of inotify user instances causes similar problems as max_user_watches. Without this, my workstation keeps running into things like this: $ sudo systemctl restart display-manager.service Failed to allocate directory watch: Too many open files
* nixos/xserver: use modern video driversTredwellGit2021-03-06
| | | | | | | | cirrus is obsolete: https://www.vintage3d.org/cirrus.php nv is obsolete: https://www.phoronix.com/scan.php?page=article&item=nvidia_kills_nv&num=1 vesa is obsolete: https://www.phoronix.com/scan.php?page=news_item&px=Nzc3Nw ati and ati_unfree are superseded by amdgpu and amdgpu-pro: https://wiki.gentoo.org/wiki/ATI_FAQ#Is_my_AMD.2FATI_board_supported.3F nouveau and fbdev added for better fallback support.
* treewide: xdg_utils -> xdg-utilsBen Siraphob2021-02-01
|
* nixos/xserver: add serverFlagsSection typeFritz Otlinghaus2021-01-31
|
* nixos/xserver: make logFile configurableAtemu2020-12-13
| | | | | It makes sense for it to be /dev/null for all the displayManagers but startx, it needs a different logFile configuration.
* nixos/modules: fix systemd start rate-limitslf-2020-10-31
| | | | | | | | | | | | | | | | These were broken since 2016: https://github.com/systemd/systemd/commit/f0367da7d1a61ad698a55d17b5c28ddce0dc265a since StartLimitIntervalSec got moved into [Unit] from [Service]. StartLimitBurst has also been moved accordingly, so let's fix that one too. NixOS systems have been producing logs such as: /nix/store/wf98r55aszi1bkmln1lvdbp7znsfr70i-unit-caddy.service/caddy.service:31: Unknown key name 'StartLimitIntervalSec' in section 'Service', ignoring. I have also removed some unnecessary duplication in units disabling rate limiting since setting either interval or burst to zero disables it (https://github.com/systemd/systemd/blob/ad16158c10dfc3258831a9ff2f1a988214f51653/src/basic/ratelimit.c#L16)
* Merge master into staging-nextFrederik Rietdijk2020-10-13
|\
| * nixos/xserver: fix xkbvalidate for cross compiling.Simon Pettersson2020-10-11
| | | | | | | | | | | | xserver uses the wrong version of xkbvalidate, the one from buildPackages should be used or else the resulting xkbvalidate binary is compiled for the target architecture.
* | Merge staging-next into stagingFrederik Rietdijk2020-10-06
|\|
| * nixos/fontdir: add the directory to the xserver font pathsrnhmjoj2020-10-04
| |
| * nixos/xserver: add option to configure the "Files" sectionrnhmjoj2020-10-04
| |
* | Merge branch 'staging-next' into stagingWORLDofPEACE2020-09-20
|\|
| * nixos/xserver: clean up the useXFS optionDominik Xaver Hörl2020-09-15
| | | | | | | | | | | | It had confusing semantics, being somewhere between a boolean option and a FontPath specification. Introduce fontPath to replace it and mark the old option as removed.
* | nixos/dbus: always use socket activates user sessionRobert Helgesson2020-09-13
|/ | | | | | This removes the `services.dbus.socketActivated` and `services.xserver.startDbusSession` options. Instead the user D-Bus session is always socket activated.
* services.x11.videoDrivers: Don't include vmware driver by defaultadisbladis2020-06-11
| | | | A better option for vmware guests is to set `virtualisation.vmware.guest.enable`.
* display-manager: systemd-udev-settle serves no purposePeter Hoeg2020-03-21
|
* Merge pull request #66601 from eadwu/nvidia/prime-render-offloadJosé Romildo Malaquias2020-03-01
|\ | | | | nvidia: prime render offload
| * nixos/xserver: introduce attr display to xserver.driversEdmund Wu2019-12-10
| | | | | | | | Specifically for NVIDIA so that only the device section would be created
* | nixos/display-managers/auto: removeworldofpeace2020-01-29
| | | | | | | | | | | | | | | | This module allows root autoLogin, so we would break that for users, but they shouldn't be using it anyways. This gives the impression like auto is some special display manager, when it's just lightdm and special pam rules to allow root autoLogin. It was created for NixOS's testing so I believe this is where it belongs.
* | treewide: use attrs instead of list for types.loaOf optionsrnhmjoj2020-01-06
| |
* | Merge pull request #76947 from juliancoffee/masterRobert Hensing2020-01-05
|\ \ | | | | | | Fix example for xkbOptions
| * | Fix example for xkbOptionsIllia Denysenko2020-01-04
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ###### Motivation for this change With space between two options, multiple options just don't work Looks like xkbOptions then used for generation of xorg.conf.d/00-keyboard.conf. kbd's man says XkbOptions must be comma-separated without spaces. https://linux.die.net/man/4/kbd ###### Things done <!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. --> - [ ] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS linux) - Built on platform(s) - [ ] NixOS - [ ] macOS - [ ] other Linux distributions - [ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests)) - [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review wip"` - [ ] Tested execution of all binary files (usually in `./result/bin/`) - [ ] Determined the impact on package closure size (by running `nix path-info -S` before and after) - [ ] Ensured that relevant documentation is up to date - [ ] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md). ###### Notify maintainers cc @
* | Merge pull request #73394 from pasqui23/xkboptRobert Hensing2020-01-05
|\ \ | |/ |/| nixos/xserver:services.xserver.xkbOptions is now commas
| * nixos/xserver: services.xserver.xkbOptions is now commasPasquale2019-12-22
| |
* | nixos/treewide: Move rename.nix imports to their respective modulesSilvan Mosberger2019-12-10
| | | | | | | | | | | | | | | | A centralized list for these renames is not good because: - It breaks disabledModules for modules that have a rename defined - Adding/removing renames for a module means having to find them in the central file - Merge conflicts due to multiple people editing the central file
* | nixos/slim: removeworldofpeace2019-11-11
|/ | | | | | | | The SLIM project is abandoned and their last release was in 2013. Because of this it poses a security risk to systems, no one is working on it or picked up maintenance. It also lacks compatibility with systemd and logind sessions. For users, there liikely isn't anything like slim that's as lightweight in terms of dependencies.
* nixos: remove dependencies on local-fs.targetFlorian Klink2019-09-01
| | | | | | | Since https://github.com/NixOS/nixpkgs/pull/61321, local-fs.target is part of sysinit.target again, meaning units without DefaultDependencies=no will automatically depend on it, and the manual set dependencies can be dropped.
* Merge branch 'master' into flip-map-foreachdanbst2019-08-18
|\
| * xkbvalidate: Rename output binary to xkbvalidateaszlig2019-08-15
| | | | | | | | | | | | | | | | | | | | | | So far, the output binary has been just "validate", which is quite a very generic name and doesn't match the package name. Even though I highly doubt that this program will ever be used outside of NixOS modules, it's nevertheless less confusing to have a consistent naming. Signed-off-by: aszlig <aszlig@nix.build>
* | Merge branch 'master' into flip-map-foreachDanylo Hlynskyi2019-08-05
|\|
| * nixos/xserver: Make radeon in videoDrivers an alias for ati.Ambroz Bizjak2019-07-16
| | | | | | | | | | | | | | | | | | | | | | | | The old open-source driver for AMD/ATI GPUs is commonly known as "radeon" despite the historical package name xf86-video-ati. For example it presents itself as RADEON in the Xorg log. So adding "radeon" to videoDrivers should work. Also changed the docs for the videoDrivers option to use "radeon" in the default value instead of "ati". Fixes #37917
* | mass replace "flip map -> forEach"danbst2019-08-05
| | | | | | | | | | | | | | See `forEach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g' ```
* | Revert "mass replace "flip map -> foreach""danbst2019-08-05
| | | | | | | | This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
* | mass replace "flip map -> foreach"danbst2019-07-14
|/ | | | | | | See `foreach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g' ```
* Merge pull request #61981 from ambrop72/no-opengl-ld-library-pathworldofpeace2019-07-11
|\ | | | | nixos: Don't set LD_LIBRARY_PATH for graphics drivers that don't need it.
| * nixos: Don't set LD_LIBRARY_PATH for graphics drivers that don't need it.Ambroz Bizjak2019-05-26
| | | | | | | | | | | | | | | | | | | | | | | | A new internal option `hardware.opengl.setLdLibraryPath` is added which controls if `LD_LIBRARY_PATH` should be set to `/run/opengl-driver(-32)/lib`. It is false by default and is meant to be set to true by any driver which requires it. If this option is false, then `opengl.nix` and `xserver.nix` will not set `LD_LIBRARY_PATH`. Currently Mesa and NVidia drivers don't set `setLdLibraryPath` because they work with libglvnd and do not override libraries, while `amdgpu-pro`, `ati` and `parallels-guest` set it to true (the former two really need it, the last one doesn't build so is presumed to). Additionally, the `libPath` attribute within entries of `services.xserver.drivers` is removed. This made `xserver.nix` add the driver path directly to the `LD_LIBRARY_PATH` for the display manager (including X server). Not only is it redundant when the driver is added to `hardware.opengl.package` (assuming that `hardware.opengl.enable` is true), in fact all current drivers except `ati` set it incorrectly to the package path instead of package/lib. This removal of `LD_LIBRARY_PATH` could break certain packages using CUDA, but only those that themselves load `libcuda` or other NVidia driver libraries using `dlopen` (not if they just use `cudatoolkit`). A few have already been fixed but it is practically impossible to test all because most packages using CUDA are libraries/frameworks without a simple way to test. Fixes #11434 if only Mesa or NVidia graphics drivers are used.