mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
bashmount: add module
This commit is contained in:
parent
f5e9879e74
commit
389f2b2037
4 changed files with 44 additions and 0 deletions
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
|
@ -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
|
||||
|
|
|
@ -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'.
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
34
modules/programs/bashmount.nix
Normal file
34
modules/programs/bashmount.nix
Normal 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; };
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue