Fix regreet docs

This commit is contained in:
DashieTM 2024-11-09 18:17:27 +01:00
parent 35b2ba75b6
commit 7cba9d23a1
2 changed files with 15 additions and 11 deletions

View file

@ -66,6 +66,7 @@
abbr --add rm 'rip' abbr --add rm 'rip'
abbr --add cp 'fcp' abbr --add cp 'fcp'
abbr --add cd 'z' abbr --add cd 'z'
abbr --add yazi 'y'
set fish_greeting set fish_greeting
# pwd based on the value of _ZO_RESOLVE_SYMLINKS. # pwd based on the value of _ZO_RESOLVE_SYMLINKS.

View file

@ -57,15 +57,15 @@
List of environments that should be available in the login prompt. List of environments that should be available in the login prompt.
''; '';
}; };
}; regreet = {
regreet = { customSettings = lib.mkOption {
customSettings = lib.mkOption { default = { };
default = { }; example = { };
example = { }; type = with lib.types; attrsOf anything;
type = with lib.types; attrsOf anything; description = ''
description = '' Custom regret settings. See https://github.com/rharish101/ReGreet/blob/main/regreet.sample.toml for more information.
Custom regret settings. See https://github.com/rharish101/ReGreet/blob/main/regreet.sample.toml for more information. '';
''; };
}; };
}; };
}; };
@ -135,8 +135,11 @@
# unlock GPG keyring on login # unlock GPG keyring on login
security.pam.services.greetd.enableGnomeKeyring = true; security.pam.services.greetd.enableGnomeKeyring = true;
} // lib.optionalAttrs (options ? home) { }
xdg.configFile."regreet/regreet.toml".source = (pkgs.formats.toml { }).generate "regreet" config.mods.regreet.customSettings; // lib.optionalAttrs (options ? home) {
xdg.configFile."regreet/regreet.toml".source =
(pkgs.formats.toml { }).generate "regreet"
config.mods.greetd.regreet.customSettings;
} }
); );
} }