From 7cba9d23a13216a1430e14d1cec2a88bd686dbeb Mon Sep 17 00:00:00 2001 From: DashieTM Date: Sat, 9 Nov 2024 18:17:27 +0100 Subject: [PATCH] Fix regreet docs --- modules/programs/fish.nix | 1 + modules/programs/greetd.nix | 25 ++++++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/modules/programs/fish.nix b/modules/programs/fish.nix index 41f394f..25aa3d1 100644 --- a/modules/programs/fish.nix +++ b/modules/programs/fish.nix @@ -66,6 +66,7 @@ abbr --add rm 'rip' abbr --add cp 'fcp' abbr --add cd 'z' + abbr --add yazi 'y' set fish_greeting # pwd based on the value of _ZO_RESOLVE_SYMLINKS. diff --git a/modules/programs/greetd.nix b/modules/programs/greetd.nix index 075b575..e8900f5 100644 --- a/modules/programs/greetd.nix +++ b/modules/programs/greetd.nix @@ -57,15 +57,15 @@ List of environments that should be available in the login prompt. ''; }; - }; - regreet = { - customSettings = lib.mkOption { - default = { }; - example = { }; - type = with lib.types; attrsOf anything; - description = '' - Custom regret settings. See https://github.com/rharish101/ReGreet/blob/main/regreet.sample.toml for more information. - ''; + regreet = { + customSettings = lib.mkOption { + default = { }; + example = { }; + type = with lib.types; attrsOf anything; + description = '' + 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 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; } ); }