refactor(flake-parts): initial flake-parts configuration

This commit is contained in:
ooks-io 2024-05-13 22:50:56 +12:00
parent 8f67be9e68
commit 5603001d65
230 changed files with 380 additions and 717 deletions

View file

@ -0,0 +1,24 @@
{ lib, config, ... }:
let
cfg = config.homeModules.console.utility.ssh;
hasFish = mkIf config.homeModules.console.shell.fish.enable;
inherit (lib) mkIf;
in
{
config = mkIf cfg.enable {
programs.ssh = {
enable = true;
extraConfig = /* config */''
Host *
IdentityAgent "~/.1password/agent.sock"
'';
};
programs.fish.interactiveShellInit = hasFish ''
set -gx SSH_AUTH_SOCK ~/.1password/agent.sock
'';
};
}