about summary refs log tree commit diff
path: root/nixos/modules/config
Commit message (Collapse)AuthorAge
* 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
| * nixos/qt5: support adwaita-dark themegnidorah2020-04-05
| |
* | treewide/nixos: use stdenv.cc.libc instead of glibc when availableMatthew Bauer2020-04-06
| | | | | | | | | | | | | | This prevents duplication in cross-compiled nixos machines. The bootstrapped glibc differs from the natively compiled one, so we get two glibc’s in the closure. To reduce closure size, just use stdenv.cc.libc where available.
* | fontconfig: only generate cache on native compilationMatthew Bauer2020-04-06
| | | | | | | | We can’t cross-compile the cache, so just skip it for now.
* | Merge master into staging-nextFrederik Rietdijk2020-04-03
|\|
| * nixos: add freedesktop/gnome/myself maintainersworldofpeace2020-04-01
| |
* | Merge remote-tracking branch 'origin/staging' into mb-cross-fixes-march-2020Matthew Bauer2020-03-16
|\|
| * nixos/networking: Add hostFiles optionSilvan Mosberger2020-03-07
| | | | | | | | | | | | | | | | | | When blocklists are built with a derivation, using extraHosts would require IFD, since the result of the derivation needs to be converted to a string again. By introducing this option no IFD is needed for such use-cases, since the fetched files can be assigned directly.
* | gtk-icon-cache: get native gtk3 for icon cacheMatthew Bauer2020-03-06
|/
* nixos: add /share/hunspell to environment.pathsToLinkMartin Milata2020-02-17
| | | | | So that applications can find hunspell dictionaries installed through environment.systemPackages.
* Merge pull request #71302 from tokudan/encrypted-swap-entropy-fixMichele Guerini Rocco2020-02-12
|\ | | | | rngd: Start early during boot and encrypted swap entropy fix
| * swap: depend on rngd if enabled and randomEncryption is configured toDaniel Frank2020-02-08
| | | | | | | | avoid entropy starvation during boot
* | Merge pull request #79416 from jtojnar/flatpak-1.6worldofpeace2020-02-10
|\ \ | | | | | | flatpak: 1.4.2 → 1.6.1
| * | xdg-desktop-portal: 1.4.2 → 1.6.0Jan Tojnar2020-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.6.0 * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.5.4 * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.5.3 * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.5.2 * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.5.1 * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.5.0
* | | nixos/pulseaudio: Enable udev rulesSpencer Janssen2020-02-07
| |/ |/|
* | nixos/resolvconf: Remove useHostResolvConf optionSilvan Mosberger2020-02-05
| | | | | | | | Never had any effect
* | nixos/ldap: add CAP_SYS_RESOURCE capability to nslcd serviceAaron Andersen2020-01-31
| |
* | nixos/ldap: remove redundant configuration optionsAaron Andersen2020-01-31
|/
* treewide: use attrs instead of list for types.loaOf optionsrnhmjoj2020-01-06
|
* swapDevices.<name>.device can be a swap file.Robert Hensing2019-12-28
|
* nixos/console: set colors using kernel parametersrnhmjoj2019-12-20
| | | | | | | | This commit changes the console colors implementation to use the kernel parameters instead of relying on terminal escape sequences. This means the palette is applied by the kernel itself with no custom code running in the initrd and works for all virtual terminals (not only tty0).
* nixos: unify virtual console optionsrnhmjoj2019-12-20
| | | | | | | | | | | | | This commit moves all the virtual console related options to a dedicated config/console.nix NixOS module. Currently most of these are defined in config/i18n.nix with a "console" prefix like `i18n.consoleFont`, `i18n.consoleColors` or under `boot` and are implemented in tasks/kbd.nix. Since they have little to do with actual internationalisation and are (informally) in an attrset already, it makes sense to move them to a specific module.
* 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
* Remove networking.hostConf optionChristian Kauhaus2019-11-29
| | | | | | | | This PR is part of the networking.* namespace cleanup. We feel that networking.hostConf is rarely used and provides little value compared to using environment.etc."host.conf" directly. Provide sensible default: multi on
* nixos: default `environment.homeBinInPath` to falseAndreas Rammhold2019-11-26
| | | | | | | This is a more sane default since we do not magically (without opt-in) pull in binaries from `~/bin`. That is not really an expected behavior for many users. Users that still want that behavior can now just flip that switch.
* networking.vpnc: remove optionChristian Kauhaus2019-11-24
| | | | | | | | | | | | | | | This PR is part of the networking.* namespace cleanup. The Cisco VPN module is currently of limited value since it just creates config files but does not manage services. The same functionality can be achieved by using _environment.etc_ instead. It would be a different situation if we had a full service module. So if you are annoyed by this change, please consider write a more featureful module and put its options unter _services.networking.vpnc_. Note that this change removes options for *Cisco VPN*, not *networkmanager-vpn*.
* nixos/qt5: use correct qtstyleplugins attributeIDF312019-11-21
|
* Merge pull request #71416 from worldofpeace/gnome3-sound-themeworldofpeace2019-11-09
|\ | | | | nixos/gnome3: add sound-theme-freedesktop
| * nixos/xdg/sounds: add sound-theme-freedesktopworldofpeace2019-11-03
| |
* | nixos/fontconfig-ultimate: removeworldofpeace2019-11-06
| | | | | | | | This module has been obsolete for several years now.