mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00

After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.services.homed;
|
|
in
|
|
{
|
|
options.services.homed.enable = lib.mkEnableOption ''
|
|
systemd home area/user account manager
|
|
'';
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
assertions = [
|
|
{
|
|
assertion = config.services.nscd.enable;
|
|
message = "systemd-homed requires the use of systemd nss module. services.nscd.enable must be set to true,";
|
|
}
|
|
];
|
|
|
|
systemd.additionalUpstreamSystemUnits = [
|
|
"systemd-homed.service"
|
|
"systemd-homed-activate.service"
|
|
];
|
|
|
|
# This is mentioned in homed's [Install] section.
|
|
#
|
|
# While homed appears to work without it, it's probably better
|
|
# to follow upstream recommendations.
|
|
services.userdbd.enable = lib.mkDefault true;
|
|
|
|
systemd.services = {
|
|
systemd-homed = {
|
|
# These packages are required to manage encrypted volumes
|
|
path = config.system.fsPackages;
|
|
aliases = [ "dbus-org.freedesktop.home1.service" ];
|
|
wantedBy = [ "multi-user.target" ];
|
|
};
|
|
|
|
systemd-homed-activate = {
|
|
wantedBy = [ "systemd-homed.service" ];
|
|
};
|
|
};
|
|
};
|
|
}
|