2025-07-17 17:08:06 +00:00
|
|
|
{ config, configFiles, lib, pkgs, ... }:
|
2025-07-16 13:37:35 -07:00
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
options.myModules.home.fish = {
|
|
|
|
|
enable = mkEnableOption "custom fish configuration";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
config = mkIf config.myModules.home.fish.enable (
|
|
|
|
|
let
|
|
|
|
|
# Use user-specific config if it exists, otherwise fall back to shared
|
2025-07-21 18:48:11 +00:00
|
|
|
configPath = (configFiles + "/users/${config.myModules.home.user}/fish");
|
2025-07-16 13:37:35 -07:00
|
|
|
in {
|
|
|
|
|
# Use the correct Home Manager option
|
|
|
|
|
home.file.".config/fish" = {
|
|
|
|
|
source = configPath;
|
|
|
|
|
recursive = true;
|
|
|
|
|
};
|
2025-07-21 18:48:11 +00:00
|
|
|
programs.fish = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
2025-07-16 13:37:35 -07:00
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|