diff options
Diffstat (limited to 'users/seth/shell')
| -rw-r--r-- | users/seth/shell/bash.nix | 14 | ||||
| -rw-r--r-- | users/seth/shell/default.nix | 18 | ||||
| -rw-r--r-- | users/seth/shell/fish.nix | 27 | ||||
| -rw-r--r-- | users/seth/shell/nu.nix | 6 | ||||
| -rw-r--r-- | users/seth/shell/zsh.nix | 10 |
5 files changed, 43 insertions, 32 deletions
diff --git a/users/seth/shell/bash.nix b/users/seth/shell/bash.nix index 216e609..3be0254 100644 --- a/users/seth/shell/bash.nix +++ b/users/seth/shell/bash.nix @@ -1,12 +1,12 @@ -{ - config, - lib, - ... -}: let +{ config, lib, ... }: +let cfg = config.seth.shell.bash; -in { +in +{ options.seth.shell.bash = { - enable = lib.mkEnableOption "Bash configuration" // {default = config.seth.enable;}; + enable = lib.mkEnableOption "Bash configuration" // { + default = config.seth.enable; + }; }; config = lib.mkIf cfg.enable { diff --git a/users/seth/shell/default.nix b/users/seth/shell/default.nix index b86697c..bebd790 100644 --- a/users/seth/shell/default.nix +++ b/users/seth/shell/default.nix @@ -1,13 +1,15 @@ -{ - config, - lib, - ... -}: let +{ config, lib, ... }: +let cfg = config.seth.shell; -in { +in +{ options.seth.shell = { - aliases.enable = lib.mkEnableOption "Shell aliases" // {default = config.seth.enable;}; - variables.enable = lib.mkEnableOption "Shell variables" // {default = config.seth.enable;}; + aliases.enable = lib.mkEnableOption "Shell aliases" // { + default = config.seth.enable; + }; + variables.enable = lib.mkEnableOption "Shell variables" // { + default = config.seth.enable; + }; }; imports = [ 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" ]; }) ]; }; diff --git a/users/seth/shell/nu.nix b/users/seth/shell/nu.nix index 9b6deeb..f52f049 100644 --- a/users/seth/shell/nu.nix +++ b/users/seth/shell/nu.nix @@ -3,10 +3,12 @@ lib, pkgs, ... -}: let +}: +let cfg = config.seth.shell.nushell; theme = "catppuccin-${config.catppuccin.flavor}"; -in { +in +{ options.seth.shell.nushell = { enable = lib.mkEnableOption "Nushell configuration"; }; diff --git a/users/seth/shell/zsh.nix b/users/seth/shell/zsh.nix index 4ce116a..0983f15 100644 --- a/users/seth/shell/zsh.nix +++ b/users/seth/shell/zsh.nix @@ -3,12 +3,16 @@ lib, pkgs, ... -}: let +}: +let cfg = config.seth.shell.zsh; -in { +in +{ options.seth.shell.zsh = { enable = lib.mkEnableOption "Zsh configuration"; - withPlugins = lib.mkEnableOption "Zsh plugins" // {default = true;}; + withPlugins = lib.mkEnableOption "Zsh plugins" // { + default = true; + }; }; config = lib.mkIf cfg.enable { |
