bashmount: add module

This commit is contained in:
AndersonTorres 2022-08-06 20:11:57 -03:00 committed by Robert Helgesson
parent f5e9879e74
commit 389f2b2037
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
4 changed files with 44 additions and 0 deletions

2
.github/CODEOWNERS vendored
View File

@ -68,6 +68,8 @@ Makefile @thiagokokada
/modules/programs/bash.nix @rycee
/modules/programs/bashmount.nix @AndersonTorres
/modules/programs/bat.nix @marsam
/modules/programs/beets.nix @rycee

View File

@ -646,6 +646,13 @@ in
A new module is available: 'programs.wezterm'.
'';
}
{
time = "2022-08-08T16:11:22+00:00";
message = ''
A new module is available: 'programs.bashmount'.
'';
}
];
};
}

View File

@ -52,6 +52,7 @@ let
./programs/autojump.nix
./programs/autorandr.nix
./programs/bash.nix
./programs/bashmount.nix
./programs/bat.nix
./programs/beets.nix
./programs/bottom.nix

View File

@ -0,0 +1,34 @@
{ 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; };
};
}