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