nixpkgs/nixos/modules/system/boot
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
..
loader Merge branch 'master' into staging 2019-09-02 23:25:24 +02:00
binfmt.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00
emergency-mode.nix
grow-partition.nix
initrd-network.nix Merge pull request #47665 from erikarvstedt/initrd-improvements 2019-01-06 21:48:26 -06:00
initrd-ssh.nix nixos/initrd: improve descriptions 2018-10-02 17:38:06 +02:00
kernel_config.nix treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00
kernel.nix nixos: improve the example that shows how to include nvidia_x11 in boot.extraModulePackages 2019-09-17 08:37:56 +02:00
kexec.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
luksroot.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
modprobe.nix
networkd.nix systemd-networkd: add tests 2019-08-21 11:11:28 +02:00
pbkdf2-sha512.c
plymouth.nix
resolved.nix resolvconf service: init 2019-07-15 20:25:39 +03:00
shutdown.nix
stage-1-init.sh stage-1 init: fix debug menu 2019-08-19 19:54:00 +03:00
stage-1.nix stage-1 initrd: replace absolute paths for mdadm 2019-08-01 00:55:35 +03:00
stage-2-init.sh nixos/stage-2: create empty machine-id at boot 2018-09-30 10:45:35 -07:00
stage-2.nix resolvconf service: init 2019-07-15 20:25:39 +03:00
systemd-lib.nix nixos: Add 'chroot' options to systemd.services 2019-03-14 19:14:01 +01:00
systemd-nspawn.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
systemd-unit-options.nix nixos/modules: Replace all nested types.either's with types.oneOf's 2019-08-08 23:35:52 +02:00
systemd.nix nixos/systemd: pick more upstream tmpfiles confs 2019-09-23 15:23:31 +02:00
timesyncd.nix nixos/systemd: migrate systemd-timesync state when required 2019-06-03 15:05:19 +02:00
tmp.nix