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/zathura"
"${userModules}/utils/tuirun" "${userModules}/utils/tuirun"
"${userModules}/utils/eza" "${userModules}/utils/eza"
"${userModules}/utils/ssh"
"${userModules}/wm/hyprland" "${userModules}/wm/hyprland"
"${userModules}/wm/utils/hypridle" "${userModules}/wm/utils/hypridle"
"${userModules}/wm/utils/hyprlock" "${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, config,
# lib, pkgs,
... ...
}: let }: let
cfg = config.programs.git; cfg = config.programs.git;
sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIk/zMuOgZCX+bVCFDHxtoec96RaVfV4iG1Gohp0qHdU cnst@cnix"; sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIk/zMuOgZCX+bVCFDHxtoec96RaVfV4iG1Gohp0qHdU cnst@cnix";
in { in {
home.packages = [pkgs.gh];
programs.git = { programs.git = {
enable = true; enable = true;
userName = "cnst"; userName = "cnst";
userEmail = "adamhilmersson@gmail.com"; userEmail = "adamhilmersson@gmail.com";
delta = {
enable = true;
options.dark = true;
};
extraConfig = { extraConfig = {
signing = { signing = {
key = "${config.home.homeDirectory}/.ssh/id_ed25519"; key = "${config.home.homeDirectory}/.ssh/id_ed25519";
@@ -23,7 +27,7 @@ in {
init.defaultBranch = "main"; init.defaultBranch = "main";
# commit.gpgSign = lib.mkDefault true; # commit.gpgSign = lib.mkDefault true;
merge.conflictStyle = "zdiff3"; merge.conflictStyle = "diff3";
commit.verbose = true; commit.verbose = true;
diff.algorithm = "histogram"; diff.algorithm = "histogram";
log.date = "iso"; log.date = "iso";

View File

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

View File

@@ -83,6 +83,10 @@ in {
ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241' 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 microfetch
''; '';
}; };

View File

@@ -93,7 +93,7 @@
samba = { samba = {
enable = false; enable = false;
}; };
ssh = { openssh = {
enable = true; enable = true;
}; };
}; };

View File

@@ -21,7 +21,7 @@
"${systemModules}/sysd/network/blueman" "${systemModules}/sysd/network/blueman"
"${systemModules}/sysd/network/mullvad" "${systemModules}/sysd/network/mullvad"
"${systemModules}/sysd/network/samba" "${systemModules}/sysd/network/samba"
"${systemModules}/sysd/network/ssh" "${systemModules}/sysd/network/openssh"
"${systemModules}/sysd/security/agenix" "${systemModules}/sysd/security/agenix"
"${systemModules}/sysd/security/gnome-keyring" "${systemModules}/sysd/security/gnome-keyring"
"${systemModules}/sysd/session/dbus" "${systemModules}/sysd/session/dbus"

View File

@@ -4,17 +4,14 @@
... ...
}: let }: let
inherit (lib) mkIf mkEnableOption; inherit (lib) mkIf mkEnableOption;
cfg = config.modules.sysd.network.ssh; cfg = config.modules.sysd.network.openssh;
in { in {
options = { options = {
modules.sysd.network.ssh.enable = mkEnableOption "Enables ssh"; modules.sysd.network.openssh.enable = mkEnableOption "Enables openssh";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.openssh = { services.openssh = {
enable = true; enable = true;
}; };
programs.ssh = {
startAgent = true;
};
}; };
} }