summary refs log tree commit diff
path: root/nixos/modules/config
Commit message (Collapse)AuthorAge
* Merge pull request #95869 from jtojnar/fc-local-regressionJan Tojnar2020-08-20
|\ | | | | nixos/fontconfig: fix local.conf regression
| * nixos/fontconfig: fix local.conf regressionJan Tojnar2020-08-20
| | | | | | | | | | | | Another part of edf2541f02c6b24ea791710d5cadeae36f9b1a3a was missed while rebasing https://github.com/NixOS/nixpkgs/pull/93562, resulting in incorrect path as described by https://github.com/NixOS/nixpkgs/issues/86601#issuecomment-675462227
* | nixos/systemPackages: clean up (#91213)davidak2020-08-20
|/ | | | | | | | | | | | | | * nixos/systemPackages: clean up * Update nixos/doc/manual/release-notes/rl-2009.xml Co-authored-by: Jan Tojnar <jtojnar@gmail.com> * Update nixos/doc/manual/release-notes/rl-2009.xml Co-authored-by: 8573 <8573@users.noreply.github.com> Co-authored-by: Jan Tojnar <jtojnar@gmail.com> Co-authored-by: 8573 <8573@users.noreply.github.com>
* Merge pull request #95681 from flokli/fontconfig-penultimate-removeSilvan Mosberger2020-08-17
|\ | | | | nixos/fonts: remove fontconfig-penultimate
| * nixos/fonts/fontconfig-penultimate: remove moduleFlorian Klink2020-08-17
| |
* | nixos/fontconfig: fix 50-user.conf handlingFlorian Klink2020-08-17
|/ | | | | | | | | | | Apparently, edf2541f02c6b24ea791710d5cadeae36f9b1a3a was missed while rebasing https://github.com/NixOS/nixpkgs/pull/93562. Provide 50-user.conf in fontconfig if includeUserConf is true (the default), and don't try removing the non-existent one if it's disabled Fixes https://github.com/NixOS/nixpkgs/issues/95685 Fixes https://github.com/NixOS/nixpkgs/issues/95712
* qemu: fix build with environment.noXlibs = trueVladimír Čunát2020-08-16
| | | | | | | | | | | In some tests, e.g. -f nixos/release.nix tests.simple.x86_64-linux we use noXlibs and qemu.ga. Now that output is tiny but to get it a full qemu build is done, and some dependencies like gtk3 won't build with noXlibs due to their dependencies being too stripped down. Therefore let's reduce qemu features in noXlibs case. The `sdlSupport = false;` part probably wasn't needed, but I added it for consistency.
* environment.noXlibs: disable X11 support in cairoBen Wolsieffer2020-08-16
|
* nixos/fontconfig: Reintroduce unversioned fonts.confJan Tojnar2020-08-13
| | | | | | Turns out lot of software (including Chromium) use bundled fontconfig so we either need to wrap every one of those, or re-introduce the global unversioned config. The latter is easier but weakens hermetic configs. But perhaps those are not really worth the effort.
* nixos/fontconfig: stop generating fontconfig_210 config and cacheFlorian Klink2020-08-12
| | | | This fontconfig version isn't used anywhere inside nixpkgs anymore.
* nixos/modules: remove trailing whitespaceJörg Thalheim2020-08-07
| | | | | This leads to ci failure otherwise if the file gets changed. git-blame can ignore whitespace changes.
* Merge branch 'master' into staging-nextVladimír Čunát2020-07-22
|\ | | | | | | | | Some rebuilds, e.g. all of haskell. Hydra nixpkgs: ?compare=1601713
| * nixos/users-groups: don't consider a system with Google OS Login inaccessibleedef2020-07-19
| | | | | | | | | | | | This allows disabling users.mutableUsers without configuring any authentication mechanisms (passwords, authorized SSH keys) other than Google OS Login.
* | Merge branch 'staging-next' into stagingJan Tojnar2020-07-15
|\|
| * nixos.users-groups: Set up subuid/subgid mappings for all normal usersadisbladis2020-07-13
| | | | | | | | | | | | | | | | This is required by (among others) Podman to run containers in rootless mode. Other distributions such as Fedora and Ubuntu already set up these mappings. The scheme with a start UID/GID offset starting at 100000 and increasing in 65536 increments is copied from Fedora.
| * nixos/users-groups: fix mkChangedOptionModule for root password hashRaghav Sood2020-07-12
| |
* | Merge pull request #73795 from worldofpeace/fontconfig-2.13.92Jan Tojnar2020-07-13
|\ \ | |/ |/|
| * fontconfig: Only read versioned config dirsJan Tojnar2020-07-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Falling back to unversioned `/etc/fonts/conf.d` when versioned one does not exist is problematic since it only occurs on non-NixOS systems and those are likely to have a different version of fontconfig. When those versions use incompatible elements in the config, apps using fontconfig will crash. Instead, we are now falling back to the in-package `fonts.conf` file that loads both the versioned global `conf.d` directory and the in-package `conf.d` since using upstream settings on non-NixOS is preferable to not being able to use apps there. In fact, we would not even need to link `fonts.conf`, as the in-package `fonts.conf` will be always used unless someone creates the global one manually (the option is still retained if one wants to write a custom NixOS module and to avoid unnecessary stat call on NixOS). Additionally, since the `fonts.conf` will always load `conf.d` from the package, we no longer need to install them to sytem `/etc` in the module. This needed some mucking with `50-user.conf` which disables configs in user directories (a good thing IMO, NixOS module will turn it back on) but otherwise, it is cleaner. The files are still prioritized by their name, regardless of their location. See https://github.com/NixOS/nixpkgs/pull/73795#issuecomment-634370125 for more information.
* | nixos/users-groups: handle password hashes with special meaningrnhmjoj2020-07-04
| |
* | nixos/users-groups: add assertion for ":" in hashesrnhmjoj2020-07-04
| |
* | nixos/users-groups: do not check validity of empty hashesrnhmjoj2020-07-04
| |
* | nixos/users-groups: clearly document special hash valuesrnhmjoj2020-07-04
| | | | | | | | | | | | This explanation was contained in the description of security.initialRootPassword but got lost when it was deprecated a long ago (f496c3c) and removed.
* | nixos/users-groups: remove ancient security.initialRootPassword optionrnhmjoj2020-07-04
|/ | | | | | | This option has been deprecated for a long time because is redundant (users.users.root.initialHashedPassword exists). Moreover, being of type string, it required to handle the special value "!" separately, instead of using just `null`.
* nixos: fix manual buildJörg Thalheim2020-07-04
| | | | https://github.com/NixOS/nixpkgs/pull/92240#issuecomment-653740926
* docs: Explain how to set password-less logins.Niklas Hambüchen2020-07-04
| | | | | | | | | | This explains the # Allow the user to log in as root without a password. users.users.root.initialHashedPassword = ""; that the NixOS installer live systems use in `profiles/installation-device.nix`.
* small treewide: his -> theirs/itsProfpatsch2020-06-23
| | | | | | SJW brigade represent. ;) Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
* Merge pull request #91065 from Infinisil/move-fontultimateFlorian Klink2020-06-19
|\ | | | | nixos/fontconfig: Move deprecated ultimate removals to relevant module
| * nixos/fontconfig: Move deprecated ultimate removals to relevant moduleSilvan Mosberger2020-06-18
| | | | | | | | | | This was a mistake in https://github.com/NixOS/nixpkgs/pull/61570, this does not belong to prometheus
* | nixos/users: validate password hashesrnhmjoj2020-06-15
| |
* | nixos i18n.supportedLocales: increase systemPackages priorityVladimír Čunát2020-06-11
|/ | | | https://discourse.nixos.org/t/conflict-between-glibc-and-glibclocales-workaround-inside/7608
* Merge pull request #85947 from prusnak/images-zstdMarek Mahut2020-06-07
|\ | | | | Use zstd for ISO and SD images
| * nixos/system-path: add zstdPavol Rusnak2020-04-24
| |
* | Don't enable nix-bash-completions when using Nix 2.4Eelco Dolstra2020-06-04
| | | | | | | | | | 2.4 has its own completion script which collides with nix-bash-completions.
* | nixos/networking: Add the FQDN and hostname to /etc/hostsMichael Weiss2020-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the output of "hostname --fqdn" (previously the domain name was not appended). Additionally it's now possible to use the FQDN. This works by unconditionally adding two entries to /etc/hosts: 127.0.0.1 localhost ::1 localhost These are the first two entries and therefore gethostbyaddr() will always resolve "127.0.0.1" and "::1" back to "localhost" [0]. This works because nscd (or rather the nss-files module) returns the first matching row from /etc/hosts (and ignores the rest). The FQDN and hostname entries are appended later to /etc/hosts, e.g.: 127.0.0.2 nixos-unstable.test.tld nixos-unstable ::1 nixos-unstable.test.tld nixos-unstable Note: We use 127.0.0.2 here to follow nss-myhostname (systemd) as close as possible. This has the advantage that 127.0.0.2 can be resolved back to the FQDN but also the drawback that applications that only listen to 127.0.0.1 (and not additionally ::1) cannot be reached via the FQDN. If you would like this to work you can use the following configuration: ```nix networking.hosts."127.0.0.1" = [ "${config.networking.hostName}.${config.networking.domain}" config.networking.hostName ]; ``` Therefore gethostbyname() resolves "nixos-unstable" to the FQDN (canonical name): "nixos-unstable.test.tld". Advantages over the previous behaviour: - The FQDN will now also be resolved correctly (the entry was missing). - E.g. the command "hostname --fqdn" will now work as expected. Drawbacks: - Overrides entries form the DNS (an issue if e.g. $FQDN should resolve to the public IP address instead of 127.0.0.1) - Note: This was already partly an issue as there's an entry for $HOSTNAME (without the domain part) that resolves to 127.0.1.1 (!= 127.0.0.1). - Unknown (could potentially cause other unexpected issues, but special care was taken). [0]: Some applications do apparently depend on this behaviour (see c578924) and this is typically the expected behaviour. Co-authored-by: Florian Klink <flokli@flokli.de>
* | nixos/zram: make zstd the default (#87917)zowoq2020-05-21
| |
* | nixos/resolvconf: always run systemctl of the currently running systemdFlorian Klink2020-05-21
| |
* | nixos/power-management: always run systemctl of the currently running systemdFlorian Klink2020-05-21
| |
* | nixos/nsswitch: improve error messageFlorian Klink2020-05-11
| | | | | | | | | | Show the config option triggering the assertion, so people don't necessary lookup the nixpkgs source code.
* | nixos/nsswitch: update comment next to assertionFlorian Klink2020-05-11
| |
* | nixos/samba: move nss database configuration into samba moduleFlorian Klink2020-05-11
| |
* | nixos/avahi: move nss database configuration into avahi moduleFlorian Klink2020-05-11
| |
* | nixos/ldap: move nss database configuration into ldap moduleFlorian Klink2020-05-11
| | | | | | | | | | now that passwdArray and shadowArray aren't used anymore, these can be folded.
* | nixos/systemd: move NSS module logic to systemd moduleFlorian Klink2020-05-05
| | | | | | | | We keep the conditional on only adding if nscd is enabled for now.
* | nixos/systemd/resolved: add resolve to nss hosts database if enabledFlorian Klink2020-05-05
| | | | | | | | | | | | We keep the "only add the nss module if nscd is enabled" logic for now. The assertion never was triggered, so it can be removed.
* | nixos/google-oslogin: Move nsswitch config into the moduleFlorian Klink2020-04-30
| | | | | | | | Motivation: #86350
* | Merge pull request #85998 from helsinki-systems/make-nsswitch-more-flexibleFlorian Klink2020-04-29
|\ \ | | | | | | nixos/nsswitch: Make databases more configurable
| * | nixos/sss: Move nsswitch config into the moduleJanne Heß2020-04-28
| | |
| * | nixos/nsswitch: Make databases more configurableJanne Heß2020-04-26
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Instead of hardcoding all nss modules that are added into nsswitch, there are now options exposed. This allows users to add own nss modules (I had this issue with winbindd, for example). Also, nss modules could be moved to their NixOS modules which would make the nsswitch module slimmer. As the lists are now handled by the modules system, we can use mkOrder to ensure a proper order as well as mkForce to override one specific database type instead of the entire file.
* / treewide: add types to boolean / enable options or make use of mkEnableOptionDominik Xaver Hörl2020-04-27
|/
* Merge pull request #84242 from gnidorah/qtworldofpeace2020-04-24
|\ | | | | nixos/qt5: support adwaita-dark theme