75fa0ae5af
GitOrigin-RevId: c3ab5ea047e6dc73df530948f7367455749d8906
34 lines
734 B
Nix
34 lines
734 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.programs.bashmount;
|
|
|
|
in {
|
|
meta.maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
options.programs.bashmount = {
|
|
enable = mkEnableOption "bashmount";
|
|
|
|
extraConfig = mkOption {
|
|
type = types.lines;
|
|
default = "";
|
|
description = ''
|
|
Configuration written to
|
|
{file}`$XDG_CONFIG_HOME/bashmount/config`. Look at
|
|
<https://github.com/jamielinux/bashmount/blob/master/bashmount.conf>
|
|
for explanation about possible values.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = [ pkgs.bashmount ];
|
|
|
|
xdg.configFile."bashmount/config" =
|
|
mkIf (cfg.extraConfig != "") { text = cfg.extraConfig; };
|
|
};
|
|
}
|