mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-30 14:11:02 +01:00
28 lines
742 B
Nix
28 lines
742 B
Nix
{ config, lib, pkgs, ... }:
|
|
let cfg = config.programs.bashmount;
|
|
in {
|
|
meta.maintainers = [ lib.maintainers.AndersonTorres ];
|
|
|
|
options.programs.bashmount = {
|
|
enable = lib.mkEnableOption "bashmount";
|
|
|
|
extraConfig = lib.mkOption {
|
|
type = lib.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 = lib.mkIf cfg.enable {
|
|
home.packages = [ pkgs.bashmount ];
|
|
|
|
xdg.configFile."bashmount/config" =
|
|
lib.mkIf (cfg.extraConfig != "") { text = cfg.extraConfig; };
|
|
};
|
|
}
|