nixpkgs/nixos/modules
Franz Pletz 0dc4fe0a44
nixos/systemd: pick more upstream tmpfiles confs
In #68792 it was discovered that /dev/fuse doesn't have
wordl-read-writeable permissions anymore. The cause of this is that the
tmpfiles examples in systemd were reorganized and split into more files.
We thus lost some of the configuration we were depending on.

In this commit some of the new tmpfiles configuration that are
applicable to us are added which also makes wtmp/lastlog in the pam
module not necessary anymore.

Rationale for the new tmpfile configs:

  - `journal-nowcow.conf`: Contains chattr +C for journald logs which
  makes sense on copy-on-write filesystems like Btrfs. Other filesystems
  shouldn't do anything funny when that flag is set.

  - `static-nodes-permissions.conf`: Contains some permission overrides
  for some device nodes like audio, loop, tun, fuse and kvm.

  - `systemd-nspawn.conf`: Makes sure `/var/lib/machines` exists and old
  snapshots are properly removed.

  - `systemd-tmp.conf`: Removes systemd services related private tmp
  folders and temporary coredump files.

  - `var.conf`: Creates some useful directories in `/var` which we would
  create anyway at some point. Also includes
  `/var/log/{wtmp,btmp,lastlog}`.

Fixes #68792.
2019-09-23 15:23:31 +02:00
..
config nixos/xdg/icons: match XCURSOR_PATH spec 2019-09-18 13:03:14 -04:00
hardware hardware.brightnessctl: add brightnessctl to env 2019-09-18 00:06:11 +02:00
i18n/input-method Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
installer sdImage: use findmnt to get root device when resizing (#58059) 2019-09-20 23:28:01 +02:00
misc Merge staging-next into staging 2019-08-31 10:04:20 +02:00
profiles Merge pull request #63773 from flokli/installation-device-fixes 2019-08-31 02:59:23 +02:00
programs Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
security nixos/systemd: pick more upstream tmpfiles confs 2019-09-23 15:23:31 +02:00
services nixos/gitlab: Add gnutar and gzip to gitlab-sidekiq's path (#68908) 2019-09-23 06:40:52 +02:00
system nixos/systemd: pick more upstream tmpfiles confs 2019-09-23 15:23:31 +02:00
tasks NixOS/auto-upgrade: add gzip to service path 2019-09-15 16:13:29 +02:00
testing nixos/test: remove the stateVersion statement from the test-instrumentation 2019-06-03 15:05:24 +02:00
virtualisation Add cri-o service to modules (#68153) 2019-09-21 14:18:42 +00:00
module-list.nix Add cri-o service to modules (#68153) 2019-09-21 14:18:42 +00:00
rename.nix nixos/redshift: Move option renames to the module 2019-09-15 18:25:40 +02:00