1
Fork 0

A bunch of stuff, including commit signing!

This commit is contained in:
Matei Adriel 2023-01-10 20:39:33 +01:00
parent 5767736f86
commit 490f562d85
No known key found for this signature in database
13 changed files with 78 additions and 26 deletions
home/adrielus/features/cli

View file

@ -1,5 +1,5 @@
{ pkgs, ... }: {
imports = [ ./bat.nix ./git.nix ./ssh.nix ./fish.nix ./tmux ./starship.nix ];
imports = [ ./bat.nix ./ssh.nix ./fish.nix ./tmux ./git.nix ./starship.nix ];
# Enable bash
programs.bash.enable = true;

View file

@ -1,11 +1,9 @@
{ pkgs, ... }: {
{ pkgs, config, ... }: {
programs.git = {
enable = true;
package = pkgs.gitFull;
aliases = {
graph = "log --decorate --oneline --graph";
};
aliases.graph = "log --decorate --oneline --graph";
userName = "Matei Adriel";
userEmail = "rafaeladriel11@gmail.com";
@ -15,12 +13,20 @@
hub.protocol = "ssh";
core.editor = "nvim";
rebase.autoStash = true;
# Sign commits using ssh
gpg.format = "ssh";
user.signingkey = "~/.ssh/id_ed25519.pub";
# Sign everythin gby default
commit.gpgsign = true;
tag.gpgsign = true;
};
};
home.packages = with pkgs; [
# Two github clis
gh
hub
];
# Github cli
programs.gh = {
enable = true;
settings.git_protocol = "ssh";
};
}

View file

@ -1,5 +1,5 @@
{ pkgs, config, ... }:
let base17-tmux = pkgs.fetchFromGitHub {
let base16-tmux = pkgs.fetchFromGitHub {
owner = "tinted-theming";
repo = "base16-tmux";
sha256 = "1p6czpd9f0sbibdsph1hdw4ljp6zzjij2159bks16wbfbg3p1hhx";