Add git module
This commit is contained in:
parent
b7c124a433
commit
04c18c06a7
5 changed files with 32 additions and 10 deletions
|
@ -1,7 +1,6 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./git.nix
|
|
||||||
./pass.nix
|
./pass.nix
|
||||||
./gnupg.nix
|
./gnupg.nix
|
||||||
./bat.nix
|
./bat.nix
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.gitFull;
|
|
||||||
userName = "Yorick Barbanneau";
|
|
||||||
userEmail = "ephase@xieme-art.org";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -4,6 +4,7 @@
|
||||||
zathura.enable = true;
|
zathura.enable = true;
|
||||||
};
|
};
|
||||||
cli = {
|
cli = {
|
||||||
|
git.enable = true;
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
vifm.enable = true;
|
vifm.enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
|
|
30
modules/home-manager/cli/git/default.nix
Normal file
30
modules/home-manager/cli/git/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.cli.git;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.cli.git = {
|
||||||
|
enable = mkEnableOption "enable git";
|
||||||
|
|
||||||
|
userName = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "Yorick Barbanneau";
|
||||||
|
description = "git username";
|
||||||
|
};
|
||||||
|
|
||||||
|
userEmail = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "ephase@xieme-art.org";
|
||||||
|
description = "git email";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.gitFull;
|
||||||
|
userName = "${cfg.userName}";
|
||||||
|
userEmail = "${cfg.userEmail}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,6 +3,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./application/imv
|
./application/imv
|
||||||
./application/zathura
|
./application/zathura
|
||||||
|
./cli/git
|
||||||
./cli/neovim
|
./cli/neovim
|
||||||
./cli/vifm
|
./cli/vifm
|
||||||
./cli/zsh
|
./cli/zsh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue