nixos-config/modules/shell/lf.nix
2020-11-05 14:39:02 +08:00

25 lines
411 B
Nix
Executable File

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