fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Robert HelgessonMerge PR #421575790441

master
734 B34 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5let
6
7  cfg = config.programs.bashmount;
8
9in {
10  meta.maintainers = [ maintainers.AndersonTorres ];
11
12  options.programs.bashmount = {
13    enable = mkEnableOption "bashmount";
14
15    extraConfig = mkOption {
16      type = types.lines;
17      default = "";
18      description = ''
19        Configuration written to
20        {file}`$XDG_CONFIG_HOME/bashmount/config`. Look at
21        <https://github.com/jamielinux/bashmount/blob/master/bashmount.conf>
22        for explanation about possible values.
23      '';
24    };
25
26  };
27
28  config = mkIf cfg.enable {
29    home.packages = [ pkgs.bashmount ];
30
31    xdg.configFile."bashmount/config" =
32      mkIf (cfg.extraConfig != "") { text = cfg.extraConfig; };
33  };
34}