mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-14 13:01:09 +01:00
Add a home.uid option similar to home.username. When set, the activation script verifies the current UID matches the expected value using the new checkUid function. When using the NixOS or nix-darwin modules, home.uid is auto-discovered from users.users.<name>.uid when that value is set. This is useful for constructing paths that depend on the user's UID, such as /run/user/<uid> paths for gpg-agent sockets or other user-specific runtime directories.
8 lines
292 B
Nix
8 lines
292 B
Nix
{
|
|
home-session-path = ./session-path.nix;
|
|
home-session-search-variables = ./session-search-variables.nix;
|
|
home-session-variables = ./session-variables.nix;
|
|
home-nixpkgs-release-check-pkgs = ./nixpkgs-release-check-pkgs.nix;
|
|
home-uid = ./uid.nix;
|
|
home-uid-null = ./uid-null.nix;
|
|
}
|