diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-12-07 10:04:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 10:04:09 +0100 |
commit | 5be3695680f7483b8c69601c29ab4a0bd799a17b (patch) | |
tree | f12920cd708fa8935d4daaa82d592c38dc43bac3 /nixos/modules/services/display-managers | |
parent | 78c4b537958c533dca113582a5e539f4c193c0e4 (diff) | |
parent | 3e4e76e6769bab6fa7f1f6f9d63967147e701ac8 (diff) |
Merge pull request #268497 from katexochen/greetd/tuigreet-dir
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 779e141ca24bd..2212f97a9ffe2 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 = { @@ -27,7 +27,7 @@ in ''; }; - vt = mkOption { + vt = mkOption { type = types.int; default = 1; description = lib.mdDoc '' @@ -97,12 +97,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 ]; |