qol(git@modules): git is now a module
This commit is contained in:
@@ -29,18 +29,13 @@
|
||||
fish.enable = true;
|
||||
stylix.enable = true;
|
||||
direnv.enable = true;
|
||||
git.enable = true;
|
||||
};
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
home.username = "doloro";
|
||||
home.homeDirectory = "/home/doloro";
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Doloro1978";
|
||||
userEmail = "doloroo@proton.me";
|
||||
};
|
||||
|
||||
# This value determines the Home Manager release that your configuration is
|
||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||
# introduces backwards incompatible changes.
|
||||
|
||||
@@ -36,19 +36,18 @@
|
||||
youtube-music.enable = true;
|
||||
unityhub.enable = true;
|
||||
direnv.enable = true;
|
||||
git.enable = true;
|
||||
};
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
home.username = "doloro";
|
||||
home.homeDirectory = "/home/doloro";
|
||||
|
||||
programs.git = {
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "Doloro1978";
|
||||
email = "doloroo@proton.me";
|
||||
};
|
||||
pinentry = {
|
||||
package = pkgs.pinentry-qt;
|
||||
program = "pinentry-qt";
|
||||
};
|
||||
};
|
||||
xdg.mimeApps.enable = true;
|
||||
@@ -75,6 +74,7 @@
|
||||
btop
|
||||
sops
|
||||
alcom
|
||||
gcr
|
||||
];
|
||||
# sops.age.keyFile = "/home/doloro/.config/sops/age/key.txt";
|
||||
|
||||
@@ -117,6 +117,7 @@
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
xdg.configFile."mimeapps.list".force = true;
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
||||
3
nix/modules/git/default.nix
Normal file
3
nix/modules/git/default.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
_: {
|
||||
home = ./home.nix;
|
||||
}
|
||||
28
nix/modules/git/home.nix
Normal file
28
nix/modules/git/home.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.modules.git;
|
||||
in
|
||||
{
|
||||
|
||||
options.modules.git = {
|
||||
enable = lib.mkEnableOption "git";
|
||||
};
|
||||
config.programs = lib.mkIf cfg.enable {
|
||||
git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "Doloro1978";
|
||||
email = "doloroo@proton.me";
|
||||
signingKey = "089B373588540877";
|
||||
};
|
||||
commit = {
|
||||
gpgSign = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
gpg = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user