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