1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-28 04:39:48 +01:00
home-manager/modules
Robert Helgesson 6a19225683
home-manager: verify username and home directory
The generation activation script should be run by the user specified
in `home.username` and `home.homeDirectory`. If some other user runs
the activation script, then files may end up in the wrong place or
with the wrong owner.

This commits adds a check early in the activation script that verifies
that the running user match the user in the configuration.

Fixes #4019
2023-05-27 09:14:05 +02:00
..
accounts programs/alot: make Sent and Drafts folder optional (#3798) 2023-03-22 11:25:02 +01:00
config home-cursor: follow xdg spec for icons folder (#3851) 2023-04-11 22:41:48 +02:00
i18n/input-method im/fcitx: drop as fcitx 4 has been removed from nixpkgs (#3804) 2023-03-25 15:32:31 +01:00
launchd launchd: sync option definition with nix-darwin 2023-03-25 23:59:58 +01:00
lib lib/file-type: fix xrefs (#4007) 2023-05-22 22:48:23 +02:00
lib-bash home-manager: verify username and home directory 2023-05-27 09:14:05 +02:00
misc lib/file-type: fix xrefs (#4007) 2023-05-22 22:48:23 +02:00
po home-manager: verify username and home directory 2023-05-27 09:14:05 +02:00
programs helix: improve warning message for languages option (#4023) 2023-05-26 15:35:29 +02:00
services Drop CODEOWNERS 2023-05-14 12:46:21 +02:00
targets treewide: fix typos 2022-12-05 12:58:02 +01:00
default.nix Add lib argument to homeManagerConfiguration (#2753) 2022-04-17 18:14:41 -04:00
files.nix lib/file-type: fix xrefs (#4007) 2023-05-22 22:48:23 +02:00
home-environment.nix home-manager: verify username and home directory 2023-05-27 09:14:05 +02:00
manual.nix format: update and remove exceptions (#3029) 2022-06-16 14:13:06 +02:00
modules.nix script-directory: add module (#3995) 2023-05-19 10:29:27 +02:00
systemd-activate.rb Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd-activate.sh Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd.nix systemd: accept derivations as values for systemd options (#3974) 2023-05-11 15:50:37 +02:00
xresources.nix Replace usage of literalExample 2021-10-13 00:16:10 +02:00
xsession.nix xsession: cleanup systemd variables (#3636) 2023-05-07 23:59:56 +02:00