mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
Merge pull request #268497 from katexochen/greetd/tuigreet-dir
greetd: create cache dir for tuigreet
This commit is contained in:
commit
5be3695680
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user