less: generate lesskey only when non-empty
This commit is contained in:
parent
18ea6d7a8f
commit
9a132f2971
4 changed files with 12 additions and 2 deletions
|
|
@ -34,6 +34,6 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||
|
||||
xdg.configFile."lesskey".text = cfg.keys;
|
||||
xdg.configFile."lesskey" = lib.mkIf (cfg.keys != "") { text = cfg.keys; };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue