refactor: dedupe theme values and app helpers

This commit is contained in:
2026-03-28 14:57:39 +00:00
parent a8b07b0c30
commit 447d7f1dd7
18 changed files with 302 additions and 269 deletions

View File

@@ -1,27 +1,17 @@
{...}: {
den.aspects.ssh-client.homeManager = {
config,
pkgs,
...
}: let
homeDir = "${
if pkgs.stdenv.hostPlatform.isDarwin
then "/Users"
else "/home"
}/${config.home.username}";
in {
den.aspects.ssh-client.homeManager = {config, ...}: {
programs.ssh = {
enable = true;
enableDefaultConfig = false;
includes = [
"${homeDir}/.ssh/config_external"
"${config.home.homeDirectory}/.ssh/config_external"
];
matchBlocks = {
"*" = {};
"github.com" = {
identitiesOnly = true;
identityFile = [
"${homeDir}/.ssh/id_ed25519"
"${config.home.homeDirectory}/.ssh/id_ed25519"
];
};
};