3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules
Bjørn Forsman 0f0929f4aa nixos/borgbackup: fix ~/.cache, ~/.config ownership
Invoke `install` separately for each directory to get ownership right --
i.e. not always owned by root. When owned by root, user sessions break
as no user processes are allowed to create directores there. On normal
systems the directories already exist, but in clean environments / NixOS
test VMs, the bug shows.

Before:
  $ namei -l /home/user1/.cache/borg
  f: /home/user1/.cache/borg
  drwxr-xr-x root  root  /
  drwxr-xr-x root  root  home
  drwx------ user1 users user1
  drwxr-xr-x root  root  .cache
  drwxr-xr-x user1 users borg

After:
  $ namei -l /home/user1/.cache/borg
  f: /home/user1/.cache/borg
  drwxr-xr-x root  root  /
  drwxr-xr-x root  root  home
  drwx------ user1 users user1
  drwxr-xr-x user1 users .cache
  drwxr-xr-x user1 users borg
2022-12-28 13:07:16 +01:00
..
config nixos/environment: fix variables type 2022-12-27 21:09:10 -05:00
hardware Merge pull request #205648 from SuperSandro2000/hardware-opengl 2022-12-25 21:38:10 +01:00
i18n/input-method nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
installer Merge pull request #207371 from samueldr/feature/new_kernel-no-zfs 2022-12-27 16:14:16 -05:00
misc Revert "treewide: use nativeBuildInputs with runCommand instead of inlining" 2022-12-26 21:05:35 +03:00
profiles darwin.builder: Fix gratuitous rebuilds 2022-12-26 20:25:56 -06:00
programs Merge pull request #207738 from Mic92/nix-index 2022-12-27 10:39:05 +00:00
security nixos: fix typos 2022-12-17 19:31:14 -05:00
services nixos/borgbackup: fix ~/.cache, ~/.config ownership 2022-12-28 13:07:16 +01:00
system systemd-stage-1: Improve test-instrumentation output 2022-12-24 19:36:29 -05:00
tasks nixos/filesystems: require fstab options list be non-empty 2022-12-26 17:11:05 +01:00
testing Merge pull request #207801 from ElvishJerricco/systemd-stage-1-test-instrumentation 2022-12-28 01:43:03 +01:00
virtualisation Revert "treewide: use nativeBuildInputs with runCommand instead of inlining" 2022-12-26 21:05:35 +03:00
module-list.nix Merge pull request #182360 from Yarny0/cups-pdf 2022-12-28 09:08:49 +01:00
rename.nix dd-agent: remove 2022-09-14 14:11:14 +02:00