nixos-config/modules/workstation/home-manager/development/default.nix

42 lines
742 B
Nix
Raw Normal View History

2024-04-11 20:15:47 +02:00
{
config,
lib,
pkgs,
...
}:
with lib;
{
2024-08-03 22:17:23 +02:00
imports = [
./embedded.nix
./networking.nix
];
2024-08-01 21:40:51 +02:00
options.my.development.git.enable = mkOption {
type = types.bool;
default = true;
example = false;
description = ''
Enable git and its configuration.
'';
};
2024-08-01 21:40:51 +02:00
config.programs.git = mkIf config.my.development.git.enable {
enable = true;
package = pkgs.gitAndTools.gitFull;
userName = "Victor Mignot";
userEmail = "dala@dalaran.fr";
2024-08-01 21:40:51 +02:00
signing = mkIf config.my.pgp.enable {
key = "BEAFED3D";
signByDefault = true;
};
extraConfig = {
init = {
defaultBranch = "main";
};
core = {
2024-07-26 21:32:21 +02:00
editor = "${pkgs.helix}/bin/hx";
};
};
};
}