summaryrefslogtreecommitdiff
path: root/users/seth/shell/fish.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-06-30 09:56:30 -0400
committerseth <[email protected]>2024-06-30 10:23:04 -0400
commit088facf700946cb8f2d96c6089185bdc2a67180a (patch)
treec5b4e4cffbb3ee4ad2498c2251892bd457e9d3c7 /users/seth/shell/fish.nix
parent5d3045a0769af3a94fba7b5cf646e8498aaef595 (diff)
alejandra -> nixfmt-rfc-style
Diffstat (limited to 'users/seth/shell/fish.nix')
-rw-r--r--users/seth/shell/fish.nix27
1 files changed, 15 insertions, 12 deletions
diff --git a/users/seth/shell/fish.nix b/users/seth/shell/fish.nix
index 810d9fc..d910c05 100644
--- a/users/seth/shell/fish.nix
+++ b/users/seth/shell/fish.nix
@@ -3,12 +3,16 @@
lib,
pkgs,
...
-}: let
+}:
+let
cfg = config.seth.shell.fish;
-in {
+in
+{
options.seth.shell.fish = {
enable = lib.mkEnableOption "Fish configuration";
- withPlugins = lib.mkEnableOption "Fish plugins" // {default = true;};
+ withPlugins = lib.mkEnableOption "Fish plugins" // {
+ default = true;
+ };
};
config = lib.mkIf cfg.enable {
@@ -37,15 +41,14 @@ in {
}
(lib.mkIf cfg.withPlugins {
- plugins = let
- mkFishPlugins = map (plugin: {
- name = plugin;
- inherit (pkgs.fishPlugins.${plugin}) src;
- });
- in
- mkFishPlugins [
- "autopair"
- ];
+ plugins =
+ let
+ mkFishPlugins = map (plugin: {
+ name = plugin;
+ inherit (pkgs.fishPlugins.${plugin}) src;
+ });
+ in
+ mkFishPlugins [ "autopair" ];
})
];
};