mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 15:19:45 +01:00
35 lines
767 B
Nix
35 lines
767 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
|
||
|
<filename>$XDG_CONFIG_HOME/bashmount/config</filename>. Look at
|
||
|
<link xlink:href="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; };
|
||
|
};
|
||
|
}
|