mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
nixos/services.accounts-daemon: remove with lib;
This commit is contained in:
parent
7d32787294
commit
13c9b59247
@ -1,23 +1,17 @@
|
|||||||
# AccountsService daemon.
|
# AccountsService daemon.
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
maintainers = teams.freedesktop.members;
|
maintainers = lib.teams.freedesktop.members;
|
||||||
};
|
};
|
||||||
|
|
||||||
###### interface
|
###### interface
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
services.accounts-daemon = {
|
services.accounts-daemon = {
|
||||||
|
|
||||||
enable = mkOption {
|
enable = lib.mkOption {
|
||||||
type = types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to enable AccountsService, a DBus service for accessing
|
Whether to enable AccountsService, a DBus service for accessing
|
||||||
@ -29,10 +23,8 @@ with lib;
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
config = lib.mkIf config.services.accounts-daemon.enable {
|
||||||
config = mkIf config.services.accounts-daemon.enable {
|
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.accountsservice ];
|
environment.systemPackages = [ pkgs.accountsservice ];
|
||||||
|
|
||||||
@ -43,14 +35,14 @@ with lib;
|
|||||||
|
|
||||||
systemd.packages = [ pkgs.accountsservice ];
|
systemd.packages = [ pkgs.accountsservice ];
|
||||||
|
|
||||||
systemd.services.accounts-daemon = recursiveUpdate {
|
systemd.services.accounts-daemon = lib.recursiveUpdate {
|
||||||
|
|
||||||
wantedBy = [ "graphical.target" ];
|
wantedBy = [ "graphical.target" ];
|
||||||
|
|
||||||
# Accounts daemon looks for dbus interfaces in $XDG_DATA_DIRS/accountsservice
|
# Accounts daemon looks for dbus interfaces in $XDG_DATA_DIRS/accountsservice
|
||||||
environment.XDG_DATA_DIRS = "${config.system.path}/share";
|
environment.XDG_DATA_DIRS = "${config.system.path}/share";
|
||||||
|
|
||||||
} (optionalAttrs (!config.users.mutableUsers) {
|
} (lib.optionalAttrs (!config.users.mutableUsers) {
|
||||||
environment.NIXOS_USERS_PURE = "true";
|
environment.NIXOS_USERS_PURE = "true";
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user