From d8a55f9555356de59d1cff0db593350aa843865a Mon Sep 17 00:00:00 2001 From: punkfairie Date: Thu, 9 Jan 2025 08:21:34 -0800 Subject: [PATCH] feat(nixos): Set default user shell to fish --- modules/nixos/programs/fish/default.nix | 21 +++++++++++++++++++++ systems/x86_64-linux/nyx/default.nix | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 modules/nixos/programs/fish/default.nix diff --git a/modules/nixos/programs/fish/default.nix b/modules/nixos/programs/fish/default.nix new file mode 100644 index 0000000..c68ce89 --- /dev/null +++ b/modules/nixos/programs/fish/default.nix @@ -0,0 +1,21 @@ +{ + lib, + config, + pkgs, + ... +}: let + inherit (lib) mkEnableOption mkIf; + + cfg = config.marleyos.programs.fish; +in { + options.marleyos.programs.fish.enable = mkEnableOption "fish"; + + config = mkIf cfg.enable { + programs.fish = { + enable = true; + useBabelfish = true; + }; + + users.defaultUserShell = pkgs.fish; + }; +} diff --git a/systems/x86_64-linux/nyx/default.nix b/systems/x86_64-linux/nyx/default.nix index e0aabf2..dff07b2 100644 --- a/systems/x86_64-linux/nyx/default.nix +++ b/systems/x86_64-linux/nyx/default.nix @@ -36,6 +36,10 @@ in { wayland.hyprland = enabled; + programs = { + fish = enabled; + }; + services = { ly = enabled; };