Commit Graph

227301 Commits

Author SHA1 Message Date
Michael Weiss
234d95a6fc
nixos/networking: Add the FQDN and hostname to /etc/hosts
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>
2020-05-25 14:06:25 +02:00
Mario Rodas
3b9ebb8b8c
gitAndTools.git-absorb: 0.6.0 -> 0.6.2 2020-05-25 04:20:00 -05:00
Mario Rodas
074ab51316
biblesync: update homepage 2020-05-25 04:20:00 -05:00
R. RyanTM
a7232067e7 btfs: 2.20 -> 2.21 2020-05-25 09:13:22 +00:00
Vladimír Čunát
da752902c1
knot-dns: 2.9.4 -> 2.9.5
There's a bugfix important for some auto-signer setups.
https://gitlab.labs.nic.cz/knot/knot-dns/-/tags/v2.9.5

$ nix build -f nixos/release-combined.nix nixos.tests.knot.x86_64-linux
2020-05-25 10:56:49 +02:00
R. RyanTM
f43066934d calls: 0.1.4 -> 0.1.5 2020-05-25 08:48:26 +00:00
Domen Kožar
c969647e50
Merge pull request #86456 from kraem/kraem/picom-v8
picom: 7.5 -> 8
2020-05-25 10:33:51 +02:00
R. RyanTM
2a754d6313 biblesync: 2.0.1 -> 2.1.0 2020-05-25 08:31:33 +00:00
adisbladis
d8b6e82126
Merge pull request #88856 from zowoq/prefetch-docker
dockerTools: fix skopeo commands
2020-05-25 09:52:09 +02:00
Michele Guerini Rocco
379690ba90
Merge pull request #85539 from rnhmjoj/breezy
treewide: replace bazaar with breezy
2020-05-25 09:37:14 +02:00
Lassulus
e7e4a23044
Merge pull request #87827 from mweinelt/activemq
activemq: 5.14.5 → 5.15.12
2020-05-25 09:36:10 +02:00
rnhmjoj
201bf4bfb8
nixos/release-notes: document bazaar removal 2020-05-25 09:28:48 +02:00
rnhmjoj
aee614c996
treewide: replace bazaar with breezy 2020-05-25 09:22:54 +02:00
rnhmjoj
6a13fe4ece
bazaar: remove
Bazaar is deprecated in favour of Breezy, which is backward compatible
Python 3 fork of the original VCS.
2020-05-25 09:22:53 +02:00
Dmitry Kalinkin
475d5df12a
mcgrid: drop 2020-05-25 01:01:32 -04:00
Dmitry Kalinkin
9a2182eef6
rivet: 2.7.2 -> 3.1.1 2020-05-25 01:01:22 -04:00
R. RyanTM
a0ca71d772 uhubctl: 2.1.0 -> 2.2.0 2020-05-25 04:43:39 +00:00
zowoq
365d07cea0 dockerTools: fix skopeo commands 2020-05-25 14:29:54 +10:00
Mario Rodas
3a3cbfd12b
monolith: enable on darwin 2020-05-24 23:23:23 -05:00
R. RyanTM
07178d7972 telegraf: 1.14.2 -> 1.14.3 2020-05-25 04:10:50 +00:00
Mario Rodas
2892a24695
Merge pull request #88820 from r-ryantm/auto-update/just
just: 0.5.10 -> 0.5.11
2020-05-24 22:52:43 -05:00
Mario Rodas
3c1273fdb8
Merge pull request #88848 from r-ryantm/auto-update/sensu-go-agent
sensu-go-agent: 5.20.0 -> 5.20.1
2020-05-24 22:51:05 -05:00
Mario Rodas
9751b67df8
Merge pull request #88826 from cole-h/zoxide
zoxide: 0.4.0 -> 0.4.1
2020-05-24 22:49:57 -05:00
Mario Rodas
bc4469005e
Merge pull request #88824 from r-ryantm/auto-update/lean
lean: 3.13.1 -> 3.14.0
2020-05-24 22:49:35 -05:00
Mario Rodas
06d6c42255
Merge pull request #88819 from r-ryantm/auto-update/jsonnet
jsonnet: 0.15.0 -> 0.16.0
2020-05-24 22:48:18 -05:00
R. RyanTM
ba6a893218 sngrep: 1.4.6 -> 1.4.7 2020-05-25 03:39:15 +00:00
R. RyanTM
39da9b721d signal-cli: 0.6.7 -> 0.6.8 2020-05-25 03:28:20 +00:00
R. RyanTM
b9a82df839 sensu-go-agent: 5.20.0 -> 5.20.1 2020-05-25 03:19:26 +00:00
Dmitry Kalinkin
7a2307dc4b
Merge pull request #84523 from erictapen/factorio-18.17
factorio-{,headless}-experimental: 17.79 -> 18.26
2020-05-24 22:47:14 -04:00
R. RyanTM
a60a040236 picard-tools: 2.22.7 -> 2.22.8 2020-05-25 01:25:17 +00:00
Tim Steinbach
89998eb8da
oh-my-zsh: 2020-05-21 -> 2020-05-24 2020-05-24 20:51:34 -04:00
Michael Raskin
71231b6407
Merge pull request #88839 from 7c6f434c/fix-lazarus
lazarus: fix linking by the IDE;
2020-05-25 00:32:22 +00:00
Sascha Grunert
6653328aef cri-o: update module configuration
- Update the default pause image
- Set the cgroup manager to systemd
- Enable `manage_ns_lifecycle` instead of the deprecated
  `manage_network_ns_lifecycle` option

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-05-25 02:24:57 +02:00
Michael Raskin
d201270d0f lazarus: fix linking by the IDE; using the results of an investigation by @deliciouslytyped 2020-05-25 02:21:51 +02:00
R. RyanTM
8198d23ed7 monolith: 2.2.5 -> 2.2.6 2020-05-25 00:08:48 +00:00
Gregor Pogačnik
4c1bab5057
sleepyhead: use qt5.makeDerivation and fix for Darwin (#88806) 2020-05-24 19:35:40 -04:00
Ryan Mulligan
08b229bde0
Merge pull request #88815 from r-ryantm/auto-update/hcxdumptool
hcxdumptool: 6.0.5 -> 6.0.6
2020-05-24 16:27:06 -07:00
Ryan Mulligan
51029c708d
Merge pull request #88699 from r-ryantm/auto-update/python3.7-opt_einsum
python37Packages.opt-einsum: 3.1.0 -> 3.2.1
2020-05-24 16:22:42 -07:00
R. RyanTM
b756e7ffaf lyra: 1.3 -> 1.4 2020-05-24 23:17:59 +00:00
R. RyanTM
829825894a lite: 1.03 -> 1.05 2020-05-24 23:10:35 +00:00
R. RyanTM
0d64b7314c libxsmm: 1.13 -> 1.15 2020-05-24 23:06:12 +00:00
Cole Helbling
20a8580e09
zoxide: 0.4.0 -> 0.4.1
https://github.com/ajeetdsouza/zoxide/compare/v0.4.0...v0.4.1

NOTE: This release drops compatibility for old 0.2.x databases. If you
have ever run any version between 0.3.0 and 0.4.0 (inclusive), your
database has already been upgraded. If you haven't, you will need to run
one of those versions before updating, or your database will not be
found or in the correct format.
2020-05-24 15:25:52 -07:00
R. RyanTM
7573e99a60 lean: 3.13.1 -> 3.14.0 2020-05-24 22:22:11 +00:00
R. RyanTM
de9242b786 just: 0.5.10 -> 0.5.11 2020-05-24 22:02:27 +00:00
Florian Klink
a1d501b87e
Merge pull request #88807 from NinjaTrappeur/nin-prosody-passthru
prosody: add passthru tests
2020-05-24 23:53:08 +02:00
R. RyanTM
302fff6b86 jsonnet: 0.15.0 -> 0.16.0 2020-05-24 21:51:22 +00:00
José Romildo Malaquias
334cf8c6af
Merge pull request #88808 from romildo/upd.matcha-gtk-theme
matcha-gtk-theme: 2020-05-09 -> 2020-05-24
2020-05-24 18:35:39 -03:00
José Romildo Malaquias
fd399f403d
Merge pull request #88792 from romildo/upd.plano-theme
plano-theme: 3.34-2 -> 3.36-1
2020-05-24 18:34:50 -03:00
R. RyanTM
cd0e9dd523 imgurbash2: 3.1 -> 3.2 2020-05-24 21:33:02 +00:00
José Romildo Malaquias
fdf9f946ca
Merge pull request #88677 from romildo/upd.lxqt-panel
lxqt.lxqt-panel: 0.15.0 -> 0.15.1
2020-05-24 18:32:54 -03:00