This commit is contained in:
cnst
2024-09-23 18:08:20 +02:00
parent 77f7c9f65f
commit 49dda26a01
8 changed files with 36 additions and 10 deletions

View File

@@ -24,6 +24,7 @@
"${userModules}/utils/zathura"
"${userModules}/utils/tuirun"
"${userModules}/utils/eza"
"${userModules}/utils/ssh"
"${userModules}/wm/hyprland"
"${userModules}/wm/utils/hypridle"
"${userModules}/wm/utils/hyprlock"

View File

@@ -0,0 +1,17 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.utils.ssh;
in {
options = {
modules.utils.ssh.enable = mkEnableOption "Enables ssh";
};
config = mkIf cfg.enable {
programs.ssh = {
enable = true;
};
};
}

View File

@@ -1,16 +1,20 @@
{
# pkgs,
config,
# lib,
pkgs,
...
}: let
cfg = config.programs.git;
sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIk/zMuOgZCX+bVCFDHxtoec96RaVfV4iG1Gohp0qHdU cnst@cnix";
in {
home.packages = [pkgs.gh];
programs.git = {
enable = true;
userName = "cnst";
userEmail = "adamhilmersson@gmail.com";
delta = {
enable = true;
options.dark = true;
};
extraConfig = {
signing = {
key = "${config.home.homeDirectory}/.ssh/id_ed25519";
@@ -23,7 +27,7 @@ in {
init.defaultBranch = "main";
# commit.gpgSign = lib.mkDefault true;
merge.conflictStyle = "zdiff3";
merge.conflictStyle = "diff3";
commit.verbose = true;
diff.algorithm = "histogram";
log.date = "iso";

View File

@@ -85,6 +85,9 @@
eza = {
enable = true;
};
ssh = {
enable = true;
};
};
wm = {
hyprland = {

View File

@@ -83,6 +83,10 @@ in {
ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241'
${lib.optionalString config.services.gpg-agent.enable ''
gnupg_path=$(ls $XDG_RUNTIME_DIR/gnupg)
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gnupg/$gnupg_path/S.gpg-agent.ssh"
''}
microfetch
'';
};