2023-01-10 09:35:00 +00:00
|
|
|
{ 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
|
2023-08-08 10:19:01 +00:00
|
|
|
{file}`$XDG_CONFIG_HOME/bashmount/config`. Look at
|
|
|
|
<https://github.com/jamielinux/bashmount/blob/master/bashmount.conf>
|
2023-01-10 09:35:00 +00:00
|
|
|
for explanation about possible values.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = [ pkgs.bashmount ];
|
|
|
|
|
|
|
|
xdg.configFile."bashmount/config" =
|
|
|
|
mkIf (cfg.extraConfig != "") { text = cfg.extraConfig; };
|
|
|
|
};
|
|
|
|
}
|