Serenity/modules/features/terminal/fish.nix
Porta 39ac00a2b5
Refresh flake inputs and expand fractal desktop configuration
- Add CreamInstaller with an NVIDIA WebKit workaround
- Enable Minecraft Plymouth theme and Docker on fractal
- Add development, terminal, gaming, and launcher utilities
- Expand firewall ports and enable automatic generation cleanup
2026-11-10 21:28:59 +10:00

90 lines
1.8 KiB
Nix

{ inputs, ... }:
{
# defines a custom fish module
flake.nixosModules.fish =
{ pkgs, user-parts, ... }:
{
# for home manager functionality
imports = [ inputs.home-manager.nixosModules.home-manager ];
# adding shell packages to system, unsure if necessary
environment.systemPackages = with pkgs; [
fish # primary shell
bash # backup shell
alacritty
];
# system level fish declaration
programs.fish.enable = true;
# home manager options
home-manager.users.${user-parts.user.username} = {
# program settings
programs = {
# starship prompt
starship = {
enable = true;
};
# fish shell
fish = {
# enables fish
enable = true;
# shell initialisation
loginShellInit = "";
interactiveShellInit = "";
# fish plugins
plugins = [
{
name = "done";
src = pkgs.fishPlugins.done.src;
}
{
name = "puffer";
src = pkgs.fishPlugins.puffer.src;
}
{
name = "autopair";
src = pkgs.fishPlugins.autopair.src;
}
];
# command aliases & abbreviations
shellAbbrs = {
};
shellAliases = {
rbu = "sudo systemctl reboot --firmware-setup";
};
# fish functions
functions = {
# greeter function
fish_greeting = ''
echo hiya ${user-parts.user.username}, welcome to $hostname "~"
'';
};
};
};
};
};
}