nixos-config/modules/shell/lf.nix
2020-10-25 23:49:14 +08:00

21 lines
390 B
Nix
Executable File

# A file manager for hipsters.
{ config, options, lib, pkgs, ... }:
with lib; {
options.modules.shell.lf = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.shell.lf.enable {
my.packages = with pkgs; [ lf ];
my.home.xdg.configFile."lf" = {
source = ../../config/lf;
recursive = true;
};
};
}