2022-08-07 01:11:57 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.programs.bashmount;
|
|
|
|
|
|
|
|
in {
|
|
|
|
meta.maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
|
|
|
|
options.programs.bashmount = {
|
2023-07-02 01:45:18 +02:00
|
|
|
enable = mkEnableOption "bashmount";
|
2022-08-07 01:11:57 +02:00
|
|
|
|
|
|
|
extraConfig = mkOption {
|
|
|
|
type = types.lines;
|
|
|
|
default = "";
|
2023-07-02 01:45:18 +02:00
|
|
|
description = ''
|
2022-08-07 01:11:57 +02:00
|
|
|
Configuration written to
|
2023-07-01 01:30:13 +02:00
|
|
|
{file}`$XDG_CONFIG_HOME/bashmount/config`. Look at
|
|
|
|
<https://github.com/jamielinux/bashmount/blob/master/bashmount.conf>
|
2022-08-07 01:11:57 +02:00
|
|
|
for explanation about possible values.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = [ pkgs.bashmount ];
|
|
|
|
|
|
|
|
xdg.configFile."bashmount/config" =
|
|
|
|
mkIf (cfg.extraConfig != "") { text = cfg.extraConfig; };
|
|
|
|
};
|
|
|
|
}
|