diff options
author | Alexander Ried <ried@mytum.de> | 2016-06-01 13:02:26 +0200 |
---|---|---|
committer | Alexander Ried <ried@mytum.de> | 2016-09-01 15:25:28 +0200 |
commit | 1529641b5228265e80aca63f84890c2840b53d50 (patch) | |
tree | c73e8b7b942ebd34021ff61ff2e50f50a780d3e1 /nixos | |
parent | 8a547ae092be11fcb7d451f7ea0fa33285915f5a (diff) | |
download | nixpkgs-1529641b5228265e80aca63f84890c2840b53d50.tar nixpkgs-1529641b5228265e80aca63f84890c2840b53d50.tar.gz nixpkgs-1529641b5228265e80aca63f84890c2840b53d50.tar.bz2 nixpkgs-1529641b5228265e80aca63f84890c2840b53d50.tar.lz nixpkgs-1529641b5228265e80aca63f84890c2840b53d50.tar.xz nixpkgs-1529641b5228265e80aca63f84890c2840b53d50.tar.zst nixpkgs-1529641b5228265e80aca63f84890c2840b53d50.zip |
accountsservice: add support for mutableUsers = false
Add code to accountsservice that returns an error if the environment variable NIXOS_USERS_PURE is set. This variable is set from the nixos accountsservice module if mutableUsers = false
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/desktops/accountsservice.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/accountsservice.nix b/nixos/modules/services/desktops/accountsservice.nix index c28c2729576..2a7450669ea 100644 --- a/nixos/modules/services/desktops/accountsservice.nix +++ b/nixos/modules/services/desktops/accountsservice.nix @@ -35,6 +35,14 @@ with lib; services.dbus.packages = [ pkgs.accountsservice ]; systemd.packages = [ pkgs.accountsservice ]; + + systemd.services.accounts-daemon= { + + wantedBy = [ "graphical.target" ]; + + } // (mkIf (!config.users.mutableUsers) { + environment.NIXOS_USERS_PURE = "true"; + }); }; } |