summary refs log tree commit diff
path: root/nixos/modules/config
Commit message (Collapse)AuthorAge
* nixos/networking.nix: only setup rpc on glibcTravis Athougies2018-10-30
| | | | | | (cherry picked from commit 4177dc3f774523fea7d181601d7c3301fda13790) and (cherry picked from commit a2f0c95baf57fb735dd47b5db73274f7e75df7c9)
* nixos: use pkgs.getent and stdenv.cc.libcWill Dietz2018-10-30
| | | | (cherry picked from commit 52eba9753aeba4f02c8ce0de50f10bd98de1ef1e)
* Merge pull request #47241 from oxij/pull/36261-fix-local-hostname-alternativexeji2018-10-27
|\ | | | | nixos/networking: add hostname to /etc/hosts by default, simplify
| * nixos/networking: add hostname to `/etc/hosts` by defaultJan Malakhovski2018-10-02
| | | | | | | | | | | | | | | | | | We use `127.0.1.1` instead of `127.0.0.1` because some applications will fail if `127.0.0.1` resolves to something other than `localhost`. Debian does the same. See #1248 and #36261.
| * nixos/networking: simplify `/etc/hosts` generation, add assertsJan Malakhovski2018-10-02
| | | | | | | | | | | | Since `networking.hosts` is properly typed all of that magic `/etc/hosts` generator does can be dropped. People that disagree with the value of `networking.hosts` can simply `mkForce`.
* | nixos/users: fix users home directory with isNormalUserJeff Slight2018-10-24
| |
* | nixos/pulseaudio: Add extraModules config optionadisbladis2018-10-18
| |
* | Merge pull request #44441 from mnacamura/shell-aliasesSilvan Mosberger2018-10-13
|\ \ | | | | | | environment.shellAliases: change default behavior
| * | nixos/shells: enable to nullify already defined aliasesMitsuhiro Nakamura2018-10-14
| | |
| * | nixos/shells: do not override user-defined shell aliasesMitsuhiro Nakamura2018-10-14
| | |
* | | use buildPackages in environment.extraSetupvolth2018-10-12
|/ /
* / nixos: correct improper uses of mkEnableOption, clarify service descriptionsPavel Goran2018-10-05
|/ | | | | | | | | Several service definitions used `mkEnableOption` with text starting with "Whether to", which produced funny option descriptions like "Whether to enable Whether to run the rspamd daemon..". This commit corrects this, and adds short descriptions of services to affected service definitions.
* Merge branch 'master' into staging-nextUli Baum2018-09-13
|\
| * nixos: xdg: fix indent and eol spacesJan Malakhovski2018-09-08
| |
| * xdg/mime.nix: ensure $out/share/mime/packages existsMatthew Bauer2018-09-08
| | | | | | | | | | | | | | | | For update-mime-database to work, you must have to have some mime packages installed. In some DEs like XFCE this is not guaranteed to happen. In that case just skip the update-mime-database call. Fixes #46162
| * Merge pull request #45784 from oxij/pull/44720-shell-env-editedxeji2018-09-06
| |\ | | | | | | nixos/shells: Avoid overriding the environment for other child shells
| | * nixos/shells: fix indent everywhereJan Malakhovski2018-08-30
| | | | | | | | | | | | to comply with `doc/coding-conventions.xml`
| | * nixos/shells: avoid overriding the environment for child shellsTor Hedin Brønner2018-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A shared exported guard `__NIXOS_SET_ENVIRONMENT_DONE` is introduced that can be used to prevent child shells from sourcing `system.build.setEnvironment` the second time. This fixes e.g. `nix run derivation` when run from e.g. ZSH through the console or ssh. Before this Bash would resource the common environment resetting the `PATH` environment variable. We also export `system.build.setEnvironment` to `/etc/set-environment` making it easy to reset the common environment with `. /etc/set-environment` when needed and to grep for environment variables in `/etc` (which was the motivation of #30418). This reverts changes made in b00a3fc6fd82834114771f2115a2b032f0ebfe29 (the original #30418).
* | | Merge branch 'master' into staging-nextVladimír Čunát2018-09-04
|\| | | | | | | | | | | Hydra: ?compare=1477053
| * | Added an example for environment.variable. (#45956)Christopher Birkbeck2018-09-02
| | |
* | | alternative for iproute module (#41801)volth2018-09-01
| | |
* | | Merge branch 'master' into stagingVladimír Čunát2018-09-01
|\| | | | | | | | | | | A few trivial conflicts due to *Platforms mass replace.
| * | Merge pull request #45058 from michaelpj/imp/freedesktop-modulesJan Tojnar2018-08-30
| |\ \ | | | | | | | | freedesktop modules: init
| | * | system-path: fix default option valueMichael Peyton Jones2018-08-20
| | | |
| | * | system-path: allow other modules to provide setup fragmentsMichael Peyton Jones2018-08-16
| | | |
| | * | xdg: add modules for supporting various XDG specsMichael Peyton Jones2018-08-16
| | | |
* | | | Merge #45720: coreutils: split a coreutils-full versionVladimír Čunát2018-09-01
|\ \ \ \ | |/ / / |/| | |
| * | | coreutils: split a coreutils-full versionVladimír Čunát2018-08-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - default coreutils is stripped of /share/ (11 -> 2 MiB) - coreutils-full retains /share/ and adds openssl for faster *sum tools - NixOS systemPackages contains coreutils-full - *Support parameter defaults are moved inside (it seemed confusing to have `? false` and "at once" with `? isLinux`) Closure considerations: + typical build-time closure will get lighter by ~9 MiB - typical closure of NixOS installation will grow by ~2 MiB, due to referring to both versions. I think it would be possible to re-use most of the utils between the two versions, but the expression would get much more complex. I considered having stdenv with minimal coreutils and the default `coreutils` attribute being full, but it turned out there were too many trivial references in nixpkgs, so it didn't seem easy to keep rebuild impact of openssl from growing significantly.
* | | | treewide: fix typo: asumed -> assumedBjørn Forsman2018-08-30
|/ / /
* | / systemd: added groups kvm, renderEric Wolf2018-08-25
| |/ |/| | | | | they need to exist according to the README of systemd
* | environment.extraInit: fix description typoAlyssa Ross2018-08-13
|/
* Merge pull request #44015 from alexshpilkin/resolv-unboundSilvan Mosberger2018-07-24
|\ | | | | nixos/networking: include local Unbound in resolv.conf
| * nixos/networking: include local Unbound in resolv.confAlexander Shpilkin2018-07-23
| | | | | | | | | | Previously, only BIND, dnsmasq and resolved were included in resolv.conf. Recognize an Unbound installation as well.
* | fix build with allowAliases=falsevolth2018-07-23
| |
* | [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
| |
* | [bot]: remove unreferenced codevolth2018-07-20
|/
* Merge pull request #42569 from spacefrogg/nscd-fixMatthew Bauer2018-07-05
|\ | | | | resolvconf.conf: Remove forced NSCD service restart
| * resolvconf.conf: Remove forced NSCD service restartMichael Raitza2018-06-25
| | | | | | | | | | | | | | Forcibly restarting NSCD is unnecessary and breaks setups that use SSSD for authentication. NSCD is capable of detecting changes to /etc/resolv.conf and invalidating its caches internally. Restarting NSCD/SSSD breaks user name and UID resolution.
* | nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink2018-06-30
|/
* nixos/no-x-libs: Switch to using nixpkgs.overlaysaszlig2018-06-11
| | | | | | | | The usage of nixpkgs.config.packageOverrides is deprecated and we do have overlays since quite a while. Signed-off-by: aszlig <aszlig@nix.build> Cc: @edolstra
* iproute2: module to create rt_table file & coMatthieu Coudron2018-05-15
| | | | | | | | | | When doing source routing/multihoming, it's practical to give names to routing tables. The absence of the rt_table file in /etc make this impossible. This patch recreates these files on rebuild so that they can be modified by the user see NixOS#38638. iproute2 is modified to look into config.networking.iproute2.confDir instead of /etc/iproute2.
* treewide: isArm -> isAarch32John Ericson2018-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following legacy packing conventions, `isArm` was defined just for 32-bit ARM instruction set. This is confusing to non packagers though, because Aarch64 is an ARM instruction set. The official ARM overview for ARMv8[1] is surprisingly not confusing, given the overall state of affairs for ARM naming conventions, and offers us a solution. It divides the nomenclature into three levels: ``` ISA: ARMv8 {-A, -R, -M} / \ Mode: Aarch32 Aarch64 | / \ Encoding: A64 A32 T32 ``` At the top is the overall v8 instruction set archicture. Second are the two modes, defined by bitwidth but differing in other semantics too, and buttom are the encodings, (hopefully?) isomorphic if they encode the same mode. The 32 bit encodings are mostly backwards compatible with previous non-Thumb and Thumb encodings, and if so we can pun the mode names to instead mean "sets of compatable or isomorphic encodings", and then voilà we have nice names for 32-bit and 64-bit arm instruction sets which do not use the word ARM so as to not confused either laymen or experienced ARM packages. [1]: https://developer.arm.com/products/architecture/a-profile
* zramSwap: remove mentions of old kernelsWout Mertens2018-04-19
|
* zramSwap: default to 1 deviceWout Mertens2018-04-19
| | | One device per cpu is only needed for kernel 3.14
* nixos/pulseaudio: pulseaudio.enable should imply sound.enableJörg Thalheim2018-04-14
| | | | cc @fpletz
* Increase max group name length to 32 charactersaszlig2018-04-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With #36556, a check was introduced to make sure the user and group names do not exceed their respective maximum length. This is in part because systemd also enforces that length, but only at runtime. So in general it's a good idea to catch as much as we can during evaluation time, however the maximum length of the group name was set to 16 characters according groupadd(8). The maximum length of the group names however is a compile-time option and even systemd allows more than 16 characters. In the mentioned pull request (#36556) there was already a report that this has broken evaluation for people out there. I have also checked what other distributions are doing and they set the length to either 31 characters or 32 characters, the latter being more common. Unfortunately there is a difference between the maximum length enforced by the shadow package and systemd, both for user name lengths and group name lengths. However, systemd enforces both length to have a maximum of 31 characters and I'm not sure if this is intended or just a off-by-one error in systemd. Nevertheless, I choose 32 characters simply to bring it in par with the maximum user name length. For the NixOS assertion however, I use a maximum length of 31 to make sure that nobody accidentally creates services that contain group names that systemd considers invalid because of a length of 32 characters. Signed-off-by: aszlig <aszlig@nix.build> Closes: #38548 Cc: @vcunat, @fpletz, @qknight
* Merge pull request #38114 from oxij/nixos/doc-moduleMichael Raskin2018-04-05
|\ | | | | nixos: doc module
| * nixos: doc: introduce `documentation` config subtreeJan Malakhovski2018-03-30
| |
* | Merge pull request #38111 from oxij/tree/cleanupsMichael Raskin2018-04-05
|\ \ | | | | | | assorted cleanups
| * | nixos: replace `optionals` -> `optional` in nsswitchJan Malakhovski2018-03-30
| | |