diff options
author | Paul Meyer <49727155+katexochen@users.noreply.github.com> | 2023-11-19 14:09:48 +0100 |
---|---|---|
committer | Paul Meyer <49727155+katexochen@users.noreply.github.com> | 2023-11-19 14:09:48 +0100 |
commit | 3e4e76e6769bab6fa7f1f6f9d63967147e701ac8 (patch) | |
tree | 0519c9ce33e3c8ef00a19f35e7aa245e7e567870 /nixos/modules/services/display-managers | |
parent | c9df0f703524e82ca3de484ae70385b8fa47dd20 (diff) |
greetd: create cache dir for tuigreet
Diffstat (limited to 'nixos/modules/services/display-managers')
-rw-r--r-- | nixos/modules/services/display-managers/greetd.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/nixos/modules/services/display-managers/greetd.nix b/nixos/modules/services/display-managers/greetd.nix index 89cb81f3a78f6..926ec1a963ba1 100644 --- a/nixos/modules/services/display-managers/greetd.nix +++ b/nixos/modules/services/display-managers/greetd.nix @@ -4,7 +4,7 @@ with lib; let cfg = config.services.greetd; tty = "tty${toString cfg.vt}"; - settingsFormat = pkgs.formats.toml {}; + settingsFormat = pkgs.formats.toml { }; in { options.services.greetd = { @@ -32,7 +32,7 @@ in ''; }; - vt = mkOption { + vt = mkOption { type = types.int; default = 1; description = lib.mdDoc '' @@ -102,12 +102,18 @@ in systemd.defaultUnit = "graphical.target"; + # Create directories potentially required by supported greeters + # See https://github.com/NixOS/nixpkgs/issues/248323 + systemd.tmpfiles.rules = [ + "d '/var/cache/tuigreet' - greeter greeter - -" + ]; + users.users.greeter = { isSystemUser = true; group = "greeter"; }; - users.groups.greeter = {}; + users.groups.greeter = { }; }; meta.maintainers = with maintainers; [ queezle ]; |