nixos-config/modules/shell/lf.nix

25 lines
411 B
Nix
Raw Normal View History

2020-08-06 15:35:49 +00:00
# A file manager for hipsters.
{ config, options, lib, pkgs, ... }:
2020-11-05 06:39:02 +00:00
with lib;
let
cfg = config.modules.shell.lf;
in {
2020-08-06 15:35:49 +00:00
options.modules.shell.lf = {
enable = mkOption {
type = types.bool;
default = false;
};
};
2020-11-05 06:39:02 +00:00
config = mkIf cfg.enable {
2020-10-25 15:49:14 +00:00
my.packages = with pkgs; [ lf ];
2020-08-06 15:35:49 +00:00
2020-08-16 08:33:44 +00:00
my.home.xdg.configFile."lf" = {
2020-08-06 15:35:49 +00:00
source = ../../config/lf;
recursive = true;
};
};
}