mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
parent
e39a9d0103
commit
7da4e6680f
1 changed files with 10 additions and 1 deletions
|
@ -58,6 +58,15 @@ in {
|
|||
programs.lf = {
|
||||
enable = mkEnableOption "lf";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.lf;
|
||||
defaultText = literalExpression "pkgs.lf";
|
||||
description = ''
|
||||
lf package to use.
|
||||
'';
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = lfSettingsType;
|
||||
default = { };
|
||||
|
@ -169,7 +178,7 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.lf ];
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
xdg.configFile."lf/lfrc".text = let
|
||||
fmtSetting = k: v:
|
||||
|
|
Loading…
Reference in a new issue