205a1ccc8f
- Add prepare-commit-msg git hook that generates conventional commit messages - Modularize fish configuration with separate conf.d files - Convert configuration files from .text to .source format for structured data - Add sops-nix SOPS configuration with explicit secret definitions - Upgrade age identity to single key file management approach - Add system activation script for age key management - Generate .sops.yaml for SOPS creation rules - Restructure README.md with improved table and cleaner formatting - Refactor config files to use pkgs.formats.json/toml generators - Implement YAML format for ashell and walker service configurations - Update SSH config source to use sops secrets - Convert zed and other config files to use structured .source format
34 lines
761 B
Nix
34 lines
761 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
users.users.someone.packages = with pkgs; [
|
|
openssh
|
|
];
|
|
|
|
xdg.configFile."ssh/config" = {
|
|
source = config.sops.secrets.ssh_config.path;
|
|
};
|
|
|
|
home.file.".ssh/config" = {
|
|
source = config.xdg.configHome + "/ssh/config";
|
|
mutable = false;
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
SSH_AUTH_SOCK = "${config.xdg.runtimeDir}/gnupg/S.gpg-agent.ssh";
|
|
SSH_CONFIG = "${config.xdg.configHome}/ssh/config";
|
|
};
|
|
|
|
systemd.user.services.ssh-agent = {
|
|
description = "SSH agent service";
|
|
wantedBy = ["default.target"];
|
|
serviceConfig = {
|
|
Type = "simple";
|
|
ExecStart = "${pkgs.openssh}/bin/ssh-agent -D -a ${config.xdg.runtimeDir}/ssh-agent.socket";
|
|
Restart = "on-failure";
|
|
};
|
|
};
|
|
}
|